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

Status endpoint slow responding #540

Open
rotarur opened this issue Dec 13, 2024 · 0 comments
Open

Status endpoint slow responding #540

rotarur opened this issue Dec 13, 2024 · 0 comments
Labels
meta:spike pgk:service size:small Small type:perf Issues related to performance

Comments

@rotarur
Copy link
Contributor

rotarur commented Dec 13, 2024

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
@gusinacio gusinacio added size:small Small type:perf Issues related to performance pgk:service meta:spike labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta:spike pgk:service size:small Small type:perf Issues related to performance
Projects
None yet
Development

No branches or pull requests

2 participants