Welcome! Log In Create A New Profile

Advanced

Re: Etags and Load-balanced environmetn

Maxim Dounin
May 28, 2014 01:26PM
Hello!

On Wed, May 28, 2014 at 06:55:17PM +0200, Lau Buru wrote:

> Hi,
>
> I've got 3 NGinx servers running under a load balancer. I've got ETags
> successfuly configured but the problem is that each server presents
> different ETag tag for the same content:
>
> ETag: "531ee076-6b"
> ETag: "531edf6a-6b"
> ETag: "531ede5f-6b"
> ETag: "531edd4f-6b"

That's because you've failed to sync file modification time between
servers.

> I've read that NGinx is using inode for calculating the ETag so it's
> obvious that we will never get the same ETag for the same file in
> different servers. I know I could get this if I use shared disk but this
> is not an option for me.

You've read something totally wrong. If you can remember where
you read it, add the source to your blacklist (and you may also
share it for others to do the same).

> I wonder if it's on schedule to implement FileEtag directive as exists
> in Apache (http://httpd.apache.org/docs/2.0/mod/core.html#fileetag),
> this would solve these kind of problems.

The default and the only option is to use file modification time
and size. Problems with inode number are well known and were
avoided in nginx from the initial introduction of the entity tags
support.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Etags and Load-balanced environmetn

Lau Buru May 28, 2014 12:56PM

Re: Etags and Load-balanced environmetn

Maxim Dounin May 28, 2014 01:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
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