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

selective_cache_purge_redis_database per server? #19

Open
livid opened this issue Feb 28, 2019 · 1 comment
Open

selective_cache_purge_redis_database per server? #19

livid opened this issue Feb 28, 2019 · 1 comment

Comments

@livid
Copy link

livid commented Feb 28, 2019

Is it possible to specify different selective_cache_purge_redis_database per server?

Why I needed this is that one of the servers has too many cached items, it slows everything down. If it is possible to use selective_cache_purge_redis_database per server, purging on other servers with fewer cached items could become faster.

Currently when I set different selective_cache_purge_redis_database for different server, I get this error message:

nginx: [emerg] "selective_cache_purge_redis_database" directive is duplicate in ...
@wandenberg
Copy link
Owner

Not in the current version. It would require some refactoring on both ends, composing the index on Redis an on the purge location.
One quick/temporary solution using the current code is splitting your Nginx instance with multiple servers to 1 + n instances, one instance to each server and Redis database and another instance doing the routing to the servers based on the domain/port.
I know that is probably not the answer you want to, but will allow you to solve the issue without having to change the module code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants