Skip to content

Commit

Permalink
synchronize cobradocs with vitessio/vitess#14903
Browse files Browse the repository at this point in the history
  • Loading branch information
vitess-bot[bot] authored Feb 16, 2024
1 parent 90f9f97 commit 5de012a
Show file tree
Hide file tree
Showing 189 changed files with 3,078 additions and 368 deletions.
6 changes: 3 additions & 3 deletions content/en/docs/16.0/get-started/vttestserver-docker-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ docker run --name=vttestserver \
--health-interval=5s \
--health-timeout=2s \
--health-retries=5 \
-v vttestserver_data:/vt/vtdataroot \
vitess/vttestserver:mysql80 \
-v vttestserver_data:/vt/vtdataroot/vitess \
vitess/vttestserver:mysql80
/vt/bin/vttestserver \
--alsologtostderr \
--data_dir=/vt/vtdataroot/ \
--data_dir=/vt/vtdataroot/vitess \
--persistent_mode \
--port=33574 \
--mysql_bind_host=0.0.0.0 \
Expand Down
6 changes: 3 additions & 3 deletions content/en/docs/17.0/get-started/vttestserver-docker-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ docker run --name=vttestserver \
--health-interval=5s \
--health-timeout=2s \
--health-retries=5 \
-v vttestserver_data:/vt/vtdataroot \
vitess/vttestserver:mysql80 \
-v vttestserver_data:/vt/vtdataroot/vitess \
vitess/vttestserver:mysql80
/vt/bin/vttestserver \
--alsologtostderr \
--data_dir=/vt/vtdataroot/ \
--data_dir=/vt/vtdataroot/vitess \
--persistent_mode \
--port=33574 \
--mysql_bind_host=0.0.0.0 \
Expand Down
6 changes: 3 additions & 3 deletions content/en/docs/18.0/get-started/vttestserver-docker-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ docker run --name=vttestserver \
--health-interval=5s \
--health-timeout=2s \
--health-retries=5 \
-v vttestserver_data:/vt/vtdataroot \
vitess/vttestserver:mysql80 \
-v vttestserver_data:/vt/vtdataroot/vitess \
vitess/vttestserver:mysql80
/vt/bin/vttestserver \
--alsologtostderr \
--data_dir=/vt/vtdataroot/ \
--data_dir=/vt/vtdataroot/vitess \
--persistent_mode \
--port=33574 \
--mysql_bind_host=0.0.0.0 \
Expand Down
6 changes: 3 additions & 3 deletions content/en/docs/19.0/get-started/vttestserver-docker-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ docker run --name=vttestserver \
--health-interval=5s \
--health-timeout=2s \
--health-retries=5 \
-v vttestserver_data:/vt/vtdataroot \
vitess/vttestserver:mysql80 \
-v vttestserver_data:/vt/vtdataroot/vitess \
vitess/vttestserver:mysql80
/vt/bin/vttestserver \
--alsologtostderr \
--data_dir=/vt/vtdataroot/ \
--data_dir=/vt/vtdataroot/vitess \
--persistent_mode \
--port=33574 \
--mysql_bind_host=0.0.0.0 \
Expand Down
70 changes: 0 additions & 70 deletions content/en/docs/19.0/reference/features/tablet-throttler.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,76 +375,6 @@ This API call returns the following JSON object:
The replica tablet only presents `mysql/self` metric (measurement of its own backend MySQL's lag). It does not serve checks for the shard in general.


### Metrics

The tablet throttler exports several metrics using the expvars interface. These are available at the `/debug/vars` endpoint of vttablet's http status pages. [More details can be found here](../../features/monitoring/#3-push-based-metrics-system).

#### Aggregated metrics

These are the metrics by which the throttler compares with the threshold and decides whether to accept or reject throttle checks.

##### `ThrottlerAggregatedMysqlSelf`

Gauge, the current metric value of the tablet. This is the result of a self-check, done continuously when the throttler is enabled.

##### `ThrottlerAggregatedMysqlShard`

Gauge, on the `PRIMARY` tablet only, this is the aggregated collected metric value from all serving shard tables, excluding the `PRIMARY`. The `PRIMARY` tablet continuously probes the serving tablets for this metric. As the default collected metric is replication lag, the aggregated value is the highest lag across the probed tablets.

#### Check metrics

The throttler is checked by apps (`vreplication`, `online-ddl`, etc), and responds with status codes, "OK" for "good to proceed" or any other code for "hold off".

At this time the throttler only runs checks with the backend MySQL server. It has the potential to check other input sources.

##### `ThrottlerCheckAnyTotal`

Counter, number of times the throttler has been checked. Tracking this metrics shows the traffic the throttler receives. The value should only increase when an app uses the throttler.

This metric excludes some internal apps (e.g. the schema tracker) that are always on, but does include the throttler's self checks (see following).

##### `ThrottlerCheckAnyError`

Counter. Included in `ThrottlerCheckAnyTotal`, indicating how many times the throttler rejected a check.

##### `ThrottlerCheckAnyMysqlSelfTotal`

Counter. Number of MySQL self-checks this throttler made. Included in `ThrottlerCheckAnyTotal`.

##### `ThrottlerCheckAnyMysqlSelfError`

Counter. Included in `ThrottlerCheckAnyMysqlSelfTotal`, indicating how many times the MySQL self-check resulted in rejection.

##### `ThrottlerCheckAnyMysqlShardTotal`

Counter. Number of MySQL shard-checks this throttler made. Included in `ThrottlerCheckAnyTotal`.

##### `ThrottlerCheckAnyMysqlShardError`

Counter. Included in `ThrottlerCheckAnyMysqlShardTotal`, indicating how many times the MySQL shard-check resulted in rejection.

##### `ThrottlerCheckMysqlSelfSecondsSinceHealthy`

Gauge, number of seconds since the last good MySQL self-check.

##### `ThrottlerCheckMysqlShardSecondsSinceHealthy`

Gauge, number of seconds since the last good MySQL shard-check.

#### Internal throttler metrics

These metrics are helpful when analyzing the throttler behavior, how it interacts with other shard throttlers, its heartbeat mechanism.

##### `ThrottlerProbesTotal`

The throttler probes for metrics independently of checks. Once probed, the result metric is cached, and any further checks are based on that cached value. Further probes overwrite that cached value.

Counter. Total number of probes this throttler made. This includes self probes (e.g. to get the self MySQL metric) and, on `PRIMARY`, the shard probes (e.g. getting MySQL metrics from all serving replicas).

##### `ThrottlerProbesLatency`

Gauge. Time in nanoseconds of last probe. This serves as a general heuristic only for network latency.

## Resources

- [freno](https://github.com/github/freno) project page
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/19.0/reference/programs/mysqlctl/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: mysqlctl
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: init
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl init

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: init config
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl init_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: position
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl position

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: reinit config
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl reinit_config

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: shutdown
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl shutdown

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: start
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl start

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: teardown
series: mysqlctl
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctl teardown

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: mysqlctld
series: mysqlctld
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## mysqlctld

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: topo2topo
series: topo2topo
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## topo2topo

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: vtaclcheck
series: vtaclcheck
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtaclcheck

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/19.0/reference/programs/vtbackup/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: vtbackup
series: vtbackup
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtbackup

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/19.0/reference/programs/vtclient/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: vtclient
series: vtclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtclient

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/19.0/reference/programs/vtcombo/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: vtcombo
series: vtcombo
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtcombo

Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/19.0/reference/programs/vtctld/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: vtctld
series: vtctld
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctld

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LookupVindex
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient LookupVindex

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LookupVindex cancel
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient LookupVindex cancel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LookupVindex create
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient LookupVindex create

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LookupVindex externalize
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient LookupVindex externalize

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: LookupVindex show
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient LookupVindex show

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Materialize
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Materialize

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Materialize cancel
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Materialize cancel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Materialize create
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Materialize create

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Materialize show
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Materialize show

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Materialize start
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Materialize start

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Materialize stop
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Materialize stop

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Migrate
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Migrate

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Migrate cancel
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Migrate cancel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Migrate complete
series: vtctldclient
commit: f82fb7cbd03db4fb93ba49c49b9ff5e43eb77608
commit: 2929deecbcdad21ca991cff62db8205e78cc4452
---
## vtctldclient Migrate complete

Expand Down
Loading

0 comments on commit 5de012a

Please sign in to comment.