Overview
The yb-master executable is located in thebin directory of your YugabyteDB installation. YB-Master servers maintain cluster metadata, perform DDL operations, and coordinate system-wide tasks like load balancing and tablet management.
If you are using YugabyteDB Anywhere, set flags using the Edit Flags feature in the platform UI rather than modifying configuration files directly.
Syntax
Example
Online Help
To display command-line help:General Configuration Flags
Core Flags
Shows version and build information, then exits.
Specifies the configuration file to load flags from. This allows you to store all flags in a file instead of passing them on the command line.
Specifies a comma-separated list of all RPC addresses for YB-Master consensus configuration.Default:
127.0.0.1:7100The number of comma-separated values should match the total number of YB-Master servers (typically equal to the replication factor).
Specifies a comma-separated list of mount directories where yb-master will create a
yb-data/master data directory, along with master.err, master.out, and pg_data directories.Specifies a comma-separated list of directories where YB-Master will store write-ahead logs (WAL). This can be the same as one of the directories in
--fs_data_dirs, but not a subdirectory.Default: Same value as --fs_data_dirsNetworking Flags
Specifies the comma-separated list of network interface addresses to bind for RPC connections.Default: Private IP address of the host (e.g.,
172.161.x.x:7100)Values must match across all yb-master and yb-tserver configurations. If set to
0.0.0.0, ensure server_broadcast_addresses is configured correctly.Specifies the public IP or DNS hostname of the server (with optional port). Used by servers to communicate with one another.Default:
""Duration in milliseconds until a cached DNS resolution expires. Reduces latency and improves load times by caching DNS lookups.Default:
60000 (1 minute)Policy determining when to use private IP addresses for inter-node communication.Valid values:
never- Always useserver_broadcast_addresseszone- Use private IP within a zone; use broadcast address outside the zoneregion- Use private IP across all zones in a region; use broadcast address outside the region
neverWeb Server Flags
Specifies the bind address for web server user interface access.Default:
0.0.0.0Specifies the web server monitoring port.Default:
7000Specifies the monitoring web server home directory.Default: The
www directory in YugabyteDB homeLocation of the SSL certificate file (in .pem format) for the web server. If empty, SSL is not enabled.Default:
""Domain used for .htpasswd authentication. Use with
--webserver_password_file.Default: ""Location of .htpasswd file containing usernames and hashed passwords for web server authentication.Default:
""YSQL Flags
Enables the YSQL API when set to true.Default:
trueEnsure this value matches across all yb-master and yb-tserver configurations.
Set to true on all YB-Masters and YB-TServers to enable the pg_cron extension.Default:
falseControls whether YSQL follower reads with not-yet-safe read times should be rejected, forcing them to the leader.Default:
trueSpecifies the base YSQL lease Time-To-Live (TTL) in milliseconds. The YB-Master leader uses this to determine YB-TServer YSQL lease validity.Default:
300000 (5 minutes)Specifies a client-side buffer for the YSQL operation lease TTL in milliseconds.Default:
2000 (2 seconds)Cluster Configuration Flags
Number of replicas for each tablet in the cluster.Default:
3Valid range: 1-7 (odd numbers recommended for proper quorum)Maximum number of tablets that can be created per tablet server during table creation.Default:
50Timeout in milliseconds for a new master leader to catch up on operations during failover.Default:
30000 (30 seconds)Whether to check if sufficient tablet servers are available before creating a table.Default:
trueLogging Flags
Directory where YB-Master log files are written.Default: Same as
--fs_data_dirsWrite log messages to stderr instead of log files.Default:
falseMaximum log file size in megabytes. A value of 0 is overridden to 1.Default:
1800 (1.8 GB)Minimum log level for messages. Values: 0 (INFO), 1 (WARN), 2 (ERROR), 3 (FATAL).Default:
0 (INFO)Log messages at or above this level are copied to stderr in addition to log files.Default:
2Color messages logged to stderr (if supported by terminal).Default:
falseEnable or disable callhome diagnostics.Default:
trueMemory Flags
Maximum memory this process should use in bytes. A value of 0 uses a percentage of total system memory. A value of -1 disables memory limiting.Default:
0For Kubernetes deployments, this is automatically set from pod memory limits.
Percentage of available RAM to use when
--memory_limit_hard_bytes is 0. Special value -1000 uses the default.Default: 0.10 (10% of RAM)When true, memory division defaults are optimized for YSQL workloads and account for available RAM and cores.Default:
false (set to true when using yugabyted or YugabyteDB Anywhere)Performance Tuning Flags
RPC queue length for the master service.Default:
1000RPC queue length for the master consensus service.Default:
1000RPC queue length for the master tablet server service.Default:
1000Timeout for master RPC operations in milliseconds.Default:
1500Default timeout for YB client operations from master in milliseconds.Default:
60000 (1 minute)Index Backfill Flags
If enabled, YB-Master avoids launching new index-backfill jobs for YCQL indexes. Requires manual execution of
yb-admin backfill_indexes_for_table.Default: falseIf enabled, indexes on the same YCQL table may be batched together during backfill, even if not deferred.Default:
trueTimeout for index backfill RPC operations in milliseconds.Default:
30000 (30 seconds)Maximum number of retries for index backfill RPC operations.Default:
150Transaction Table Flags
Number of tablets to use for transaction status tables. A value of 0 enables automatic calculation.Default:
0 (auto-detect)Automatically create local transaction tables for tablespaces.Default:
trueSecurity Flags
Enable SSL/TLS encryption for client-to-server communications.Default:
falseEnable SSL/TLS encryption for node-to-node communications.Default:
falseDirectory containing SSL certificate and key files.Default:
""Time Synchronization
Specifies the time source used by the database. Set to
clockbound for highly accurate time sources.Default: ""Using
clockbound requires additional system configuration for time synchronization.Maximum expected clock skew between nodes in microseconds.Default:
500000 (500 ms)
