fandrei / AppMetrics

Apache License 2.0
8 stars 2 forks source link

Problem with metrics.labs.cityindex.com load balancer #33

Closed fandrei closed 12 years ago

fandrei commented 12 years ago

Load balancer for split testing works ok now, it redirects all requests to either current.metrics.labs.cityindex.com or next.metrics.labs.cityindex.com However, redirected requests lose original client IP information and show server's IP for all requests instead.

fandrei commented 12 years ago

It seems this happens when redirection goes from one website to another (i.e. from current.metrics.labs.cityindex.com to the real logger web site). I guess because technically it really makes requests from one site from another. It seems there is no way to avoid this problem, if we use site redirection for load balancing.

PS probably we should just install sites to current/next locations, rather then use redirection

fandrei commented 12 years ago

UPD the same problem with load balancer itself; when I install logger directly to next.metrics.labs.cityindex.com then IP logging works ok. But when I use metrics.labs.cityindex.com address, IP is replaced with server's IP

mrdavidlaing commented 12 years ago

Have decided not to fix; but rather to remove the use of a load balancer in the architecture.