Pivotal Knowledge Base

Follow

How does PWS route requests to your application?

Purpose

 As a user you'd want to understand how PWS will route requests to your application.

Instructions

The load-balancing algorithm is Round-robin at this point, so that requests from same client in same session may be routed to different app instances. 

PWS supports session affinity or sticky sessions for incoming HTTP requests to applications if a JSESSIONID cookie is used. If multiple instances of an application are running on PWS, all requests from a given client will be routed to the same application instance. This allows application containers and frameworks to store session data specific to each user session.

Impact / Risks

Regarding sticky session, if you're using a language / framework that uses a session cookie with a different name like PHPSESSID, you need to configure it to use JSESSIONID or sticky sessions will not work.

Comments

Powered by Zendesk