Welcome! Log In Create A New Profile

Advanced

Re: how ngx.shared.DICT could be locked

Vladimir Shebordaev
January 08, 2013 05:02AM
Hi!

On 08.01.2013 13:09, Anatoli Marinov wrote:
> Hello Colleagues,
> I am wondering is there a method for shared dictionary locking.
> In my script I have to flush all records from the dictionary and
> after that the script will put new records. In this time I do not
> want other workers to read the partially loaded dictionary.
> So is it possible to lock it for a very small period of time?
>

This heavily depends on how your dictionary is accessed from
within nginx. If once the dictionary resides in shared memory
region, you could also use standard system wide IPC primitive
like a semaphore to lock it from your load script.

>
> Thanks in advance
> Anatoli Marinov
>

Regards,
Vladimir

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

how ngx.shared.DICT could be locked

toli 1395 January 08, 2013 04:10AM

Re: how ngx.shared.DICT could be locked

Vladimir Shebordaev 828 January 08, 2013 05:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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