Mongodb database not sleeping
aaronclaes
PROOP

10 months ago

I upgraded to the hobby plan (not sure if that's related) and now my mongodb database doesn't sleep anymore.
When I check the logs I see that WiredTiger is taking snapshots every minute. Is there a way to disable this or to increase the interval?

I tried adding --wiredTigerEngineConfigString "checkpoint=(wait=600)" to my start command, but that did not seem to work.

Thanks in advance!

12 Replies

aaronclaes
PROOP

10 months ago

184bb9c6-9cee-4773-8836-9afd8305902a


smoothcubegit
HOBBY

10 months ago

Is there a reason why you want it to sleep? Databases shouldnt really sleep tbh


aaronclaes
PROOP

10 months ago

Project isn't live yet so the main reason is for it to save on resources
And for staging environments in the future, it would also be nice if it wasn't running the entire time

The thing is that this just worked before upgrading to the hobby plan


smoothcubegit
HOBBY

10 months ago

Hmm.. Thats strange.


smoothcubegit
HOBBY

10 months ago

Databases aren't meant to sleep by the way


smoothcubegit
HOBBY

10 months ago

they store data, the process that talks to the databases should sleep, not the database
However if you want to.. then


aaronclaes
PROOP

10 months ago

Hmm, I see that the db is sleeping now 😅
Maybe it wasn't related to the wiredTiger

1368896694166749200


smoothcubegit
HOBBY

10 months ago

all good haha!


aaronclaes
PROOP

10 months ago

true, it's just the "serverless" toggle in the settings


smoothcubegit
HOBBY

10 months ago

Yeah, I know about that, used to use it when I was developing, but it delayed my servers. W tho!


aaronclaes
PROOP

10 months ago

Ah alright, good to know, I ll make sure to turn it off when the project is actually live, thanks for reaching out!


smoothcubegit
HOBBY

10 months ago

No problemo! Message back here if anything else is problematic


Loading...