How to use 2 Nginx server as a reverse proxy for the same website effectively?
November 10, 2009 01:32AM
Dear all,

I am using nginx as a reverse proxy for my website. At peek time, my website uses more than 500mbps. Only one nginx server seem not enough anymore. I'm planning to run 2 nginx and share load by round-robin dns. My question is can both servers share the same cache, so that there are no need to fetch the same page again if the request come to different server.

Can I just share the proxy_cache_path via nfs?
Is the same requested url gonna be hashed to the same key every time in every server?
Is it gonna pose some lock problem when request come simultaneously from 2 servers?

Thank you for your support and the very great server.

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready