]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: backend: Do not always allow takeover across thread groups
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 6 Aug 2026 10:49:54 +0000 (12:49 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 7 Aug 2026 10:13:45 +0000 (12:13 +0200)
Instead of silently ignoring tune.idle-pool.shared. full
if tune.fd.tables per-thread-group is set, have an error at startup if
both are set, as they are incompatible.

src/cfgparse.c

index 48edfae62467c87fc44127d102aa7b49d7859be3..ee86a7b5ae390a8686a67978f908743a1556c232 100644 (file)
@@ -2344,6 +2344,12 @@ int check_config_validity()
                goto out;
        }
 
+       if ((global.tune.tg_takeover == FULL_THREADGROUP_TAKEOVER) &&
+           (global.tune.options & GTUNE_NO_TG_FD_SHARING)) {
+               err_code |= ERR_FATAL | ERR_ALERT;
+               ha_alert("tune.fd.tables per-thread-group is incompatible with tune.idle-pool shared full\n");
+               goto out;
+       }
        pool_head_requri = create_pool("requri", global.tune.requri_len , MEM_F_SHARED);
 
        pool_head_capture = create_pool("capture", global.tune.cookie_len, MEM_F_SHARED);