multipath proxy chaining (failover)

multipath proxy chaining (failover)

am 02.02.2010 10:26:19 von Romain De Rasse

Hi,

I use the ProxyRemote Directive from the mod_proxy module.

I try to do multipath proxy chaining.

I mean :
ProxyRemote * http://192.168.1.1:999
ProxyRemote * http://192.168.1.254:999

The desired effect is that Apache firstly tries the proxy "192.168.1.1" and forward the request to this proxy if he is available.
If this proxy is down, then I'd like Apache to try the second proxy (192.168.1.254), so the path to the web server would be different (failover in case of a dead proxy).

At this time I didn't succeed ;if the first proxy is down then the connection fails.

Does someone have already succeeded in doing such a thing ?

regards,

Romain


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

RE: multipath proxy chaining (failover)

am 02.02.2010 10:56:37 von Emmanuel Bailleul

PiAtLS0tLU1lc3NhZ2UgZCdvcmlnaW5lLS0tLS0NCj4gRGXCoDogUm9tYWlu IERlIFJhc3NlIFtt
YWlsdG86cm9tYWluLmRlcmFzc2VAYXRvc29yaWdpbi5jb21dDQo+IEVudm95 w6nCoDogbWFyZGkg
MiBmw6l2cmllciAyMDEwIDEwOjI2DQo+IMOAwqA6IHVzZXJzQGh0dHBkLmFw YWNoZS5vcmcNCj4g
T2JqZXTCoDogW3VzZXJzQGh0dHBkXSBtdWx0aXBhdGggcHJveHkgY2hhaW5p bmcgKGZhaWxvdmVy
KQ0KPiANCj4gSGksDQo+IA0KPiBJIHVzZSB0aGUgUHJveHlSZW1vdGUgRGly ZWN0aXZlIGZyb20g
dGhlIG1vZF9wcm94eSBtb2R1bGUuDQo+IA0KPiBJIHRyeSB0byBkbyBtdWx0 aXBhdGggcHJveHkg
Y2hhaW5pbmcuDQo+IA0KPiBJIG1lYW4gOg0KPiBQcm94eVJlbW90ZSAqIGh0 dHA6Ly8xOTIuMTY4
LjEuMTo5OTkNCj4gUHJveHlSZW1vdGU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l0IGZvciBvdGhlciBwdXJwb3NlcyAtaWUgcmV2ZXJzZSBwcm94eSksIHlv dSBjb3VsZCBtYXli
ZSB1c2UgYSAiYmFsYW5jZXIgc2V0dXAiIHdpdGggdHdvIG1lbWJlcnMsIHRo ZSBsYXR0ZXIgYmVp
bmcgY29uZmlndXJlZCBhcyAnaG90LXN0YW5kYnknICg/KS4gU2VlIGh0dHA6 Ly9odHRwZC5hcGFj
aGUub3JnL2RvY3MvMi4yL21vZC9tb2RfcHJveHkuaHRtbCNwcm94eXBhc3Mg aW4gdGhlIHNhbWUg
ZG9jIGZvciBhbiBzYW1wbGUgY29uZmlnLg0KSWYgeW91ciBnb2FsIGlzIG9u bHkgdG8gcGVyZm9y
bSBmYWlsb3ZlciBvZiBwcm94eSBzZXJ2ZXJzLCB5b3UgbWF5IGFsc28gdXNl IG90aGVyICJmYWls
b3ZlciIgdGVjaG5pcXVlcyBhbmQvb3Igc29mdHdhcmVzLCBmb3IgZXguIDog TFZTLCBoYXByb3h5
LCAuLi4gDQoNClJlZ2FyZHMuDQoNCkVtbWFudWVsDQo=

Re: RE: multipath proxy chaining (failover)

am 02.02.2010 17:08:43 von Romain De Rasse

Emmanuel,

thank you for your answer.

I read some docs, made some tests and I don't think I will succeed using Pr=
oxyPass and the balancer.

To be more specific, here is the original architecture, which is OK :
Web clients have a proxy configured in their browser : IP1 port 999.
The first Apache proxy (with IP address IP1) listens on port 999 and has a =
ProxyRemote configuration ("ProxyRemote * http://IP2:999"),
The second Apache proxy in the chain (with IP address IP2) is the las proxy=
in the chain, so he performs the DNS request on behalf of the client and r=
eaches the web server.

I don't use any Reverse Proxy fonctionnality, and I try to provide failover=
for the second Apache proxy in the chain with IP address IP2.

