Skip to content

access_log: check for reopen flag on flush interval#8261

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
zuercher:szuercher_reopen_logs_on_flush_timer
Sep 19, 2019
Merged

access_log: check for reopen flag on flush interval#8261
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
zuercher:szuercher_reopen_logs_on_flush_timer

Conversation

@zuercher
Copy link
Copy Markdown
Member

Checks for the reopen flag when the log flush timer fires
and issues the reopen even if no data is pending. This
prevents Envoy from holding a file descriptor on rotated
but seldom written log files until the next write.

Risk Level: low
Testing: add unit test
Docs Changes: n/a
Release Notes: n/a
Fixes: #8249

Signed-off-by: Stephan Zuercher zuercher@gmail.com

Checks for the reopen flag when the log flush timer fires
and issues the reopen even if no data is pending. This
prevents Envoy from holding a file descriptor on rotated
but seldom written log files until the next write.

Risk Level: low
Testing: add unit test
Docs Changes: n/a
Release Notes: n/a
Fixes: envoyproxy#8249

Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
@zuercher
Copy link
Copy Markdown
Member Author

@dio can you have a look?

Copy link
Copy Markdown
Member

@dio dio left a comment

Choose a reason for hiding this comment

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

Thanks @zuercher!

@mattklein123 mattklein123 merged commit 43c91d8 into envoyproxy:master Sep 19, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Sep 24, 2019
Checks for the reopen flag when the log flush timer fires
and issues the reopen even if no data is pending. This
prevents Envoy from holding a file descriptor on rotated
but seldom written log files until the next write.

Risk Level: low
Testing: add unit test
Docs Changes: n/a
Release Notes: n/a
Fixes: envoyproxy#8249

Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Checks for the reopen flag when the log flush timer fires
and issues the reopen even if no data is pending. This
prevents Envoy from holding a file descriptor on rotated
but seldom written log files until the next write.

Risk Level: low
Testing: add unit test
Docs Changes: n/a
Release Notes: n/a
Fixes: envoyproxy#8249

Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Checks for the reopen flag when the log flush timer fires
and issues the reopen even if no data is pending. This
prevents Envoy from holding a file descriptor on rotated
but seldom written log files until the next write.

Risk Level: low
Testing: add unit test
Docs Changes: n/a
Release Notes: n/a
Fixes: envoyproxy#8249

Signed-off-by: Stephan Zuercher <zuercher@gmail.com>
@zuercher zuercher deleted the szuercher_reopen_logs_on_flush_timer branch November 7, 2019 18:45
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.

Envoy does not release healthcheck log fd on SIGUSR1

3 participants