moresandeep opened a new pull request #469:
URL: https://github.com/apache/knox/pull/469
## What changes were proposed in this pull request?
Add a way to turn off HA loadbalancing based on user agent.
This is done because some non-browser clients such as ODBC drivers do not
honor multiple SET-COOKIE headers in response body. This config is to work
around that issue.
This PR proposed a configuration in HA Provider called
`disableLoadBalancingForUserAgents` which takes a comma separated list of user
agents that should disable the HA loadbalancing ifeature.
Following is an example config
```
<provider>
<role>ha</role>
<name>HaProvider</name>
<enabled>true</enabled>
<param>
<name>HIVE</name>
<value>enableStickySession=true;enableLoadBalancing=true;enabled=true;maxFailoverAttempts=42;failoverSleep=50;maxRetryAttempts=1;disableLoadBalancingForUserAgents=Test
User Agent, Test User Agent2,Test User Agent3 ,Test User Agent4
;retrySleep=1000</value>
</param>
</provider>
```
Default value of
`disableLoadBalancingForUserAgents=ClouderaODBCDriverforApacheHive`
## How was this patch tested?
This patch was tested on a local cluster
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]