You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[New `unmanaged` Flag and `disable_active_reparents` deprecation](#unmanaged-flag)
8
9
-**[Query Compatibility](#query-compatibility)**
9
10
-[Vindex Hints](#vindex-hints)
10
11
-[Update with Limit Support](#update-limit)
@@ -31,6 +32,12 @@ This makes reparenting in Vitess resilient to client errors, and prevents Planne
31
32
32
33
In order to preserve the old behaviour, the users can set the flag back to `0 seconds` causing open transactions to never be shutdown, but in that case, they run the risk of PlannedReparentShard calls timing out.
33
34
35
+
#### <aid="unmanaged-tablet"/> New `unmanaged` Flag and `disable_active_reparents` deprecation
36
+
37
+
New flag `--unmanaged` has been introduced in this release to make it easier to flag unmanaged tablets. It also runs validations to make sure the unmanaged tablets are configured properly. `--disable_active_reparents` flag has been deprecated for `vttablet`, `vtcombo` and `vttestserver` binaries and will be removed in future releases. Specifying the `--unmanaged` flag will also block replication commands and replication repairs.
38
+
39
+
Starting this release, all unmanaged tablets should specify this flag.
Copy file name to clipboardExpand all lines: go/cmd/vttablet/cli/cli.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ See "Unmanaged Tablet" for the full guide.
82
82
Even if a MySQL is external, you can still make vttablet perform some management functions. They are as follows:
83
83
84
84
`+
85
-
"* `--disable_active_reparents`: If this flag is set, then any reparent or replica commands will not be allowed. These are InitShardPrimary, PlannedReparentShard, EmergencyReparentShard, and ReparentTablet. In this mode, you should use the TabletExternallyReparented command to inform vitess of the current primary.\n"+
85
+
"* `--unmanaged`: This flag indicates that this tablet is running in unmanaged mode. In this mode, any reparent or replica commands are not allowed. These are InitShardPrimary, PlannedReparentShard, EmergencyReparentShard, and ReparentTablet. You should use the TabletExternallyReparented command to inform vitess of the current primary.\n"+
86
86
"* `--replication_connect_retry`: This value is give to mysql when it connects a replica to the primary as the retry duration parameter.\n"+
87
87
"* `--heartbeat_enable` and `--heartbeat_interval duration`: cause vttablet to write heartbeats to the sidecar database. This information is also used by the replication reporter to assess replica lag.\n",
Copy file name to clipboardExpand all lines: go/flags/endtoend/vtcombo.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,6 @@ Flags:
108
108
--ddl_strategy string Set default strategy for DDL statements. Override with @@ddl_strategy session variable (default "direct")
109
109
--default_tablet_type topodatapb.TabletType The default tablet type to set for queries, when one is not explicitly selected. (default PRIMARY)
110
110
--degraded_threshold duration replication lag after which a replica is considered degraded (default 30s)
111
-
--disable_active_reparents if set, do not allow active reparents. Use this to protect a cluster using external reparents.
112
111
--emit_stats If set, emit stats to push-based monitoring and stats backends
113
112
--enable-consolidator Synonym to -enable_consolidator (default true)
114
113
--enable-consolidator-replicas Synonym to -enable_consolidator_replicas
@@ -397,6 +396,7 @@ Flags:
397
396
--tx_throttler_config string The configuration of the transaction throttler as a text-formatted throttlerdata.Configuration protocol buffer message. (default "target_replication_lag_sec:2 max_replication_lag_sec:10 initial_rate:100 max_increase:1 emergency_decrease:0.5 min_duration_between_increases_sec:40 max_duration_between_increases_sec:62 min_duration_between_decreases_sec:20 spread_backlog_across_sec:20 age_bad_rate_after_sec:180 bad_rate_increase:0.1 max_rate_approach_threshold:0.9")
398
397
--tx_throttler_healthcheck_cells strings A comma-separated list of cells. Only tabletservers running in these cells will be monitored for replication lag by the transaction throttler.
399
398
--unhealthy_threshold duration replication lag after which a replica is considered unhealthy (default 2h0m0s)
399
+
--unmanaged Indicates an unmanaged tablet, i.e. using an external mysql-compatible database
400
400
--v Level log level for V logs
401
401
-v, --version print binary version
402
402
--vmodule vModuleFlag comma-separated list of pattern=N settings for file-filtered logging
Copy file name to clipboardExpand all lines: go/flags/endtoend/vttablet.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ See "Unmanaged Tablet" for the full guide.
17
17
18
18
Even if a MySQL is external, you can still make vttablet perform some management functions. They are as follows:
19
19
20
-
* `--disable_active_reparents`: If this flag is set, then any reparent or replica commands will not be allowed. These are InitShardPrimary, PlannedReparentShard, EmergencyReparentShard, and ReparentTablet. In this mode, you should use the TabletExternallyReparented command to inform vitess of the current primary.
20
+
* `--unmanaged`: This flag indicates that this tablet is running in unmanaged mode. In this mode, any reparent or replica commands are not allowed. These are InitShardPrimary, PlannedReparentShard, EmergencyReparentShard, and ReparentTablet. You should use the TabletExternallyReparented command to inform vitess of the current primary.
21
21
* `--replication_connect_retry`: This value is give to mysql when it connects a replica to the primary as the retry duration parameter.
22
22
* `--heartbeat_enable` and `--heartbeat_interval duration`: cause vttablet to write heartbeats to the sidecar database. This information is also used by the replication reporter to assess replica lag.
23
23
@@ -139,7 +139,6 @@ Flags:
139
139
--dba_idle_timeout duration Idle timeout for dba connections (default 1m0s)
140
140
--dba_pool_size int Size of the connection pool for dba connections (default 20)
141
141
--degraded_threshold duration replication lag after which a replica is considered degraded (default 30s)
142
-
--disable_active_reparents if set, do not allow active reparents. Use this to protect a cluster using external reparents.
143
142
--emit_stats If set, emit stats to push-based monitoring and stats backends
144
143
--enable-consolidator Synonym to -enable_consolidator (default true)
145
144
--enable-consolidator-replicas Synonym to -enable_consolidator_replicas
@@ -398,6 +397,7 @@ Flags:
398
397
--tx_throttler_config string The configuration of the transaction throttler as a text-formatted throttlerdata.Configuration protocol buffer message. (default "target_replication_lag_sec:2 max_replication_lag_sec:10 initial_rate:100 max_increase:1 emergency_decrease:0.5 min_duration_between_increases_sec:40 max_duration_between_increases_sec:62 min_duration_between_decreases_sec:20 spread_backlog_across_sec:20 age_bad_rate_after_sec:180 bad_rate_increase:0.1 max_rate_approach_threshold:0.9")
399
398
--tx_throttler_healthcheck_cells strings A comma-separated list of cells. Only tabletservers running in these cells will be monitored for replication lag by the transaction throttler.
400
399
--unhealthy_threshold duration replication lag after which a replica is considered unhealthy (default 2h0m0s)
400
+
--unmanaged Indicates an unmanaged tablet, i.e. using an external mysql-compatible database
401
401
--v Level log level for V logs
402
402
-v, --version print binary version
403
403
--vmodule vModuleFlag comma-separated list of pattern=N settings for file-filtered logging
fs.BoolVar(&DisableActiveReparents, "disable_active_reparents", DisableActiveReparents, "if set, do not allow active reparents. Use this to protect a cluster using external reparents.")
fs.BoolVar(&DisableActiveReparents, "disable_active_reparents", DisableActiveReparents, "if set, do not allow active reparents. Use this to protect a cluster using external reparents.")
149
+
fs.MarkDeprecated("disable_active_reparents", "Use --unmanaged flag instead for unmanaged tablets.")
150
+
}
151
+
144
152
funcregisterPoolFlags(fs*pflag.FlagSet) {
145
153
fs.IntVar(&dbaPoolSize, "dba_pool_size", dbaPoolSize, "Size of the connection pool for dba connections")
146
154
fs.DurationVar(&DbaIdleTimeout, "dba_idle_timeout", DbaIdleTimeout, "Idle timeout for dba connections")
fs.BoolVar(¤tConfig.EnableViews, "queryserver-enable-views", false, "Enable views support in vttablet.")
214
217
215
218
fs.BoolVar(¤tConfig.EnablePerWorkloadTableMetrics, "enable-per-workload-table-metrics", defaultConfig.EnablePerWorkloadTableMetrics, "If true, query counts and query error metrics include a label that identifies the workload")
219
+
220
+
fs.BoolVar(¤tConfig.Unmanaged, "unmanaged", false, "Indicates an unmanaged tablet, i.e. using an external mysql-compatible database")
0 commit comments