Let me reply with a link:
http://nginx.org/en/docs/http/ngx_http_split_clients_module.html
You can either use split_clients to change upstream or to trigger
logging with 'if' option of 'access_log'
On 19.09.2017 21:17, mblancett wrote:
I am looking for ways to target every Nth request into a v
What is your ultimate goal? You say that you want to replay 0.05% of traffic
into a test environment.
Are you wanting to capture real world data on a one off or ongoing basis?
You say that this particular proxy is very busy. How busy? Is it hosted on a
physical host or a virtual machine?
If
I am looking for ways to target every Nth request into a very busy proxy
within an nginx configuration. This particular proxy is extremely busy and
receives POSTs to a single URI, and taking an approach like sharding by IP
would not be the kind of traffic sample we’re after.
The long term goal her