Joystream / Joystream/joystream

Query Node Processor Slow Down

Open
#3,848 0 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement qn-hydra-board query-node should-have
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

I have observed that the processor is experiencing a slow down in the rate of processing blocks/events during a re-sync.
When the processor is started up the rate is quite high (just by observing the logs). After a short while it becomes very very slow. This issue isn't really noticeable while the node is also re-indexing because the processor can only go as fast as new blocks are indexed. It is most noticeable when we only drop the processor db and keep the indexer-db intact.

After processor slows down, simply killing the processor and restarting it, gets the processor moving quickly again.
One observation is that the memory usage does grow significantly:

Screen Shot 2022-06-06 at 11 58 12 AM

Is the processor perhaps not closing connections. Is the database or the indexer gateway (graphql) a bottleneck. Are those services throttling queries somehow?

I did try stopping the indexer to see if perhaps database write lock might block reading indexed blocks significantly, but that didn't seem to have any noticeable impact.

cc: @ondratra @bwhm @dmtrjsg @bedeho

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.