Jump to content

copy of couchdb every first of the month


Recommended Posts

I saw that every first of the month,  kazzo tells couchdb to create a new databases for all the accounts and rename the old one like YEARMONTH (like account_XXXXXXXXXXXXXX_202202).

This starts at midnight and lasts for over 8 hours...in mean time the kazoo UI is not available and the sip calls neither.

I need to restar the dbs machines for getting back available.

What I have to do to disable this function?


Link to comment
Share on other sites

These are MODBs: https://docs.2600hz.com/dev/core/kazoo_modb/doc/

They are critical to KAZOO usage, so there's no disabling of them. If the MODB doesn't exist when a document (like a CDR) needs to be saved, the MODB will be created. If you have a lot of activity, they'll all stack up waiting for the MODB to be created.

What you can do is configure the MODB task (https://docs.2600hz.com/dev/applications/tasks/doc/modb_creation/)

Set that to pre-create the next month's MODB for all accounts and give it enough lead time (say 3-5 days depending on how many accounts you have); the task will automatically spread out the MODB creations across that time period to hopefully minimize impact on the DB cluster.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...