I tried this configuration for the first proxy in the chain (IP1) :
"ProxyRemote * http://FQDN:999"
resolving "FQDN" with 2 IP addresses, always in the same order (IP2 then th=
e IP of the new proxy used for failover).
Unfortunately this is too slow if the first address become unreachable.

It seems that Apache is not designed to do what I try to do. I keep searchi=
ng.

Regards,

Romain

==================== =====3D=
===============3D
Date du message : févr. 02 2010, 10:57 AM
De : "Emmanuel Bailleul"
A : "users@httpd.apache.org"
Copie :=20
Sujet : RE: [users@httpd] multipath proxy chaining (failover)
=20
> -----Message d'origine-----
> De : Romain De Rasse [mailto:romain.derasse@atosorigin.com]
> Envoyé : mardi 2 février 2010 10:26
> À : users@httpd.apache.org
> Objet : [users@httpd] multipath proxy chaining (failover)
>=20
> Hi,
>=20
> I use the ProxyRemote Directive from the mod_proxy module.
>=20
> I try to do multipath proxy chaining.
>=20
> I mean :
> ProxyRemote * http://192.168.1.1:999
> ProxyRemote * http://192.168.1.254:999
>=20
> The desired effect is that Apache firstly tries the proxy "192.168.1.1"
> and forward the request to this proxy if he is available.
> If this proxy is down, then I'd like Apache to try the second proxy
> (192.168.1.254), so the path to the web server would be different
> (failover in case of a dead proxy).
>=20
> At this time I didn't succeed ;if the first proxy is down then the
> connection fails.
>=20
> Does someone have already succeeded in doing such a thing ?
>=20
> regards,
>=20
> Romain
>=20
>=20
=20
Hi,
=20
The 'ProxyRemote' directive does not seem to handle failover on its own, a=
s per http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrem ote.=20
Depending on the config of your Apache server (in particular if you use it=
for other purposes -ie reverse proxy), you could maybe use a "balancer set=
up" with two members, the latter being configured as 'hot-standby' (?). See=
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypas s in the same =
doc for an sample config.
If your goal is only to perform failover of proxy servers, you may also us=
e other "failover" techniques and/or softwares, for ex. : LVS, haproxy, ...=
=20
=20
Regards.
=20
Emmanuel
=20


Romain De Rasse=20
Atos Origin Infogérance=20
Workplace et Communications Services
Tour Horizon=20
64 rue du 8 Mai 1945=20
92025 Nanterre Cedex


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache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BmYWls b3ZlciB1bnVzYWJs
ZSAuLi4NCkFnYWluLCBpZiB5b3UganVzdCBoYXZlIHRvIHByb3ZpZGUgaHR0 cCBwcm94eSBmYWls
b3ZlciBmb3IgMiBib3hlcywgb25lIG9mIHRoZSBzaW1wbGVzdCBzZXR1cCB3 b3VsZCBiZSB0byB1
c2UgTFZTIChodHRwOi8vd3d3LmxpbnV4dmlydHVhbHNlcnZlci5vcmcvKSwg aW4gTFZTLURSIG1v
ZGUgZm9yIGV4YW1wbGUsIG9yIHNvbWUgb3RoZXIgc29mdCBsb2FkIGJhbGFu Y2VyIGxpa2UgaGFw
cm94eSAoaHR0cDovL2hhcHJveHkuMXd0LmV1LyksIHdoaWNoIEkgd291bGQg cmVjb21tZW5kIGZv
ciBzZXZlcmFsIHJlYXNvbnMsIGluY2x1ZGluZyBpdHMgZWFzZSBvZiB1c2Uu DQoNCkVtbWFudWVs
DQo=

Re: RE: RE: multipath proxy chaining (failover)

am 03.02.2010 10:08:29 von Romain De Rasse

Hi,

about DNS, the problem is more about timeouts than about TTLs or caches bec=
ause I don't use round robin but fixed rrsets. But still DNS is not the rig=
ht solution.

I'll definitely look more deeply at LVS and haproxy ; I firstly focused on =
Apache and DNS in order not to change the existing architecture too much (c=
ost effectiveness :-)

Thanks for your help.

Regards,

Romain


