Skip to content

Switch flag definitions to be on pflag instead of flag in package go/vt/mysqlctl #10810

Closed
@ajm188

Description

@ajm188

Part of #10697.

Current flags:

$ git grep -E "\bflag\.[A-Z]" -- go/vt/mysqlctl/*.go
go/vt/mysqlctl/backup.go:       backupStorageHook = flag.String("backup_storage_hook", "", "if set, we send the contents of the backup files through this hook.")
go/vt/mysqlctl/backup.go:       backupStorageCompress = flag.Bool("backup_storage_compress", true, "if set, the backup files will be compressed (default is true). Set to false for instance if a backup_storage_hook is specified and it compresses the data.")
go/vt/mysqlctl/backup.go:       backupCompressBlockSize = flag.Int("backup_storage_block_size", 250000, "if backup_storage_compress is true, backup_storage_block_size sets the byte size for each block while compressing (default is 250000).")
go/vt/mysqlctl/backup.go:       backupCompressBlocks = flag.Int("backup_storage_number_blocks", 2, "if backup_storage_compress is true, backup_storage_number_blocks sets the number of blocks that can be processed, at once, before the writer blocks, during compression (default is 2). It should be equal to the number of CPUs available for compression")
go/vt/mysqlctl/backupengine.go: backupEngineImplementation = flag.String("backup_engine_implementation", builtinBackupEngineName, "Specifies which implementation to use for creating new backups (builtin or xtrabackup). Restores will always be done with whichever engine created a given backup.")
go/vt/mysqlctl/builtinbackupengine.go:  BuiltinBackupMysqldTimeout = flag.Duration("builtinbackup_mysqld_timeout", 10*time.Minute, "how long to wait for mysqld to shutdown at the start of the backup")
go/vt/mysqlctl/builtinbackupengine.go:  builtinBackupProgress = flag.Duration("builtinbackup_progress", 5*time.Second, "how often to send progress updates when backing up large files")
go/vt/mysqlctl/compression.go:  compressionLevel = flag.Int("compression-level", 1, "what level to pass to the compressor")
go/vt/mysqlctl/compression.go:  BuiltinCompressor   = flag.String("builtin-compressor", "pgzip", "builtin compressor engine to use")
go/vt/mysqlctl/compression.go:  BuiltinDecompressor = flag.String("builtin-decompressor", "auto", "builtin decompressor engine to use")
go/vt/mysqlctl/compression.go:  ExternalCompressorCmd   = flag.String("external-compressor", "", "command with arguments to use when compressing a backup")
go/vt/mysqlctl/compression.go:  ExternalCompressorExt   = flag.String("external-compressor-extension", "", "extension to use when using an external compressor")
go/vt/mysqlctl/compression.go:  ExternalDecompressorCmd = flag.String("external-decompressor", "", "command with arguments to use when decompressing a backup")
go/vt/mysqlctl/mycnf_flag.go:   flagServerID = flag.Int("mycnf_server_id", 0, "mysql server id of the server (if specified, mycnf-file will be ignored)")
go/vt/mysqlctl/mycnf_flag.go:   flagMysqlPort = flag.Int("mycnf_mysql_port", 0, "port mysql is listening on")
go/vt/mysqlctl/mycnf_flag.go:   flagDataDir = flag.String("mycnf_data_dir", "", "data directory for mysql")
go/vt/mysqlctl/mycnf_flag.go:   flagInnodbDataHomeDir = flag.String("mycnf_innodb_data_home_dir", "", "Innodb data home directory")
go/vt/mysqlctl/mycnf_flag.go:   flagInnodbLogGroupHomeDir = flag.String("mycnf_innodb_log_group_home_dir", "", "Innodb log group home directory")
go/vt/mysqlctl/mycnf_flag.go:   flagSocketFile = flag.String("mycnf_socket_file", "", "mysql socket file")
go/vt/mysqlctl/mycnf_flag.go:   flagGeneralLogPath = flag.String("mycnf_general_log_path", "", "mysql general log path")
go/vt/mysqlctl/mycnf_flag.go:   flagErrorLogPath = flag.String("mycnf_error_log_path", "", "mysql error log path")
go/vt/mysqlctl/mycnf_flag.go:   flagSlowLogPath = flag.String("mycnf_slow_log_path", "", "mysql slow query log path")
go/vt/mysqlctl/mycnf_flag.go:   flagRelayLogPath = flag.String("mycnf_relay_log_path", "", "mysql relay log path")
go/vt/mysqlctl/mycnf_flag.go:   flagRelayLogIndexPath = flag.String("mycnf_relay_log_index_path", "", "mysql relay log index path")
go/vt/mysqlctl/mycnf_flag.go:   flagRelayLogInfoPath = flag.String("mycnf_relay_log_info_path", "", "mysql relay log info path")
go/vt/mysqlctl/mycnf_flag.go:   flagBinLogPath = flag.String("mycnf_bin_log_path", "", "mysql binlog path")
go/vt/mysqlctl/mycnf_flag.go:   flagMasterInfoFile = flag.String("mycnf_master_info_file", "", "mysql master.info file")
go/vt/mysqlctl/mycnf_flag.go:   flagPidFile = flag.String("mycnf_pid_file", "", "mysql pid file")
go/vt/mysqlctl/mycnf_flag.go:   flagTmpDir = flag.String("mycnf_tmp_dir", "", "mysql tmp directory")
go/vt/mysqlctl/mycnf_flag.go:   flagSecureFilePriv = flag.String("mycnf_secure_file_priv", "", "mysql path for loading secure files")
go/vt/mysqlctl/mycnf_flag.go:   flagMycnfFile = flag.String("mycnf-file", "", "path to my.cnf, if reading all config params from there")
go/vt/mysqlctl/mycnf_gen.go:    tabletDir = flag.String("tablet_dir", "", "The directory within the vtdataroot to store vttablet/mysql files. Defaults to being generated by the tablet uid.")
go/vt/mysqlctl/mysqld.go:       DisableActiveReparents = flag.Bool("disable_active_reparents", false, "if set, do not allow active reparents. Use this to protect a cluster using external reparents.")
go/vt/mysqlctl/mysqld.go:       dbaPoolSize = flag.Int("dba_pool_size", 20, "Size of the connection pool for dba connections")
go/vt/mysqlctl/mysqld.go:       DbaIdleTimeout = flag.Duration("dba_idle_timeout", time.Minute, "Idle timeout for dba connections")
go/vt/mysqlctl/mysqld.go:       appPoolSize    = flag.Int("app_pool_size", 40, "Size of the connection pool for app connections")
go/vt/mysqlctl/mysqld.go:       appIdleTimeout = flag.Duration("app_idle_timeout", time.Minute, "Idle timeout for app connections")
go/vt/mysqlctl/mysqld.go:       PoolDynamicHostnameResolution = flag.Duration("pool_hostname_resolve_interval", 0, "if set force an update to all hostnames and reconnect if changed, defaults to 0 (disabled)")
go/vt/mysqlctl/mysqld.go:       mycnfTemplateFile = flag.String("mysqlctl_mycnf_template", "", "template file to use for generating the my.cnf file during server init")
go/vt/mysqlctl/mysqld.go:       socketFile        = flag.String("mysqlctl_socket", "", "socket file to use for remote mysqlctl actions (empty for local actions)")
go/vt/mysqlctl/mysqld.go:       masterConnectRetry      = flag.Duration("master_connect_retry", 10*time.Second, "Deprecated, use -replication_connect_retry")
go/vt/mysqlctl/mysqld.go:       replicationConnectRetry = flag.Duration("replication_connect_retry", 10*time.Second, "how long to wait in between replica reconnect attempts. Only precise to the second.")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupEnginePath = flag.String("xtrabackup_root_path", "", "directory location of the xtrabackup and xbstream executables, e.g., /usr/bin")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupBackupFlags = flag.String("xtrabackup_backup_flags", "", "flags to pass to backup command. These should be space separated and will be added to the end of the command")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupPrepareFlags = flag.String("xtrabackup_prepare_flags", "", "flags to pass to prepare command. These should be space separated and will be added to the end of the command")
go/vt/mysqlctl/xtrabackupengine.go:     xbstreamRestoreFlags = flag.String("xbstream_restore_flags", "", "flags to pass to xbstream command during restore. These should be space separated and will be added to the end of the command. These need to match the ones used for backup e.g. --compress / --decompress, --encrypt / --decrypt")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupStreamMode = flag.String("xtrabackup_stream_mode", "tar", "which mode to use if streaming, valid values are tar and xbstream")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupUser       = flag.String("xtrabackup_user", "", "User that xtrabackup will use to connect to the database server. This user must have all necessary privileges. For details, please refer to xtrabackup documentation.")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupStripes         = flag.Uint("xtrabackup_stripes", 0, "If greater than 0, use data striping across this many destination files to parallelize data transfer and decompression")
go/vt/mysqlctl/xtrabackupengine.go:     xtrabackupStripeBlockSize = flag.Uint("xtrabackup_stripe_block_size", 102400, "Size in bytes of each block that gets sent to a given stripe before rotating to the next stripe")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions