Hello,
I currently configure haproxy to insert and use cookies to determine the stickiness of the backend servers. Unfortunately not every user has cookies enabled and some portions of the website would be much more efficient if the user was forced to use the server that initiated the process by selecting it via the server name defined in a URL parameter. Since many of the requests to the website come from third party sites, I cannot control stickiness completely with url parameters. For other various reasons, I would prefer not to use a stick-table and would prefer to use the server name or cookie match to select the server. I would also prefer to not have to setup a backend for every single server, due to the scale of the deployment. Is there any way to tell haproxy to leverage a url parameter to select the backend server by name or cookie match if the URL parameter exists without using a stick-table?
Here is an example of the isolated configurations:
cookie hlb insert indirect maxidle 600 domain .sub.example.com
server s10153 10.10.10.153:80 cookie s10153
server s10154 10.10.10.154:80 cookie s10154
Thank you,
Nick
I currently configure haproxy to insert and use cookies to determine the stickiness of the backend servers. Unfortunately not every user has cookies enabled and some portions of the website would be much more efficient if the user was forced to use the server that initiated the process by selecting it via the server name defined in a URL parameter. Since many of the requests to the website come from third party sites, I cannot control stickiness completely with url parameters. For other various reasons, I would prefer not to use a stick-table and would prefer to use the server name or cookie match to select the server. I would also prefer to not have to setup a backend for every single server, due to the scale of the deployment. Is there any way to tell haproxy to leverage a url parameter to select the backend server by name or cookie match if the URL parameter exists without using a stick-table?
Here is an example of the isolated configurations:
cookie hlb insert indirect maxidle 600 domain .sub.example.com
server s10153 10.10.10.153:80 cookie s10153
server s10154 10.10.10.154:80 cookie s10154
Thank you,
Nick