Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

currentEpoch & slotInEpoch in health object #166

Merged
merged 4 commits into from
Jan 24, 2022

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Jan 24, 2022

Fixes #164

  • 📍 Extend 'Health' with current epoch number and slot within epoch.

  • 📍 Get epoch number and slot in epoch from the time interpreter.

  • 📍 Unit and smoke test 'currentEpoch' & 'slotInEra' in health
    From logs, on testnet:

    {
        "severity": "Info",
        "timestamp": "2022-01-24T14:56:58.61614791Z",
        "thread": "16",
        "message": {
            "Health": {
                "tag": "HealthTick",
                "status": {
                    "startTime": "2022-01-24T14:56:38.537958011Z",
                    "lastKnownTip": {
                        "slot": 47729097,
                        "hash": "81d7b92d06ee966550153bbd41295a177b73ba9e7f59db770c57fcbeb0ba7217",
                        "blockNo": 3234906
                    },
                    "lastTipUpdate": "2022-01-24T14:56:58.615657341Z",
                    "networkSynchronization": 0.98813,
                    "currentEra": "Alonzo",
                    "metrics": {
                        "totalUnrouted": 0,
                        "totalMessages": 0,
                        "runtimeStats": {
                            "gcCpuTime": 17822836,
                            "cpuTime": 263435464,
                            "maxHeapSize": 334,
                            "currentHeapSize": 333
                        },
                        "totalConnections": 0,
                        "sessionDurations": {
                            "max": 0,
                            "mean": 0,
                            "min": 0
                        },
                        "activeConnections": 0
                    },
                    "connectionStatus": "connected",
                    "currentEpoch": 180,
                    "slotInEpoch": 338697
                }
            }
        },
        "version": "v5.0.0-47-g5646160c"
    }
    • TypeScript client specs.

KtorZ added 3 commits January 24, 2022 15:40
  From logs, on testnet:

  ```json
  {
      "severity": "Info",
      "timestamp": "2022-01-24T14:56:58.61614791Z",
      "thread": "16",
      "message": {
          "Health": {
              "tag": "HealthTick",
              "status": {
                  "startTime": "2022-01-24T14:56:38.537958011Z",
                  "lastKnownTip": {
                      "slot": 47729097,
                      "hash": "81d7b92d06ee966550153bbd41295a177b73ba9e7f59db770c57fcbeb0ba7217",
                      "blockNo": 3234906
                  },
                  "lastTipUpdate": "2022-01-24T14:56:58.615657341Z",
                  "networkSynchronization": 0.98813,
                  "currentEra": "Alonzo",
                  "metrics": {
                      "totalUnrouted": 0,
                      "totalMessages": 0,
                      "runtimeStats": {
                          "gcCpuTime": 17822836,
                          "cpuTime": 263435464,
                          "maxHeapSize": 334,
                          "currentHeapSize": 333
                      },
                      "totalConnections": 0,
                      "sessionDurations": {
                          "max": 0,
                          "mean": 0,
                          "min": 0
                      },
                      "activeConnections": 0
                  },
                  "connectionStatus": "connected",
                  "currentEpoch": 180,
                  "slotInEpoch": 338697
              }
          }
      },
      "version": "v5.0.0-47-g5646160c"
  }
  ```

  + TypeScript client specs.
@KtorZ KtorZ self-assigned this Jan 24, 2022
@KtorZ KtorZ merged commit 99ea8ed into master Jan 24, 2022
@KtorZ KtorZ deleted the KtorZ/164/current-epoch-in-health branch January 24, 2022 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request (epoch number in /health endpoint)
1 participant