Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update config.yaml.example about upstream's keepalive. #11585

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conf/config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,12 @@ nginx_config: # Config for render the template to generate n
# the requested server name.

upstream:
keepalive: 320 # Set the maximum time of keep-alive connections to the upstream servers.
keepalive: 320 # the maximum number of idle keepalive connections to the upstream service of each worker process.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
keepalive: 320 # the maximum number of idle keepalive connections to the upstream service of each worker process.
keepalive: 320 # Set the maximum number of idle keepalive connections to the upstream service of each worker process.

# When the value is exceeded, the least recently used connection is closed.
keepalive_requests: 1000 # Set the maximum number of requests that can be served through one
# keep-alive connection.
# After the maximum number of requests is made, the connection is closed.
keepalive_timeout: 60s # Set the maximum time for which TCP connection keeps alive.
keepalive_timeout: 60s # Set a timeout during which an idle keepalive connection to an upstream server will stay open.
charset: utf-8 # Add the charset to the "Content-Type" response header field.
# See http://nginx.org/en/docs/http/ngx_http_charset_module.html#charset
variables_hash_max_size: 2048 # Set the maximum size of the variables hash table.
Expand Down
Loading