openresty / openresty/lua-resty-core

Can ngx.balancer add new function to set proxy_next_upstream_timeout and proxy_next_upstream?

Open
#355 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
853
Forks
286
Avg merge
35m
Merged PRs (30d)
1

Description

ngx.balancer can set retry count, but can't set proxy_next_upstream_timeout and proxy_next_upstream. I Kown this can set staticly in nginx.conf, But i want to set dynamically a bigger proxy_next_upstream_timeout value when request body size too large.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ngx.balancer API and compare its existing retry-count control with the proxy_next_upstream_timeout and proxy_next_upstream directives in nginx.conf. Determine how dynamic values would be exposed for requests with large bodies, then verify that both settings can be changed through ngx.balancer without breaking existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
api, backend, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.