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

Sync logging #718

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Sync logging #718

merged 2 commits into from
Aug 16, 2024

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Aug 15, 2024

The current logging stack uses tracing_subscriber's non-blocking appender. In theory this can reduce latency and the impact of logging when there is a high volume of logs being written. However, in practice this is unlikely in Arroyo unless users are running with DEBUG logging. However, using the non-blocking appender causes a 4MB allocation for the buffer (tokio-rs/tracing#2415) which is undesirable for low-memory settings.

This PR changes the default strategy to the normal blocking stderr writer, while allowing users to enable non-blocking mode by enabling the log.nonblocking config.

@mwylde mwylde enabled auto-merge (squash) August 15, 2024 23:59
@mwylde mwylde merged commit 4184c1a into master Aug 16, 2024
5 of 6 checks passed
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.

1 participant