-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Redis connection errors #211
Comments
Hi! It might be the Redis instance is over-solicited. You may need to get your hands dirty at tuning the configuration of your Redis instance. It can probably be achieved by passing options on the command-line through a local Docker Compose override file. Here are the options we pass to our Redis instance for cache at --maxmemory 1GB --maxmemory-policy allkeys-lru --save "" To pass these options to the command-line, please read the quick how-to I wrote about Docker Compose Overrides and adapt Modify memory settings to your specific needs which look like @mwiencek: Since you are more knowledgeable than me about Redis use in MusicBrainz, can you please double-check both the reported issue (for a potential bug to be fixed in |
Thanks @yvanzo for your reply. I will try this |
It seems that the issue was not specific for Redis. Even after disabling redis entirely, I kept getting a similar error for Postgres. I noticed with Ideally, this could be resolved at the application level, by reusing the connections it is creating (eg use connection pooling for Postgres) More information about the issue https://www.percona.com/blog/2014/12/08/what-happens-when-your-application-cannot-open-yet-another-connection-to-mysql/ I could open a Pull Request with the change in the |
In production, we use |
Thanks, if that would be complementary to Postgres connection pooling, yes. |
Maybe it would, even as an optional part.
Yes, it can be complementary to the pooling and it will also help avoid issues with Redis. I will open a PR shortly. |
@nikosmichas have you figured out how to modify the local/compose/memory-settings.yml file to accomplish this? I believe this is working for me
|
using the values above cause my slave server to sometimes timeout for MQ queue or checking the index count vs the DB. I have removed these redis-server modifications and I have not had an issue anymore. |
Correction, the error I am getting is below and started to occur after upgrading to ubuntu x64 22.04.1 LTS.
From searching on the web, it looks to be an SELinux issue |
Hello!
I have increased the number of workers for the webserver and run the services through docker-compose, while sending a lot of API requests.
After some time, I start getting errors like these in the logs of the server:
Any idea/suggestion on how to handle this?
The text was updated successfully, but these errors were encountered: