Skip to content

Commit e7f97d4

Browse files
committed
Comment: added additional explanation of vhost_traffic_status_zone
1 parent 2e2c19b commit e7f97d4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,17 @@ If you set `vhost_traffic_status_zone` directive, is automatically enabled.
11591159

11601160
`Description:` Sets parameters for a shared memory zone that will keep states for various keys.
11611161
The cache is shared between all worker processes.
1162+
In most cases, the shared memory size used by nginx-module-vts does not increase much.
1163+
The shared memory size is increased pretty when using `vhost_traffic_status_filter_by_set_key`
1164+
directive but if filter's keys are fixed(*eg. the total number of the country code is about 240*)
1165+
it does not continuously increase.
1166+
1167+
If you use `vhost_traffic_status_filter_by_set_key` directive, set it as follows:
1168+
1169+
* Set to more than 32M shared memory size by default.
1170+
(`vhost_traffic_status_zone shared:vhost_traffic_status:32m`)
1171+
* If the message(*`"ngx_slab_alloc() failed: no memory in vhost_traffic_status_zone"`*)
1172+
printed in error_log, increase to more than (usedSize * 2).
11621173

11631174
### vhost_traffic_status_dump
11641175

0 commit comments

Comments
 (0)