]
Paul Ferraro updated MODCLUSTER-550:
------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Failover targets should be chosen deterministically
---------------------------------------------------
Key: MODCLUSTER-550
URL:
https://issues.jboss.org/browse/MODCLUSTER-550
Project: mod_cluster
Issue Type: Bug
Components: Native (httpd modules)
Affects Versions: 1.2.13.Final, 1.3.5.Final
Reporter: Paul Ferraro
Assignee: Paul Ferraro
Fix For: 2.0.0.Alpha1, 1.2.14.Final, 1.3.6.Final
Under the following conditions:
1. A request arrives for a session with an unknown route
2. A request arrives for a session with a known route in an error state, or if the
intended worker is unresponsive and needs to failover
... the failover target must be chosen in a deterministic way. This is meant to mitigate
the situation where concurrent requests failover to different nodes and cause cluster-wide
contention for the session. Given a consistent ordering of workers (e.g.
lexographically), the failover target should be chosen by something like: hash code of
session id % active worker count.