mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-30 07:11:04 +01:00
[MINOR] stick_table: enable it for frontends too
A frontend may very well host a stick-table. In fact it will be useful with connection throttling.
This commit is contained in:
parent
13c29dee21
commit
c00cdc2eb0
@ -4998,7 +4998,7 @@ stick-table type {ip | integer | string [len <length>] } size <size>
|
|||||||
[expire <expire>] [nopurge] [store <data_type>]*
|
[expire <expire>] [nopurge] [store <data_type>]*
|
||||||
Configure the stickiness table for the current backend
|
Configure the stickiness table for the current backend
|
||||||
May be used in sections : defaults | frontend | listen | backend
|
May be used in sections : defaults | frontend | listen | backend
|
||||||
no | no | yes | yes
|
no | yes | yes | yes
|
||||||
|
|
||||||
Arguments :
|
Arguments :
|
||||||
ip a table declared with "type ip" will only store IPv4 addresses.
|
ip a table declared with "type ip" will only store IPv4 addresses.
|
||||||
@ -5059,8 +5059,8 @@ stick-table type {ip | integer | string [len <length>] } size <size>
|
|||||||
"server_id" type is also supported but it's only for internal
|
"server_id" type is also supported but it's only for internal
|
||||||
use for stick and store directives.
|
use for stick and store directives.
|
||||||
|
|
||||||
The is only one stick-table per backend. At the moment of writing this doc,
|
There is only one stick-table per proxy. At the moment of writing this doc,
|
||||||
it does not seem useful to have multiple tables per backend. If this happens
|
it does not seem useful to have multiple tables per proxy. If this happens
|
||||||
to be required, simply create a dummy backend with a stick-table in it and
|
to be required, simply create a dummy backend with a stick-table in it and
|
||||||
reference it.
|
reference it.
|
||||||
|
|
||||||
|
|||||||
@ -4877,7 +4877,7 @@ int check_config_validity()
|
|||||||
curproxy->be_rsp_ana |= AN_RES_STORE_RULES;
|
curproxy->be_rsp_ana |= AN_RES_STORE_RULES;
|
||||||
|
|
||||||
if (mrule->table.name)
|
if (mrule->table.name)
|
||||||
target = findproxy(mrule->table.name, PR_CAP_BE);
|
target = findproxy(mrule->table.name, 0);
|
||||||
else
|
else
|
||||||
target = curproxy;
|
target = curproxy;
|
||||||
|
|
||||||
@ -4910,7 +4910,7 @@ int check_config_validity()
|
|||||||
curproxy->be_rsp_ana |= AN_RES_STORE_RULES;
|
curproxy->be_rsp_ana |= AN_RES_STORE_RULES;
|
||||||
|
|
||||||
if (mrule->table.name)
|
if (mrule->table.name)
|
||||||
target = findproxy(mrule->table.name, PR_CAP_BE);
|
target = findproxy(mrule->table.name, 0);
|
||||||
else
|
else
|
||||||
target = curproxy;
|
target = curproxy;
|
||||||
|
|
||||||
@ -5471,7 +5471,6 @@ out_uri_auth_compat:
|
|||||||
* other proxies.
|
* other proxies.
|
||||||
*/
|
*/
|
||||||
for (curproxy = proxy; curproxy; curproxy = curproxy->next)
|
for (curproxy = proxy; curproxy; curproxy = curproxy->next)
|
||||||
if (curproxy->cap & PR_CAP_BE)
|
|
||||||
stktable_init(&curproxy->table);
|
stktable_init(&curproxy->table);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user