We’re using nginx 1.1.6 ver. 5 server connected NetApp storage via NFS .
(/var/www )
Sometimes 1 or 2 server return cache size 0-byte and don’t answer http
request. Other 3 server working well .
If i restarted nginx or delete cache file , 0-byte problem resolve.
Example service conf :
upstream upstream.test.com {
server 1.1.1.1:80;
server 2.2.2.2:80 backup;
server 3.3.3.3:80 backup;
}
server {
listen 80;
server_name video.test.com;
access_log off;
We’re using 12 x 600 GB SAS 15K Hard drives on NetApp storage, so
storage I/O operations very fast. But my problem is not speed .
The cache is expected to be used only by a single nginx instance.
Sharing it will not work. The cache is made up of the cache directory,
temp files, and shared memory.
If you really need shared cache as well, then look into using memc with
srcache modules.
Can you please explain why only one distance ? If you have same cachekey
and structure , cache work all intance even remote locations .
And system works well , sometimes and some servers occurs problem .
On Sat, Oct 29, 2011 at 09:59:43PM -0400, kernelheaders wrote:
and structure , cache work all intance even remote locations .
And system works well , sometimes and some servers occurs problem .
As Brian already wrote, nginx currently doesn’t allow sharing of
the same cache directory between several nginx instances. It
doesn’t expect cache files to appear or be changed by another
nginx instance. If you share cache directory between multiple
nginx instances - weird things will happen, and problem you see is
one of them.
Maxim D.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.