I have a few questions about the proxy_upstream_tries command in tengine:
What is the relationship between proxy_upstream_tries and nginx's proxy_next_upstream? Can it work together?
Under what circumstances will proxy_upstream_tries fail over? 502? 503? 504?
Are there any conflicts between the two instructions?
proxy_upstream_tries limits the number of retries, while proxy_next_upstream specifies the conditions for retries. Can work together.
"What situation" is determined by the proxy_next_upstream command
No
Reference documentation:
proxy_next_upstream
proxy_upstream_tries
proxy_upstream_tries implementation:
first commit: https://github.com/alibaba/tengine/pull/322