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

logs_reader: use get_log_events() #6

Merged
merged 1 commit into from
Sep 1, 2021
Merged

Conversation

kdgregory
Copy link
Owner

I discovered the hard way that the runtime of FilterLogEvents is proportional to the number of streams (or perhaps total number of log messages), even when specifying an explicit stream in the filter. With a group that has thousands of streams, it can take "forever" (as-in, kill the process after 5 minutes of no output).

GetLogEvents solves the performance issue. Unfortunately Boto doesn't provide a paginator for that API (see this for why), so it's not simply a matter of changing the function name (and thus, this PR to give more info).

@kdgregory kdgregory merged commit 67802d2 into trunk Sep 1, 2021
@kdgregory kdgregory deleted the dev-logs_reader_update branch September 1, 2021 11:29
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