]> git.kaiwu.me - njs.git/commit
Modules: limit shared dict state save frequency
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 10 Oct 2026 01:16:25 +0000 (18:16 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 15 Oct 2026 01:49:05 +0000 (18:49 -0700)
commit45db3a190876c0ca49a427641ac4ffe16b7e7ef9
tree3e568ec516b0cf3c24e3eeaf0d2b963b6d6256a2
parent903748497809ea97011ff22a7aa09320d7c1b08c
Modules: limit shared dict state save frequency

Saving shared dict zone content to file is scheduled with a maximum
rate of one write per second in each worker.  The total rate can be
larger by a factor of the number of running workers.

Postpone a zone save if the previous save was less than one second
ago, using a shared timestamp to limit the rate across all workers.
nginx/ngx_js_shared_dict.c