load balancing - IBM MobileFirst Session Affinity -
environment details:
ibm mfp 7.1.0.00.20160401-2103
ibm liberty 8.5.5.5
setup:
1. mfp app deployed in 2 liberty servers.
2. mobile devices can access app via webserver , requests routed on round-robin
fashion properly.
device:
1. android
2. ios
problem:
1. user has logged app , accessing adapter.
2. these adapters protected security test.
3. still request routed liberty server's round-robin webserver.
4. ideally, request should forward server authenticated.
configuration:
1. in authenticationconfig.xml - securitytest & realm defined.
2. login initiates via wl.client.login({realmname}); realmname - mapped in security test
3. adapters protected security test defined in authconfig.xml
4. liberty server - manual & unique cloneid provided both server in httpsession of server.xml
5. in webserver, plugin-cfg.xml configured session affinity along cloneid of each server.
<uri affinitycookie="jsessionid" affinityurlidentifier="jsessionid" name="/wladmin/*"></uri>
did miss something? why requests routed webserver both liberty servers after authenticating.
note:
1. plugin-cfg.xml generated via jconsole.
2. liberty farm configure , active.
in mfp 7.1 default session independent. still support session dependency need configure. please check https://www.ibm.com/support/knowledgecenter/sshs8r_7.1.0/com.ibm.worklight.dev.doc/devref/c_overview_session_indep.html more details.
note: if system operating in session-independent mode , choose scale or scale number of servers, user experience unaffected. advantage.
Comments
Post a Comment