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

Swap memory in orion #269

Open
ignazio-bovo opened this issue Dec 4, 2023 · 0 comments
Open

Swap memory in orion #269

ignazio-bovo opened this issue Dec 4, 2023 · 0 comments

Comments

@ignazio-bovo
Copy link
Contributor

ignazio-bovo commented Dec 4, 2023

On orion production machine we have:

  • RAM: 64 GB
  • SWAP: 4 GB
  • swappiness parameter: 1 (minimum swap usage, ie the linux kernel will use the swap memory the least amount possible)

Problem

even with minimal usage the swap memory tends to fill up and whan it does the normal db queries used for example to load the gleev home page becomes incredibly slow (16 sec).

Solution

add a script to be run periodically say once a week in order to have the swap cleaned

@attemka raised concerns about the archive gateway swap usage (reporting up to 2220532 kB of swap in critical conditions) , I believe that now in the newer version the Subsquid team has deprecated support for self-hosted archive in favour of an archive managed by them under a monthly subscription via credit card.
This would solve the current problem if presented, and also providing more up to date anchive infrastructure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants