Not all requests are the same. A request to serve a static resource will be very fast but a request to do a complicated task like generate a large report and may take a long time. If you have mixed duration workloads in the same application, this can cause traffic to become unbalanced over time.
JSESSIONID
, then sessions will not be sticky. Please be aware that disabling sticky sessions can cause sessions to be lost if you are not replicating session data across all of your application instances. Session data replication is typically done by using a service like Memcached, Redis, or Apache Geode to host your session data.`server.servlet.session.cookie.name = NEWSESSIONID`.You can also use Spring Session, which uses a different session cookie name by default and also supports storing session data in a service.
cf restart-app-instance
`. You may want to debug (capture logs, thread dumps, and application state) prior to restarting in order to try and understand why the application is in this state.
bosh restart
` or `bosh recreate
` on the Cell will resolve the issue, however Pivotal Support recommends refraining from taking this action until directed by Pivotal Support as it can often make performing a root cause analysis impossible.
cf logs
` for the imbalanced application. The `[RTR]
` log entries from the Gorouter will include the remote client's IP (it is the left most IP in the `x_forwarded_for
` group) and the application instance (labeled as `app_index
') that handled the request. If you notice a single client that is only sending requests to one application instance that would likely be the culprit.