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

Reduce scanner/queue load #5251

Merged
merged 1 commit into from
Mar 15, 2016
Merged

Reduce scanner/queue load #5251

merged 1 commit into from
Mar 15, 2016

Conversation

tbg
Copy link
Member

@tbg tbg commented Mar 14, 2016

This change is Review on Reviewable

@bdarnell
Copy link
Contributor

store.go change LGTM, but as discussed offline (and in #5252) let's remove the gc_queue.go change and instead modify the thresholds on the previous two lines

@tbg tbg force-pushed the queue_load branch 2 times, most recently from 13a0a3e to 322328d Compare March 15, 2016 01:32
@tbg
Copy link
Member Author

tbg commented Mar 15, 2016

Done (and tests fixed), PTAL

// A contribution of 1 from gc, 10/5 from intents.
{bc, bc * ttl, 5, 10 * ia, now, true, 1 + 2},
{bc, bc * ttl, 5, 10 * ia, now, true, (1 + 2) * considerThreshold},
Copy link
Contributor

Choose a reason for hiding this comment

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

You could move these multiplications down to the point where you compare against test.priority so it's not repeated on every line.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@bdarnell
Copy link
Contributor

LGTM

- Set (arbitrary) threshold for GC queue
  Avoid the queue periodically scanning the whole Replica without actually
  getting to delete much. The limit is arbitrary. Fine-tuning ideas welcome.

- Disable MaxIdleTime for the consistency scanner
  This avoids costly recurrent runs of the consistency checker at 5 minute
  intervals.
tbg added a commit that referenced this pull request Mar 15, 2016
@tbg tbg merged commit 3286eee into cockroachdb:master Mar 15, 2016
@tbg tbg deleted the queue_load branch March 15, 2016 02:50
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