Skip to main content

Log nginx retry attempts \ count [Resolved]

We've configured retry using proxy_next_upstream error timeout non_idempotent; and it works great.

BUT we want to be able to count how many retries do we have per request (or in total if nothing else).

How can we configure it?


Question Credit: user4537
Question Reference
Asked July 11, 2018
Tags: nginx
Posted Under: Network
18 views
1 Answers

  1. You can use configure your logs to print $upstream_addr and count the times you have retry - i.e. multi ips in a request, as written in the documentation attached: If several servers were contacted during request processing, their addresses are separated by commas, e.g. “192.168.1.1:80, 192.168.1.2:80, unix:/tmp/sock”.

  2. You can use use nginx-amplify , however I have never tried this and it is not all free...


credit: GalGal
Answered July 11, 2018
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA