Thank you for your response. I am new to nginx, can you elaborate or send a link to using Lua with nginx sticky module(for windows).
I need back up option so that in case 1 server becomes unavailable, all subsequest new requests go to available servers. My upstream application already handles unavailable sessions.
Also, is it possible to use the generic hashing to send all requests to same server for stickiness, using my upstream address?
upstream myLoadBalancer {
hash $upstream_addr;
server remote1:port1;
server remote1:port2;
server remote2.:port1;
}
Is something like above possible?
I need back up option so that in case 1 server becomes unavailable, all subsequest new requests go to available servers. My upstream application already handles unavailable sessions.
Also, is it possible to use the generic hashing to send all requests to same server for stickiness, using my upstream address?
upstream myLoadBalancer {
hash $upstream_addr;
server remote1:port1;
server remote1:port2;
server remote2.:port1;
}
Is something like above possible?