Balancing by IP rather than by request?

Hello.

Looking a way to bind IPs to specific upstream.
Like load balancing to work for new IPs only.
Like known clients sent to upstream used at their first connection.

Any ideas?

Thanks.

Posted at Nginx Forum:

Looking a way to bind IPs to specific upstream.
Like load balancing to work for new IPs only.
Like known clients sent to upstream used at their first connection.

Any ideas?

You should check ip_hash directive:
http://wiki.nginx.org/NginxHttpUpstreamModule#ip_hash

Best regards,
Piotr S. < [email protected] >

awesome!
thanks

Posted at Nginx Forum: