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.
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.
Regards,
-agentzh
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.