Hi Mladen, That sounds feasible...but I have no idea how to do that!!
Would you mind pointing me in the right direction? - how do we create custom headers? Where? - how do we get access to the ajp demarshaling? Sorry for the ignorance! I haven't done any extending of tomcat before... thanks very much, David |---------+----------------------------> | | Mladen Turk | | | <[EMAIL PROTECTED]| | | > | | | | | | 02/09/2005 12:33 | | | PM | | | Please respond to| | | "Tomcat | | | Developers List" | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------------| | | | To: Tomcat Developers List <tomcat-dev@jakarta.apache.org> | | cc: | | Subject: Re: Custom load balancing algorithm and mod_jk??? | >--------------------------------------------------------------------------------------------------------------------| [EMAIL PROTECTED] wrote: > Hi, > > Thanks very much for the reply. > > Ok, how is it possible? What would we need to extend / where would we plug > it in? > > Yes, we'd like to balance on CPU usage of tomcat servers that Apache is > load balancing. Or, even, by having each tomcat app communicate with the > balancer to tell it how busy it is. > > Our problem is that we receive a variety of requests, some of which are > very resource intensive and tie up that tomcat for a good while. Hence a > round-robin or balance factors algorithm are not very effective. > > Do you have any ideas of a possible solution? > Use custom headers, and update lb_factors according to that value. During ajp demarshaling remove those headers so that clients are unaware of that. For example use 100/CpuUsage as lb_factor, so if CPU load is high it's lb_factor will be smaller, thus lowering the load to that node. Mladen. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]