I have a master caching server with nginx. Its setup with proxy_pass and proxy_cache.
But I want to add more nginx caching servers in other locations that will all contain the same contents with master cache server.
So it wouldnt matter to which server I send the request.
Is it possible to just rsync the cache directory across all the servers?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|||
|
|
|
Not an exact answer, since I don't actually know if it is ok to rsync cache directories (have you tried? what results you got?), but if you configured nginx correctly it shouldn't matter to which server you send requests, they'll fetch it from the cache if available and go to origin servers if not - that's the whole point of caching: they will self populate with use. I wouldn't bother too much about initial seeding unless you have some very strange very specific scenario. |
|||
|
|