Applying Load Balancing
The hardware load balancing solution must be configured to enable sticky sessions, which ensures that all requests from a user’s browser session are delivered to the same web server session. In the example previous diagram, if the initial request from the browser was directed to Oracle WebLogic Server F, then all subsequent requests from that browser session must be directed to the same instance of Oracle WebLogic.
Keep multiple web server sessions on a single machine to keep the heap size of the Java Virtual Machine manageable and to allow the Java garbage collection to work optimally.
Hosts File Configuration
The hosts file on the portal web server machines in the previous diagram—which we'll call portalws1 and portalws2—must have an entry that directs DNS requests for the portal content provider server name (portal.corp.com) to the portal web server (123.456.345.11 on portalws1). This allows the portal to request content hosted on the same server directly without going back through the load balancer.
This is an example hosts file on portalws1.corp.com:
123.456.345.11 portal.corp.com
123.456.345.11 portalws1.corp.com