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

Problem: High network usage in instances #738

Open
Tracked by #764
outerlook opened this issue Nov 25, 2024 · 4 comments
Open
Tracked by #764

Problem: High network usage in instances #738

outerlook opened this issue Nov 25, 2024 · 4 comments
Assignees

Comments

@outerlook
Copy link
Contributor

TL DR
KGW is polling our whole data too frequently to determine which streams exist. It will be temporarily configured to have a lower frequency (default 6 seconds) while the Kwil team works on solving this issue. --schema-sync-interval will be set to 300 secs

Process for future reference

  • detected our network usage was incredibly high (TB/day), and it was increasing proportionally with amount of streams
  • requests seemed to be coming from KGW since its outgoing data was low while incoming was high (eth0 interface)
  • Determined that the source is KGW polling all the schemas
  • We'll temporarily make this poll interval to 5 minutes. Consequence: we'll probably get dataset/schema/procedure not found errors right after creating streams. It only affects deployment. If desired, we can target nodes directly to avoid this error while deploying

cc @MicBun

@outerlook outerlook self-assigned this Nov 25, 2024
@outerlook
Copy link
Contributor Author

another temporary solution we could take if a lower frequency turns to be bad: moving all nodes to same AZ in AWS. At least cost/GB is free

@MicBun
Copy link
Contributor

MicBun commented Nov 25, 2024

We'll temporarily make this poll interval to 5 minutes.

I think more than 5 minutes is still good, most of our data are updated daily and we don't need a fast sync yet.

@zolotokrylin
Copy link
Contributor

Is it a goal or a bug?

@outerlook
Copy link
Contributor Author

outerlook commented Dec 11, 2024

Is it a goal or a bug?

significative limitation? adding to https://github.com/trufnetwork/truf-network/issues/90 was good

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

No branches or pull requests

3 participants