Yichun Zhang (agentzh)
November 12, 2014 07:04PM

On Wed, Nov 12, 2014 at 3:01 PM, josephlim wrote:
> I was wondering what happens when multiple workers access the
> ngx.shared.dict in the http lua module ? Are there conflicts/locking that
> could potentially impact performance of nginx? We are talking about 32
> workers in my use case.

It uses the lock mechanism provided by the nginx core to ensure
atomicity and consistency. Basically it uses spinlocks to try first,
failing that, falling back to semaphores.


nginx mailing list
Subject Author Posted

ngx.shared.dict - locking mechanism ?

josephlim November 12, 2014 06:01PM

Re: ngx.shared.dict - locking mechanism ?

Yichun Zhang (agentzh) November 12, 2014 07:04PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready