Skip to content

Update client logging #1010

Open
Open

Description

@blue-diode

In it's current state, the logging done by the python client produces a mixture of JSON, free-form text, and command performance metrics spread out across multiple lines. All of these things make it difficult to parse and analyze user logs with a log aggregator like an ELK stack.

I propose overhauling the client library's logging to update the format, squash multi-line log contexts to a single line, more cleanly log error messaging, add a callback to the client on server termination, and include a client heartbeat.

  • Proposed log format: %date %level %[localeId] %[num_locales] %[num_cores] %[Chapel/Heartbeat/Client] %msg%n
  • Proposed interval for client-to-server heartbeat check: 15 minutes

Here are some examples of what some log lines could look like:

2021-12-27:15:15:29 INFO [node005049] [30] [32] [Chapel] {'cmd': 'connect'}
2021-12-27:15:30:00 INFO [node005049] [30] [32] [Heartbeat] client heartbeat received
2021-12-27:15:35:51 INFO [node005049] [30] [32] [Chapel] {'cmd': 'in1d', 'args': ['id_11', 'id_12'], 'arg_sizes': [423423, 65374], 'duration': 3144, 'memory_used': 253453 , 'memory_watermarks': [234051, 236092, 253453] }
2021-12-27:15:45:00 INFO [node005049] [30] [32] [Heartbeat] client heartbeat received
2021-12-27:15:48:35 ERROR [node005049] [30] [32] [Chapel] {'class': 'MultiTypeSymbolTable', 'function': 'checkTable', 'line': 221, 'error_type': 'UnknownSymbolError', 'msg': 'undefined symbol: id_82'}
2021-12-27:15:55:22 INFO [node005049] [30] [32] [Chapel] {'callbackMessage': 'server was terminated by <user/process/timeout>'}

Activity

  1. added
    In Progress
    on Apr 19, 2022
  2. removed their assignment
    on Oct 6, 2022
  3. removed
    In Progress
    on Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions