...
By analysing the above output, you will see that the session 0 is and session 1 are always directed to MyServer1 and whereas session 1 2 is always directed to MyServer3. You will notice that none of the requests are directed to MyServer2 and MyServer4. This is because MyServer2 and MyServer4 are kept as backup servers by the failover endpoints.
...
Code Block |
---|
...
[java] Request: 529 Session number: 2 Response from server: MyServer3
[java] Request: 530 Session number: 1 Response from server: MyServer1
[java] Request: 531 Session number: 0 Response from server: MyServer1
[java] Request: 532 Session number: 1 Response from server: MyServer1
[java] Request: 533 Session number: 1 Response from server: MyServer1
[java] Request: 534 Session number: 1 Response from server: MyServer1
[java] Request: 535 Session number: 0 Response from server: MyServer2
[java] Request: 536 Session number: 0 Response from server: MyServer2
[java] Request: 537 Session number: 0 Response from server: MyServer2
[java] Request: 538 Session number: 2 Response from server: MyServer3
[java] Request: 539 Session number: 0 Response from server: MyServer2
... |
By analysing the above output, you will see that all requests for session 0 are directed to MyServer2 after the request 534. Therefore, you will understand that MyServer1 was stopped after request 534.
Excerpt | ||
---|---|---|
| ||
Sample on Session affinity load balancing between fail over endpoints |
...