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

backport-2.1: server: add a configuration to enable GC of system.rangelog #31328

Closed
wants to merge 3 commits into from

Commits on Oct 17, 2018

  1. server: add a configuration to enable GC of system.rangelog

    system.rangelog table currently grows unboundedly. The rate of
    growth is slow (as long as there is no replica rebalancing
    thrashing), but it can still become a problem in long running
    clusters.
    
    This commit adds cluster settings to specify interval and TTL
    for rows in system.rangelog.
    By default, TTL of system.rangelog is set to 30 days, and that
    for system.eventlog to 90 days.
    
    Fixes cockroachdb#21260.
    
    Release note (sql change): the range log and system events logs will
    automatically purge records older than 30 and 90 days, respectively.
    This can be adjusted via the server.rangelog.ttl and server.eventlog.ttl
    cluster settings.
    tbg committed Oct 17, 2018
    Configuration menu
    Copy the full SHA
    ed3042b View commit details
    Browse the repository at this point in the history
  2. server: Avoid using txn timestamp in gc test

    Using transaction timstamp can lead to flaky tests.
    Use constant timestamps while inserting events in rangelog
    gc test.
    
    Fixes cockroachdb#31371.
    
    Release note: None
    Vijay Karthik authored and tbg committed Oct 17, 2018
    Configuration menu
    Copy the full SHA
    3f0fac5 View commit details
    Browse the repository at this point in the history
  3. server: disable range/event log GC

    It's too late in the cycle to have these on by default (in release-2.1),
    but they're good to have in our back pockets.
    
    Release note: None
    tbg committed Oct 17, 2018
    Configuration menu
    Copy the full SHA
    b9c84d4 View commit details
    Browse the repository at this point in the history