Skip to content

Monitoring/logging improvements #54

Open

Description

@sergio-mena

Was: tendermint/tendermint#9076

It must be easy to profile/understand “what is my node currently doing?”, and "where my bandwidth is going?"

Activity

  1. added
    logs
    on Jan 17, 2023
  2. adizere commented on Mar 9, 2023

    @adizere
    Contributor

    When uncertain on our approach or a tradeoff, we can ask Hub team as a specific user for feedback on log improvements. Many thanks to @mmulji-ic in particular who also offered some guides/resources:

    For an example of "live struggles" with logs, tagging this issue: cosmos/gaia#2273

  3. adizere commented on Mar 14, 2023

    @adizere
    Contributor

    Feedback from the Strangelove team (an example of an integrator user) on reading the logs:

    - Primarily the P2P logs spamming and taking over.
    - Really hard to determine what P2P is doing.
    - SDK also: can be improved! It's difficult to distinguish SDK from Tendermint.
    

    The P2P problem mitigated partially by tendermint/tendermint#9756


    Some logs that do not help / could be better:

    12:34PM INF Discovered new snapshot format=1 hash="�\x1e~W��2��w �\x15�{�\x19��D*�\"\x14��G�B��<" height=14552000 module=statesync
    12:34PM INF Discovered new snapshot format=1 hash="��F�8��n%��ԧ�42{�L>�t�9�c��>�i�" height=14550000 module=statesync
    12:34PM INF Discovered new snapshot format=1 hash="�}DR��b�9�\u007fYs��\x03��\x11>�\x17=O#v���7�\x1f" height=14554000 module=statesync
    12:34PM INF Discovered new snapshot format=1 hash="����u�x\x02\x1ad�\"��̥[�|\b�=HP�\t>�\x1f\v4m" height=14548000 module=statesync
    12:34PM INF Discovered new snapshot format=1 hash="��F�S�\x1d�7��\x14���\f�5�+6�z��\b�ӓ�h%" height=14546000 module=statesync
    
  4. changed the title [-]Short-term monitoring/logging improvements[/-] [+]Monitoring/logging improvements[/+] on May 11, 2023
  5. thanethomson commented on May 11, 2023

    @thanethomson
    Contributor

    We need a guiding principle for doing the logging improvements. My recommendation here:

    1. Have all logs INFO-level and above be targeted specifically at operators, and be actionable and informative for them.
    2. Have all DEBUG-level logs and below primarily target consensus engine developers, and be actionable and informative for consensus engine developers.
  6. added
    monitoring
    on May 12, 2023
  7. thanethomson commented on May 12, 2023

    @thanethomson
    Contributor

    Some good feedback from @greg-szabo, @sryps and @mircea-c (Greg/Shawn/Mircea, feel free to add/elaborate here if I've missed something important):

    • Allow for filtering out specific modules' messages (e.g. P2P).
    • Make consensus reactor and state logging more visible, especially with height information (useful for quick checks on node health)
    • Perhaps consider a more aggregated approach to logging, e.g. "log P2P events when we have less than 5 connections active"
    • Ensure that, when enabling JSON logging, all logging output is consistently formatted as JSON
    • CometBFT logging is incredibly verbose, and a debug-level logging is a drag on the filesystem

    A good suggestion from @greg-szabo is also to start documenting logging guidelines for developers. Issues they've seen:

    • Logs not going through the logging system, just printed to stdout
    • P2P log entries mislabeled into a "pex" module, instead of "p2p"
    • Differing property type on common properties of log entries (something=5 as integer, but a new module does something=1-5 as string, because they wanted to add some additional info...) It's unparseable that way.
  8. added
    P:operator-experience
    on Nov 13, 2023
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

    P:operator-experiencelogsmonitoring

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions