Using JBoss 3.2.5/mod_jk1.2.8 with sticky sessions. The basic mod_jk2 round robin load balancing and jvmRoute is working fine.
Is there a way to further tune the load balancing by giving "hints" from application side? One thing I can think of is a particular HTTP response status generated by the tomcat node to tell mod_jk to try another worker(for example if a new session is due to be created and the application recognizes it is at its limits).
Is it sufficient to just generate 503 responses, would this cause mod_jk to "failover"? Or is there a way to use another, application specific, status code?
No, this is not possible. There is on going work for a new AJP 1.4 protocol that will allow for better interaction between the two tiers.