yugabyted can be used for production deployments. You can also administer yb-tserver and yb-master servers directly for more granular control.
Installation
The yugabyted executable is packaged with YugabyteDB and located in thebin directory of your YugabyteDB installation.
YB Controller for Backup/Restore
To use backup and restore features, install the YB Controller service from theshare directory:
Syntax
Example
Online Help
Display general help:Base Directory
By default, yugabyted uses$HOME/var to store data, configurations, and logs. You can change this using the --base_dir flag:
Commands
start
Start a YugabyteDB cluster or add a node to an existing cluster.Syntax
Common Start Flags
IP address or hostname that other nodes use to connect to this node.Default: Auto-detected private IP
Base directory for data, configuration, and logs.Default:
$HOME/varCloud location in
cloud.region.zone format for geo-distribution.Example: aws.us-west-2.us-west-2aDirectory where data is stored. If not specified, uses
<base_dir>/data.Fault tolerance level for the cluster.Valid values:
zone, region, cloudDefault: noneAddress of an existing node to join the cluster. Use for multi-node clusters.Example:
--join=10.0.0.1IP address or hostname to bind to for connections.Default:
127.0.0.1 (use 0.0.0.0 for all interfaces)Comma-separated list of yb-master flags to set.Example:
--master_flags="log_cache_size_limit_mb=256,max_log_size=1024"Comma-separated list of yb-tserver flags to set.Example:
--tserver_flags="memstore_size_mb=512,tablet_enable_ttl_file_filter=true"Replication factor for the cluster.Default:
1 (single-node), 3 (multi-node)Valid range: 1-7 (odd numbers recommended)Enable the yugabyted UI.Default:
trueStart the YB Controller backup daemon.Default:
falseEnable PostgreSQL parity features (tech preview).Default:
falseYSQL Flags
Port for YSQL connections.Default:
5433Enable YSQL API.Default:
trueYCQL Flags
Port for YCQL connections.Default:
9042Enable YCQL API.Default:
falseSecurity Flags
Enable encryption in transit and authentication.Default:
falseDirectory containing SSL certificates.
Directory containing SQL scripts to run on first start.
Example: Start a Multi-Node Cluster
status
Display the status of a yugabyted cluster.Syntax
Flags
Base directory of the yugabyted node.Default:
$HOME/varExample
stop
Stop a yugabyted cluster or node.Syntax
Flags
Base directory of the yugabyted node to stop.Default:
$HOME/varExample
destroy
Destroy a yugabyted cluster and delete all data.Syntax
Flags
Base directory of the yugabyted node to destroy.Default:
$HOME/varExample
connect
Connect to the cluster using ysqlsh or ycqlsh.Syntax
YSQL Flags
YSQL username to connect.Default:
yugabytePassword for YSQL user.
Name of the database to connect to.Default:
yugabyteBase directory of the yugabyted node.Default:
$HOME/varExample
configure
Configure cluster-level settings.Syntax
Flags
Data placement constraint for the cluster in
cloud.region.zone:num_replicas format.Example: aws.us-west-2.us-west-2a:1,aws.us-west-2.us-west-2b:1,aws.us-west-2.us-west-2c:1Set fault tolerance level.Valid values:
zone, region, cloudSet replication factor.
configure_read_replica
Configure, modify, or delete read replica clusters.Syntax
Create New Read Replica
Modify Read Replica
Delete Read Replica
backup
Create a backup of a YugabyteDB database.Requires YB Controller to be running (
--backup_daemon=true).Syntax
Flags
Database namespace to backup.
Backup storage location (S3, GCS, Azure, or NFS path).Examples:
- S3:
s3://bucket-name/path - GCS:
gs://bucket-name/path - Azure:
https://account.blob.core.windows.net/container/path - NFS:
/mnt/backup/path
Example: Backup to AWS S3
restore
Restore a YugabyteDB database from a backup.Syntax
Flags
Target database namespace for restore.
Location of the backup to restore from.
Example
version
Display the YugabyteDB version.Syntax
collect_logs
Collect logs from the cluster for troubleshooting.Syntax
Flags
Base directory of the yugabyted node.Default:
$HOME/varOutput logs to stdout instead of a file.Default:
falsedemo
Start a demo cluster with sample data.Syntax
Commands
connect- Connect to the demo clusterdestroy- Destroy the demo cluster
Example
Configuration Best Practices
Production Deployments
-
Use dedicated directories for data
-
Set appropriate replication factor
-
Configure cloud location for geo-distribution
-
Enable security features
-
Tune flags for workload
Multi-Region Setup
Troubleshooting
Check Cluster Status
Collect Logs
Common Issues
- Port conflicts - Ensure ports 5433 (YSQL), 9042 (YCQL), 7000 (Master UI), 9000 (TServer UI) are available
- Network connectivity - Verify firewall rules allow communication between nodes
- Disk space - Ensure adequate disk space in base_dir and data_dir
- Clock skew - Verify NTP is configured and clocks are synchronized

