https://github.com/rekgrpth/ngx_http_upstream_queue_module
Nginx upstream queue
https://github.com/rekgrpth/ngx_http_upstream_queue_module
nginx queue upstream
Last synced: about 1 year ago
JSON representation
Nginx upstream queue
- Host: GitHub
- URL: https://github.com/rekgrpth/ngx_http_upstream_queue_module
- Owner: RekGRpth
- License: mit
- Created: 2022-06-29T04:10:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T16:58:08.000Z (about 2 years ago)
- Last Synced: 2024-04-08T20:40:49.709Z (about 2 years ago)
- Topics: nginx, queue, upstream
- Language: C
- Homepage:
- Size: 33.2 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nginx upstream queue
# Directive
queue
-------------
* Syntax: **queue** *number* [ timeout=*time* ]
* Default: --
* Context: upstream
If an upstream server cannot be selected immediately while processing a request, the request will be placed into the queue. The directive specifies the maximum *number* of requests that can be in the queue at the same time. If the queue is filled up, or the server to pass the request to cannot be selected within the time period specified in the timeout parameter, the 502 (Bad Gateway) error will be returned to the client.
The default value of the timeout parameter is 60 seconds.
When using load balancer methods other than the default round-robin method, it is necessary to activate them before the queue directive.