Willy Tarreau
6c0117168e
MEDIUM: stick-table: set the track-sc limit at boottime via tune.stick-counters
...
The number of stick-counter entries usable by track-sc rules is currently
set at build time. There is no good value for this since the vast majority
of users don't need any, most need only a few and rare users need more.
Adding more counters for everyone increases memory and CPU usages for no
reason.
This patch moves the per-session and per-stream arrays to a pool of a size
defined at boot time. This way it becomes possible to set the number of
entries at boot time via a new global setting "tune.stick-counters" that
sets the limit for the whole process. When not set, the MAX_SESS_STR_CTR
value still applies, or 3 if not set, as before.
It is also possible to lower the value to 0 to save a bit of memory if
not used at all.
Note that a few low-level sample-fetch functions had to be protected due
to the ability to use sample-fetches in the global section to set some
variables.
2023-01-06 18:08:49 +01:00
..
2022-11-14 11:14:02 +01:00
2022-04-25 15:28:21 +02:00
2022-11-25 15:41:47 +01:00
2022-08-23 20:19:11 +02:00
2022-11-22 16:27:52 +01:00
2022-11-24 15:24:02 +01:00
2022-11-21 19:21:07 +01:00
2022-05-27 19:33:35 +02:00
2022-04-19 08:23:30 +02:00
2022-06-23 11:49:09 +02:00
2022-11-15 09:37:09 +01:00
2022-11-22 16:27:52 +01:00
2022-12-02 14:45:43 +01:00
2023-01-02 09:51:35 +01:00
2022-04-26 10:59:48 +02:00
2022-04-26 10:59:48 +02:00
2023-01-06 18:08:49 +01:00
2022-05-27 19:33:34 +02:00
2022-12-07 17:04:08 +01:00
2022-08-17 10:45:22 +02:00
2022-11-25 15:41:47 +01:00
2022-11-14 19:14:53 +01:00
2022-04-25 19:42:43 +02:00
2022-10-03 12:06:36 +02:00
2022-07-15 19:43:10 +02:00
2023-01-02 09:51:35 +01:00
2022-08-03 10:30:07 +02:00
2022-10-30 17:17:56 +01:00
2022-09-21 09:06:28 +02:00
2022-09-21 09:06:28 +02:00
2022-09-21 09:06:28 +02:00
2022-09-09 11:15:22 +02:00
2022-07-15 20:16:30 +02:00
2022-12-06 10:22:07 +01:00
2022-10-12 21:49:30 +02:00
2022-05-16 16:00:26 +02:00
2022-12-09 12:23:14 +01:00
2023-01-05 18:06:58 +01:00
2022-04-13 15:10:16 +02:00
2022-10-10 15:49:09 +02:00
2022-11-14 11:14:02 +01:00
2022-11-14 11:14:02 +01:00
2021-11-08 12:08:26 +01:00
2022-12-14 10:44:17 +01:00
2022-05-27 19:33:35 +02:00
2022-11-14 11:14:02 +01:00
2022-11-22 17:49:10 +01:00
2022-12-14 11:34:18 +01:00
2022-05-30 09:59:26 +02:00
2022-12-22 16:47:24 +01:00
2023-01-06 18:08:49 +01:00
2022-11-14 11:14:02 +01:00
2022-10-12 14:19:05 +02:00
2022-12-08 11:30:03 +01:00
2022-04-12 08:40:38 +02:00
2022-09-20 07:41:58 +02:00
2022-04-12 08:30:08 +02:00
2022-09-20 15:35:29 +02:00
2023-01-06 16:42:24 +01:00
2022-11-18 10:20:44 +01:00
2022-12-22 15:39:31 +01:00
2022-04-08 10:12:59 +02:00
2023-01-05 09:33:23 +01:00
2022-12-15 11:41:39 +01:00
2022-04-25 19:26:26 +02:00
2022-12-14 11:34:18 +01:00
2022-02-28 17:16:55 +01:00
2022-04-22 15:45:47 +02:00
2022-02-15 20:08:20 +01:00
2022-11-22 09:10:08 +01:00
2022-12-22 15:39:31 +01:00
2022-04-12 08:19:33 +02:00
2022-06-08 15:28:38 +02:00
2022-11-14 11:14:02 +01:00
2022-03-22 09:25:52 +01:00
2022-11-17 14:33:15 +01:00
2022-12-19 11:01:26 +01:00
2022-12-22 13:46:21 +01:00
2022-11-17 14:33:15 +01:00
2022-12-23 00:15:20 +01:00
2022-01-28 19:04:02 +01:00
2022-12-07 18:26:53 +01:00
2022-11-29 15:15:27 +01:00
2022-08-01 11:59:46 +02:00
2022-05-27 19:33:35 +02:00
2022-12-07 18:26:53 +01:00
2022-12-22 13:46:21 +01:00
2022-12-21 09:27:26 +01:00
2022-07-25 16:11:11 +02:00
2022-05-20 18:39:43 +02:00
2022-05-20 18:39:43 +02:00
2022-05-20 18:39:43 +02:00
2022-05-20 18:39:43 +02:00
2022-09-09 17:23:01 +02:00
2023-01-06 16:42:24 +01:00
2022-09-20 15:35:33 +02:00
2022-10-18 12:04:10 +02:00
2022-08-17 11:04:53 +02:00
2022-05-30 14:30:05 +02:00
2022-11-24 15:38:26 +01:00
2022-07-30 10:00:59 +02:00
2022-08-03 14:27:20 +02:00
2022-10-03 16:25:17 +02:00
2022-10-03 16:25:17 +02:00
2022-12-22 16:38:04 +01:00
2022-10-03 16:25:17 +02:00
2022-10-13 10:12:03 +02:00
2022-12-21 09:27:26 +01:00
2022-12-02 14:45:43 +01:00
2022-10-13 10:12:03 +02:00
2022-10-03 16:25:17 +02:00
2022-11-24 09:16:41 +01:00
2022-11-18 15:12:23 +01:00
2022-09-01 19:34:46 +02:00
2022-12-14 10:44:17 +01:00
2022-10-13 16:45:28 +02:00
2022-12-14 08:24:15 +01:00
2022-01-28 19:04:02 +01:00
2022-12-07 17:03:55 +01:00
2023-01-06 18:08:49 +01:00
2021-11-19 19:25:13 +01:00
2022-09-09 11:15:22 +02:00
2022-11-16 18:59:43 +01:00
2022-11-14 11:14:02 +01:00
2022-10-11 16:46:04 +02:00
2022-07-15 19:58:06 +02:00
2022-07-25 16:11:11 +02:00
2022-12-21 11:21:07 +01:00
2022-12-21 11:21:07 +01:00
2023-01-02 15:21:57 +01:00
2022-11-18 15:24:23 +01:00
2022-12-21 11:21:07 +01:00
2022-12-21 11:21:07 +01:00
2022-12-22 13:46:21 +01:00
2022-12-05 11:24:24 +01:00
2023-01-06 18:08:49 +01:00
2023-01-06 18:08:49 +01:00
2022-11-22 10:24:07 +01:00
2022-11-19 04:53:47 +01:00
2023-01-06 18:08:49 +01:00
2022-09-03 06:11:08 +02:00
2022-11-14 11:14:02 +01:00
2022-12-21 11:21:07 +01:00
2022-12-02 14:45:43 +01:00
2022-11-16 17:55:53 +01:00
2022-11-14 11:14:02 +01:00
2022-07-01 19:26:35 +02:00
2022-06-23 11:49:09 +02:00
2022-10-26 18:18:26 +02:00