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

feat: Added db and versions to status #497

Merged
merged 4 commits into from
Dec 19, 2024
Merged

feat: Added db and versions to status #497

merged 4 commits into from
Dec 19, 2024

Conversation

macterra
Copy link
Collaborator

@macterra macterra commented Dec 19, 2024

Added the db type and confirmed count and DIDs by version to the status report:

gatekeeper-1  | Status -----------------------------
gatekeeper-1  | DID Database (redis):
gatekeeper-1  |   Total: 10600
gatekeeper-1  |   By registry:
gatekeeper-1  |     TBTC: 3117
gatekeeper-1  |     TESS: 2579
gatekeeper-1  |     TFTC: 3150
gatekeeper-1  |     hyperswarm: 1730
gatekeeper-1  |     local: 24
gatekeeper-1  |   By version:
gatekeeper-1  |     1: 9448
gatekeeper-1  |     2: 679
gatekeeper-1  |     3: 292
gatekeeper-1  |     4: 52
gatekeeper-1  |     5: 32
gatekeeper-1  |     6+: 97
gatekeeper-1  |   Confirmed: 10020
gatekeeper-1  |   Ephemeral: 2
gatekeeper-1  |   Invalid: 0
gatekeeper-1  | Memory Usage Report:
gatekeeper-1  |   RSS: 208.11 MB (Resident Set Size - total memory allocated for the process)
gatekeeper-1  |   Heap Total: 75.86 MB (Total heap allocated)
gatekeeper-1  |   Heap Used: 46.62 MB (Heap actually used)
gatekeeper-1  |   External: 21.60 MB (Memory used by C++ objects bound to JavaScript)
gatekeeper-1  |   Array Buffers: 19.24 MB (Memory used by ArrayBuffer and SharedArrayBuffer)
gatekeeper-1  | Uptime: 488s (8 minutes, 8 seconds)

The response to get-status contains all the version info which is summarized in the report:

./admin get-status
{
    "uptimeSeconds": 502,
    "dids": {
        "total": 10600,
        "confirmed": 10020,
        "ephemeral": 2,
        "invalid": 0,
        "byRegistry": {
            "TBTC": 3117,
            "TESS": 2579,
            "hyperswarm": 1730,
            "TFTC": 3150,
            "local": 24
        },
        "byVersion": {
            "1": 9448,
            "2": 679,
            "3": 292,
            "4": 52,
            "5": 32,
            "6": 17,
            "7": 15,
            "8": 10,
            "9": 8,
            "10": 4,
            "11": 4,
            "12": 8,
            "13": 3,
            "14": 1,
            "15": 2,
            "16": 5,
            "18": 4,
            "22": 3,
            "23": 1,
            "25": 2,
            "31": 1,
            "32": 1,
            "37": 1,
            "42": 1,
            "44": 1,
            "50": 1,
            "56": 1,
            "61": 1,
            "62": 1,
            "64": 1
        }
    },
    "memoryUsage": {
        "rss": 218214400,
        "heapTotal": 79548416,
        "heapUsed": 49622744,
        "external": 22649782,
        "arrayBuffers": 20171864
    }
}

@macterra macterra linked an issue Dec 19, 2024 that may be closed by this pull request
@macterra macterra merged commit 03c4599 into main Dec 19, 2024
9 checks passed
@macterra macterra deleted the 493-add-db-to-status branch December 19, 2024 19:21
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.

Add db type to status report
1 participant