openresty / openresty/lua-resty-core
Can ngx.balancer add new function to set proxy_next_upstream_timeout and proxy_next_upstream?
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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