Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

reduce sweep queue logspam for short-lived write-heavy tables #4456

Merged
merged 2 commits into from
Dec 4, 2019

Conversation

clockfort
Copy link
Contributor

The existing code is bad mostly because it emits a log per batch, instead of something
halfway reasonable like emitting the log per deleted table.

Low sweep queue batch sizes along with short-lived, heavily mutated groups of tables is probably the worst case scenario, which we had on our stack. The service creates a decent number of tables (~10-20), does a data import and manipulation into them (performs lots of writes, including to the sweep queue), and then upon completion drops the tables.
Having every batch of the sweep queue afterwards log about these tables proved to be very logspammy.

It's bad mostly because it emits a log per batch, instead of something
halfway reasonable like emitting the log per deleted table.
@changelog-app
Copy link

changelog-app bot commented Dec 4, 2019

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

reduce sweep queue logspam for short-lived, write-heavy tables

Check the box to generate changelog(s)

  • Generate changelog entry

@clockfort clockfort changed the title reduce sweep queue logspam for short-lived tables reduce sweep queue logspam for short-lived write-heavy tables Dec 4, 2019
Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

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

Thanks @clockfort!

@clockfort clockfort merged commit 563ea62 into develop Dec 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the sweep_queue_deleter_logspam branch December 4, 2019 19:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants