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

docs/op-guide: create GC document #433

Merged
merged 8 commits into from
Apr 24, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update gc.md
  • Loading branch information
CaitinChen authored Apr 24, 2018
commit d1ec16a5c7ee65dd26211981b28e12661f8467ae
4 changes: 2 additions & 2 deletions op-guide/gc.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GC runs periodically on TiDB. When a TiDB server is started, a `gc_worker` is en

## Configuration and monitor

The GC configuration and operational status are recorded in the `mysql.tidb` system table, which can be monitored and configured using the following SQL statement:
The GC configuration and operational status are recorded in the `mysql.tidb` system table as below, which can be monitored and configured using SQL statements:

```sql
mysql> select VARIABLE_NAME, VARIABLE_VALUE from mysql.tidb;
Expand All @@ -36,7 +36,7 @@ mysql> select VARIABLE_NAME, VARIABLE_VALUE from mysql.tidb;
10 rows in set (0.02 sec)
```

In the table above, `tikv_gc_run_interval`, `tikv_gc_life_time` and `tikv_gc_concurrency` can be configured manually. Other variables with the `tikv_gc prefix` prefix record the current status, which are automatically updated by TiDB. Do not modify these variables.
In the table above, `tikv_gc_run_interval`, `tikv_gc_life_time` and `tikv_gc_concurrency` can be configured manually. Other variables with the `tikv_gc` prefix record the current status, which are automatically updated by TiDB. Do not modify these variables.

- `tikv_gc_leader_uuid`, `tikv_gc_leader_desc`, `tikv_gc_leader_lease`: the current GC leader information.

Expand Down