> Then I wish you all the luck :). Thanks! It seems a little daunting!
So, exploring other possibilities before I undertake it... Is there any way to just make a call and update the load factors on the fly? Or does the JMX additions provide any way to update things dynamically? Many thanks, David |---------+----------------------------> | | Mladen Turk | | | <[EMAIL PROTECTED]| | | > | | | | | | 02/09/2005 12:51 | | | 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 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? Inside Tomcat. Not sure where, but some sort of filter should help. Take a look at filter documentation if you don't wish to hack the Tomcat code itself. The filter will need to gather CPU usage and add some header to outgoing headers. > - how do we get access to the ajp demarshaling? > Inside mod_jk. jk_ajp_common.c -> ajp_unmarshal_response See how headers are parsed. Then you will need to pass that back to lb_worker. > Sorry for the ignorance! I haven't done any extending of tomcat before... > Then I wish you all the luck :). Regards, 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]