The Upstream server is wowza. There are two upstreams
upstream wowza {
hash $arg_streamKey consistent;
server x.x.x.x:8087;
server x.x.x.y:8087;
}
upstream wowza_thumbnail {
hash $arg_streamKey consistent;
server x.x.x.x:8086;
server x.x.x.y:8086;
}
The first upstreams points to API and second points to Thumbnail URI.
I changed the hashKey to the query param thinking the hash will be based on the query param and it will resolve to the same server for both the upstreams but that not the case.
On some occasions, the second upstream resolve to a different server and I think that is due to the change in port.
Is there a way to make consistent hashing consistent for both the upstreams?
Any help would be appreciated.