Affinity and session stickiness

There are three method to setup affinity and sticky session:

  1. set aliyun.proxy.BALANCE = source in your application service. When setting source method of balance, HAProxy will hash the client IP address and make sure that the same IP always goes to the same server.
  2. set aliyun.proxy.APPSESSION = <value> . use application session to determine which server a client should connect to. Possible value of <value> could be JSESSIONID len 52 timeout 3h
  3. set aliyun.proxy.COOKIE = <value> . use application cookie to determine which server a client should connect to. Possible value of <value> could be SRV insert indirect nocache

Check HAProxy:appsession and HAProxy:cookie for more information.

results matching ""

    No results matching ""