Documentation ¶
Overview ¶
Copyright 2023 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Main = &cobra.Command{ Use: "vttablet", Short: "The VTTablet server controls a running MySQL server.", Long: `The VTTablet server _controls_ a running MySQL server. VTTablet supports two primary types of deployments: * Managed MySQL (most common) * External MySQL In addition to these deployment types, a partially managed VTTablet is also possible by setting ` + "`--disable_active_reparents`." + ` ### Managed MySQL In this mode, Vitess actively manages MySQL. ### External MySQL. In this mode, an external MySQL can be used such as AWS RDS, AWS Aurora, Google CloudSQL; or just an existing (vanilla) MySQL installation. See "Unmanaged Tablet" for the full guide. Even if a MySQL is external, you can still make vttablet perform some management functions. They are as follows: ` + "* `--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" + "* `--replication_connect_retry`: This value is give to mysql when it connects a replica to the primary as the retry duration parameter.\n" + "* `--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", Example: ` vttablet \ --topo_implementation etcd2 \ --topo_global_server_address localhost:2379 \ --topo_global_root /vitess/ \ --tablet-path $alias \ --init_keyspace $keyspace \ --init_shard $shard \ --init_tablet_type $tablet_type \ --port $port \ --grpc_port $grpc_port \ --service_map 'grpc-queryservice,grpc-tabletmanager,grpc-updatestream'` + "\n\n`$alias` needs to be of the form: `<cell>-id`, and the cell should match one of the local cells that was created in the topology. The id can be left padded with zeroes: `cell-100` and `cell-000000100` are synonymous.", Args: cobra.NoArgs, Version: servenv.AppVersion.String(), PreRunE: servenv.CobraPreRunE, RunE: run, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
- cli.go
- plugin_azblobbackupstorage.go
- plugin_cephbackupstorage.go
- plugin_consultopo.go
- plugin_etcd2topo.go
- plugin_filebackupstorage.go
- plugin_filecustomrule.go
- plugin_filelogger.go
- plugin_gcsbackupstorage.go
- plugin_grpcbinlogplayer.go
- plugin_grpcbinlogstreamer.go
- plugin_grpcqueryservice.go
- plugin_grpctabletconn.go
- plugin_grpcthrottlerserver.go
- plugin_grpctmclient.go
- plugin_grpctmserver.go
- plugin_opentracing.go
- plugin_opentsdb.go
- plugin_prometheusbackend.go
- plugin_s3backupstorage.go
- plugin_statsd.go
- plugin_sysloglogger.go
- plugin_topocustomrule.go
- plugin_zk2topo.go
- status.go
Click to show internal directories.
Click to hide internal directories.