[jboss-dev-forums] [Clustering Development] - How to write your own load balancing rule in mod_cluster?
Brian Stansberry
do-not-reply at jboss.com
Wed Mar 24 13:39:34 EDT 2010
Brian Stansberry [http://community.jboss.org/people/bstansberry%40jboss.com] replied to the discussion
"How to write your own load balancing rule in mod_cluster?"
To view the discussion, visit: http://community.jboss.org/message/533797#533797
--------------------------------------------------------------
I don't think of it as being round-robin. The ModClusterService on each appserver side provides the httpd side a metric indicating how much load it's under. When the httpd side detects a request for a new session it picks the server to route to based on the relative load. There may be some round-robinish bit that goes in case of a tie, but that's not the critical factor. So I'm not sure what you're looking to change.
There are a lot of options for configuring how the load metric is calculated; see the docs.
Any change to how the httpd side picks a server based on the relative load metrics will involve changes to the C code for the Apache httpd modules. If you still think there's a use case for customizing that, suggest you post on the mod_cluster forum at http://community.jboss.org/en/mod_cluster http://community.jboss.org/en/mod_cluster
where Jean-Frederic Clere, the man most familiar with the C side of things, is more likely to see your question.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533797#533797]
Start a new discussion in Clustering Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2103]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100324/3c040d7d/attachment.html
More information about the jboss-dev-forums
mailing list