==================== =====3D=
===============3D
Date du message : févr. 02 2010, 07:13 PM
De : "Emmanuel Bailleul"
A : "users@httpd.apache.org"
Copie :=20
Sujet : RE: RE: [users@httpd] multipath proxy chaining (failover)
=20
> -----Message d'origine-----
> De : Romain De Rasse [mailto:romain.derasse@atosorigin.com]
> Envoyé : mardi 2 février 2010 17:09
> À : users@httpd.apache.org
> Cc : Emmanuel Bailleul
> Objet : Re: RE: [users@httpd] multipath proxy chaining (failover)
>=20
> Emmanuel,
>=20
> thank you for your answer.
>=20
> I read some docs, made some tests and I don't think I will succeed using
> ProxyPass and the balancer.
>=20
> To be more specific, here is the original architecture, which is OK :
> Web clients have a proxy configured in their browser : IP1 port 999.
> The first Apache proxy (with IP address IP1) listens on port 999 and has=
a
> ProxyRemote configuration ("ProxyRemote * http://IP2:999"),
> The second Apache proxy in the chain (with IP address IP2) is the las
> proxy in the chain, so he performs the DNS request on behalf of the clie=
nt
> and reaches the web server.
>=20
> I don't use any Reverse Proxy fonctionnality, and I try to provide
> failover for the second Apache proxy in the chain with IP address IP2.
>=20
> I tried this configuration for the first proxy in the chain (IP1) :
> "ProxyRemote * http://FQDN:999"
> resolving "FQDN" with 2 IP addresses, always in the same order (IP2 then
> the IP of the new proxy used for failover).
> Unfortunately this is too slow if the first address become unreachable.
>=20
> It seems that Apache is not designed to do what I try to do. I keep
> searching.
>=20
> Regards,
>=20
> Romain
>=20
> ==================== =====
================
> Date du message : févr. 02 2010, 10:57 AM
> De : "Emmanuel Bailleul"
> A : "users@httpd.apache.org"
> Copie :
> Sujet : RE: [users@httpd] multipath proxy chaining (failover)
>=20
> > -----Message d'origine-----
> > De : Romain De Rasse [mailto:romain.derasse@atosorigin.com]
> > Envoyé : mardi 2 février 2010 10:26
> > À : users@httpd.apache.org
> > Objet : [users@httpd] multipath proxy chaining (failover)
> >
> > Hi,
> >
> > I use the ProxyRemote Directive from the mod_proxy module.
> >
> > I try to do multipath proxy chaining.
> >
> > I mean :
> > ProxyRemote * http://192.168.1.1:999
> > ProxyRemote * http://192.168.1.254:999
> >
> > The desired effect is that Apache firstly tries the proxy "192.168.1.=
1"
> > and forward the request to this proxy if he is available.
> > If this proxy is down, then I'd like Apache to try the second proxy
> > (192.168.1.254), so the path to the web server would be different
> > (failover in case of a dead proxy).
> >
> > At this time I didn't succeed ;if the first proxy is down then the
> > connection fails.
> >
> > Does someone have already succeeded in doing such a thing ?
> >
> > regards,
> >
> > Romain
> >
> >
>=20
> Hi,
>=20
> The 'ProxyRemote' directive does not seem to handle failover on its own=
,
> as per http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyrem ote.
> Depending on the config of your Apache server (in particular if you use
> it for other purposes -ie reverse proxy), you could maybe use a "balance=
r
> setup" with two members, the latter being configured as 'hot-standby' (?=
).
> See http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypas s in the
> same doc for an sample config.
> If your goal is only to perform failover of proxy servers, you may also
> use other "failover" techniques and/or softwares, for ex. : LVS, haproxy=
,
> ...
>=20
> Regards.
>=20
> Emmanuel
>=20
>=20
>=20
> Romain De Rasse
> Atos Origin Infogérance
> Workplace et Communications Services
> Tour Horizon
> 64 rue du 8 Mai 1945
> 92025 Nanterre Cedex
=20
=20
IMHO, using dns round robin is not the right way to go in your situation, =
due to TTLs of records and various dns caches (including in browsers) that =
could make the failover unusable ...
Again, if you just have to provide http proxy failover for 2 boxes, one of=
the simplest setup would be to use LVS (http://www.linuxvirtualserver.org/=
), in LVS-DR mode for example, or some other soft load balancer like haprox=
y (http://haproxy.1wt.eu/), which I would recommend for several reasons, in=
cluding its ease of use.
=20
Emmanuel
=20


Romain De Rasse=20
Atos Origin Infogérance=20
Workplace et Communications Services
Tour Horizon=20
64 rue du 8 Mai 1945=20
92025 Nanterre Cedex


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org