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

Configure timeouts & some improvements #10

Merged
merged 33 commits into from
Mar 3, 2021
Merged

Configure timeouts & some improvements #10

merged 33 commits into from
Mar 3, 2021

Conversation

zacblazic
Copy link
Member

The main goal of this change is to configure timeouts that work well with the default idle timeout of an upstream load balancer (i.e. 60 seconds).

Additionally brings in some other changes, all of which were inspired by ingress-nginx.

@zacblazic zacblazic requested a review from a team as a code owner March 1, 2021 14:08
Copy link
Member Author

@zacblazic zacblazic left a comment

Choose a reason for hiding this comment

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

Some comments...

config/http.conf Outdated Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
config/http.conf Show resolved Hide resolved
config/http.conf Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
@itskingori
Copy link
Member

@zacblazic I think you're missing a CHANGELOG entry.

itskingori
itskingori previously approved these changes Mar 2, 2021
Copy link
Member

@itskingori itskingori left a comment

Choose a reason for hiding this comment

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

Great additions! 🎖️ + 🏆

Because this only applies when serving static content, which we'll
not be doing directly from the proxy, only from upstream servers.
Resets timed out connections which avoids keeping an already closed
socket with filled buffers in a closing (FIN_WAIT1) state for a long
time.

* http://nginx.org/en/docs/http/ngx_http_core_module.html#reset_timedout_connection
Prefer to let it be the default, we don't really need to have this
set here.
Copy link
Member

@itskingori itskingori left a comment

Choose a reason for hiding this comment

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

Some comments ... 💬

config/http.conf Outdated Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
config/http.conf Outdated Show resolved Hide resolved
Co-authored-by: King'ori Maina <j@kingori.co>
zacblazic and others added 2 commits March 3, 2021 12:19
Co-authored-by: King'ori Maina <j@kingori.co>
itskingori
itskingori previously approved these changes Mar 3, 2021
Copy link
Member

@itskingori itskingori left a comment

Choose a reason for hiding this comment

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

Let's give this a spin. 🌪️

config/log.conf Outdated
@@ -8,10 +8,12 @@ log_format main_json escape=json
'"body_bytes_sent":"$body_bytes_sent",'
'"host":"$host",'
'"http_connection":"$http_connection",'
'"http_upgrade":"$http_upgrade",'
Copy link
Member

@itskingori itskingori Mar 3, 2021

Choose a reason for hiding this comment

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

Oops. Not alphabetical. 😅 Nit-pick.

itskingori
itskingori previously approved these changes Mar 3, 2021
Overwrites the command in the base image which specifies "daemon off".
Ensure we're not passing "daemon off" twice, which resultes in an error.
@zacblazic zacblazic merged commit ca36161 into master Mar 3, 2021
@zacblazic zacblazic deleted the update-configs branch March 3, 2021 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants