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

Not an issue: it's a question about backup the redis DB #799

Open
fab-kaz opened this issue Jul 12, 2023 · 2 comments
Open

Not an issue: it's a question about backup the redis DB #799

fab-kaz opened this issue Jul 12, 2023 · 2 comments

Comments

@fab-kaz
Copy link

fab-kaz commented Jul 12, 2023

Hello,

ethercalc works great with redis except one thing: the backup happens every 15s ! so the cpu for redis is near 100% !

Here the logs docker-compose logs -f

ethercalcDB    | 438:C 12 Jul 2023 16:46:50.498 * DB saved on disk
ethercalcDB    | 438:C 12 Jul 2023 16:46:50.558 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 1 MB
ethercalcDB    | 1:M 12 Jul 2023 16:46:50.667 * Background saving terminated with success
ethercalcDB    | 1:M 12 Jul 2023 16:46:51.019 * Background saving started by pid 439

ethercalcDB    | 439:C 12 Jul 2023 16:47:04.780 * DB saved on disk
ethercalcDB    | 439:C 12 Jul 2023 16:47:04.847 * Fork CoW for RDB: current 3 MB, peak 3 MB, average 2 MB
ethercalcDB    | 1:M 12 Jul 2023 16:47:04.950 * Background saving terminated with success
ethercalcDB    | 1:M 12 Jul 2023 16:47:05.096 * Background saving started by pid 440

I tried to start redis-server with command: redis-server --appendonly yes --save 60 10000 with no succes. I tried to look for the redis.conf file but it appears nowhere.

I guess something somewhere bypass my --save 60 10000 parameter. but where ?

thank you for any advice ;)

regards,

fabrice.

@fab-kaz fab-kaz changed the title Not an issue: it's a question abour backup the redis DB Not an issue: it's a question about backup the redis DB Jul 12, 2023
@fab-kaz
Copy link
Author

fab-kaz commented Jul 18, 2023

hello,

i've made some research but still no explanations.

Despite i start redis-server with --appendonly no --save "" --appendfsync no --rdb-save-incremental-fsync no
I can see the BGSAVE in the logs.

My question is: can the image audrey/ethercalc trigger the BGSAVE command ?

thank you !

@fab-kaz
Copy link
Author

fab-kaz commented Jul 18, 2023

I think i can answer to myself: https://github.com/search?q=repo%3Aaudreyt%2Fethercalc%20BGSAVE&type=code

yes, BGSAVE is called from ethercalc. some1 can confirm ?

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

1 participant