Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

chore: expose more peer debugging info in diagnostics #2577

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

rudolfs
Copy link
Member

@rudolfs rudolfs commented Nov 4, 2021

Add mode debug info.

{
  "listenAddresses": [
    "127.0.0.1:62227",
    "192.168.178.20:62227"
  ],
  "protocolConfig": {
    "membership": {
      "maxActive": 5,
      "maxPassive": 30,
      "activeRandomWalkLength": 6,
      "passiveRandomWalkLength": 3,
      "shuffleSampleSize": 7,
      "promoteInterval": {
        "nanos": 0,
        "secs": 30
      },
      "shuffleInterval": {
        "nanos": 0,
        "secs": 30
      }
    },
    "network": "Main",
    "replication": {
      "fetchLimit": {
        "peek": 5120000,
        "data": 5368709120
      }
    },
    "fetch": {
      "fetchSlotWaitTimeout": {
        "nanos": 0,
        "secs": 20
      }
    }
  },
  "membership": {
    "active": [
      "hynkyndc6w3p8urucakobzna7sxwgcqny7xxtw88dtx3pkf7m3nrzc"
    ],
    "passive": []
  }
}

@rudolfs rudolfs requested a review from a team as a code owner November 4, 2021 13:52
@@ -36,6 +36,37 @@ export interface Diagnostics {
refsTree: string[];
};
peer: {
listenAddresses: string[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we’re not doing anything concrete with the data the following would be acceptable and require less changes in the futures:

  peer: unknown
  peer: zod.unknown()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 14d23ef

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
@rudolfs rudolfs merged commit ba239eb into master Nov 4, 2021
@rudolfs rudolfs deleted the rudolfs/more-debug-info branch November 4, 2021 16:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants