search

Home  >  Q&A  >  body text

nginx - tengine proxy_upstream_tries

I have a few questions about the proxy_upstream_tries command in tengine:

  1. What is the relationship between proxy_upstream_tries and nginx's proxy_next_upstream? Can it work together?

  2. Under what circumstances will proxy_upstream_tries fail over? 502? 503? 504?

  3. Are there any conflicts between the two instructions?

伊谢尔伦伊谢尔伦2797 days ago608

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-16 17:20:53

    1. proxy_upstream_tries limits the number of retries, while proxy_next_upstream specifies the conditions for retries. Can work together.

    2. "What situation" is determined by the proxy_next_upstream command

    3. No

    Reference documentation:

    • proxy_next_upstream

    • proxy_upstream_tries

    proxy_upstream_tries implementation:

    • first commit: https://github.com/alibaba/tengine/pull/322

    reply
    0
  • Cancelreply