-
Notifications
You must be signed in to change notification settings - Fork 144
Excessive startup time with large number of databases #162
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
Comments
Are you finding that the startup time is slow even when the permissions on those databases are already correct? We've optimized the startup time in the past by switching to a conditional fix of the permissions, see #109 for some of the discussion there. If so, I suppose we could push the |
I'm probably being a bit shy by saying "one thousand" ( I'll force a restart tonight to try to better understand where the limitation might be. |
Hi @shimaore , Previously we've had issues with people using the wrong storage driver for Docker leading to issues. Do you know which storage driver you're using? If |
Hi @wohali , Sorry, I should have mentioned it. This is a In my test tonight I wasn't able to reproduce the issue to the same extent. The system spent some time (about 30s) on running
This brings two remarks:
So there's definitely some slowness that is due to the fact that Docker is starting the container (maybe caching-related or whatsnot). In that case it might be better to delay the |
The slowness is (based on Since this might be specific to my environment, I might be better off at this point building a custom container based on the official one with a modified entrypoint, and do more detailed performance analysis. I'll close for now and open a new issue if I figure something out. Thank you for your time @kocolosk and @wohali. |
Expected Behavior
Startup should take a few seconds, not a few minutes.
Current Behavior
Currently, the
find
command indocker-entrypoint.sh
might run for a few minutes if there is a large number (e.g. thousands) of databases in a cluster.Possible Solution
Run the
find
command in the background instead of the foreground.Steps to Reproduce (for bugs)
I guess this is fairly obvious, but you could reproduce the issue with
Context
Running a large number of databases in production, CouchDB takes a long time to restart after a crash.
Your Environment
The text was updated successfully, but these errors were encountered: