Skip to content

Status endpoint slow responding #540

Open
@rotarur

Description

@rotarur

Describe the bug
We see some slowness when accessing the status endpoint with a SG, it's taking around 15 seconds to respond to this query

time curl --location 'https://indexer.upgrade.thegraph.com/status' \
--header 'Content-Type: application/json' \
--data '{"query":"query SubgraphStatus($subgraphs: [String!]!){\n    indexingStatuses (subgraphs: $subgraphs) {\n        subgraph\n        chains {\n            latestBlock { number }\n            chainHeadBlock { number }\n            earliestBlock { number}\n            network\n        }\n        health\n        subgraph\n        synced \n    }\n}","variables":{"subgraphs":["QmTPchmde88PpAyVCR9h66GsU1pKWGcRXj9MrDTY5A8imX"]}}'

0.01s user 0.01s system 0% cpu 13.525 total

when it's much faster when querying this

time curl --location 'https://api.thegraph.com/index-node/graphql' --header 'Content-Type: application/json' --data '{"query":"query SubgraphStatus($subgraphs: [String!]!){\n    indexingStatuses (subgraphs: $subgraphs) {\n        subgraph\n        chains {\n            latestBlock { number }\n            chainHeadBlock { number }\n            earliestBlock { number}\n            network\n        }\n        health\n        subgraph\n        synced \n    }\n}","variables":{"subgraphs":["QmTPchmde88PpAyVCR9h66GsU1pKWGcRXj9MrDTY5A8imX"]}}'
{"data":{"indexingStatuses":[{"subgraph":"QmTPchmde88PpAyVCR9h66GsU1pKWGcRXj9MrDTY5A8imX","chains":[{"latestBlock":{"number":"65430191"},"chainHeadBlock":{"number":"65430191"},"earliestBlock":{"number":"65429616"},"network":"matic"}],"health":"healthy","synced":true}]}}curl --location 'https://api.thegraph.com/index-node/graphql'

0.01s user 0.01s system 3% cpu 0.423 total

Desktop (please complete the following information):

  • Other Versionings:
    • indexer-service-rs:v1.3.2
    • graph-node:v0.36.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions