I have few questions on the usage of http2-push-nginx-module module in proxy mode.
In our use case , we have few cache nodes behind NGINX Load Balancer (NGINX LB) which uses Ketama hashing to load balance requests.
Client ----> NGINX LB ----> Cache 1 , Cache 2 , Cache N
HTTP2 will be terminated by the NGINX LB and HTTP requests are sent to Cache nodes. It is possible that NGINX LB and Cache nodes are separate servers.
HTTP2 request got terminated in NGINX LB (GET /tmp.m3u8) and HTTP request is proxied to Cache 2 (separate node). Cache 2 decides that few .ts segments can be pushed and will inform NGINX LB using proprietary headers.
As the segments are in different node (cache 2), I was thinking of writing a module in NGINX to get multiple segments from cache 2 and use http2-push-nginx-module to H2 push the segments.
This will result in multiple sub requests to be mapped to the client request.
Can I map a single client request to multiple upstream sub requests in NGINX ?
Can I use the http2-push-nginx-module module to push data received from the upstream sub requests to Client ?
Please provide your comments.