Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.