WG: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
Mladen Turk wrote: No. It works with any protocol. Proxy balancer://mycluster BalancerMember ajp://hotstandby status=disabled BalancerMember ajp://node1 redirect=hotstandby BalancerMember ajp://node2 redirect=hotstandby ... BalancerMember ajp://nodeN redirect=hotstandby /Proxy The only problem is that it's not documented ;) That was exactly what I hoped! :) But: Whatever I try with status=disabled in the BalancerMember line (- using , '' , DISABLED, 0,..), it says: *Starting httpd2 (prefork) Syntax error .. *BalancerMember Unknow status parameter option (I have Apache 2.2.0)..any idea? Thanks so far! Regards, Andreas Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder E-Mails aus. --- This message contains confidential information and is intended only for the named individual. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. No reliance may be placed on this message without written confirmation of its contents from an authorized representative. GZS accepts no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WG: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
[EMAIL PROTECTED] wrote: Mladen Turk wrote: No. It works with any protocol. Proxy balancer://mycluster BalancerMember ajp://hotstandby status=disabled BalancerMember ajp://node1 redirect=hotstandby BalancerMember ajp://node2 redirect=hotstandby ... BalancerMember ajp://nodeN redirect=hotstandby /Proxy The only problem is that it's not documented ;) That was exactly what I hoped! :) But: Whatever I try with status=disabled in the BalancerMember line (- using , '' , DISABLED, 0,..), it says: *Starting httpd2 (prefork) Syntax error .. *BalancerMember Unknow status parameter option Right, sorry :) status=d or status=D (a single letter). there is additional stopped option (s), so you can concat those, (eg. status=SD means stopped and disabled). If you edit httpd.conf and restart apache then you add + or - prefixes. For example if status was disabled you can edit httpd.conf, and set 'status=-D'. On graceful restart it will remove disabled flag. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED]: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
Mladen Turk wrote: Right, sorry :) status=d or status=D (a single letter). there is additional stopped option (s), so you can concat those, (eg. status=SD means stopped and disabled). If you edit httpd.conf and restart apache then you add + or - prefixes. For example if status was disabled you can edit httpd.conf, and set 'status=-D'. On graceful restart it will remove disabled flag. Mladen. Thank you very much, that was it, now it works! HereĀ“s the valid config-example for the others: Proxy balancer://mycluster BalancerMember ajp://hotstandby status=d BalancerMember ajp://node1 redirect=hotstandby BalancerMember ajp://node2 redirect=hotstandby ... BalancerMember ajp://nodeN redirect=hotstandby /Proxy Best regards, Andreas Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder E-Mails aus. --- This message contains confidential information and is intended only for the named individual. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. No reliance may be placed on this message without written confirmation of its contents from an authorized representative. GZS accepts no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_proxy_balancer: how to define failover (only)/hot standby behavior?
Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? In mod_jk that was possible using local_worker_only, but with mod_proxy_balancer I have not yet understood how to define such behavior (defining loadfactor=0 would be a way, probably working right away, but is definded to be a number between 1 and 100). As far as I understand at the moment, it is only possible to define an almost-only-hot-standby-behavior, where the failover-backend gets 1/100 of all requests.. Thanks in advance and best regards, Andreas P.S.: I posted the question to the apache-httpd-users mailing list 3 days ago, but it seems to fit better to here..I would post the answer there, if I got one here. Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder E-Mails aus. --- This message contains confidential information and is intended only for the named individual. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. No reliance may be placed on this message without written confirmation of its contents from an authorized representative. GZS accepts no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
Actually, dev@httpd.apache.org is best, since that is where the development of this module is being done. I have changed the email headers accordingly. A sort of warm standby is something that I had planned to work into the balancer code post 2.2.1. On Jan 24, 2006, at 11:14 AM, [EMAIL PROTECTED] wrote: Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? In mod_jk that was possible using local_worker_only, but with mod_proxy_balancer I have not yet understood how to define such behavior (defining loadfactor=0 would be a way, probably working right away, but is definded to be a number between 1 and 100). As far as I understand at the moment, it is only possible to define an almost-only-hot-standby-behavior, where the failover-backend gets 1/100 of all requests.. Thanks in advance and best regards, Andreas P.S.: I posted the question to the apache-httpd-users mailing list 3 days ago, but it seems to fit better to here..I would post the answer there, if I got one here. Dieses Dokument ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Falls Sie diese E-Mail versehentlich bekommen haben, informieren Sie uns bitte unverzueglich und loeschen Sie diese Nachricht von Ihrem Computer. Jegliche Art von Reproduktion, Verbreitung, Vervielfaeltigung, Modifikation, Verteilung und/oder Publikation dieser E-Mail Nachricht ist untersagt. Die in dieser E-Mail enthaltenen Angaben und Erklaerungen sind unverbindlich. Haftungsansprueche des Empfaengers jeglicher Art werden ausgeschlossen. Die GZS schliesst ausser fuer den Fall von Vorsatz oder grober Fahrlaessigkeit die Haftung fuer jeglichen Verlust oder Schaeden durch virenbefallene Software oder E-Mails aus. -- - This message contains confidential information and is intended only for the named individual. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message in error and delete this e-message from your system. No reliance may be placed on this message without written confirmation of its contents from an authorized representative. GZS accepts no liability for loss or damage caused by software viruses except in case of gross negligence or willful behaviour. - 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]
Re: mod_proxy_balancer: how to define failover (only)/hot standby behavior?
[EMAIL PROTECTED] wrote: Hello, using Apache 2.2.0/mod_proxy_balancer, is it possible to configure a proxy balancer with two balancer members, where one of the two only gets the requests, if the other one fails? Sure, use status=disabled and redirect=xxx. So... BalancerMember ajp://xxx status=disabled redirect=yyy (Same as for mod_jk). Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]