yugabyted
Manage YugabyteDB distributed SQL clusters
TLDR
Start local cluster
SYNOPSIS
yugabyted command [options]
ysqlsh [options]
ycqlsh [options] [host] [port]
DESCRIPTION
yugabyted manages YugabyteDB clusters, a distributed SQL database compatible with PostgreSQL. It simplifies single-node and multi-node deployments.
YugabyteDB offers two APIs: YSQL (PostgreSQL-compatible) and YCQL (Cassandra-compatible). Use ysqlsh for SQL workloads and ycqlsh for wide-column workloads.
yugabyted start runs YB-Master and YB-TServer processes. The admin UI (default port 15433) shows cluster health, tables, and metrics. Connect YSQL on port 5433.
For multi-node clusters, start the first node normally, then use --join on additional nodes. --fault_tolerance configures replication for zone or region failure survival.
YSQL supports most PostgreSQL features including extensions, stored procedures, and common ORMs. Connection strings follow PostgreSQL format.
YUGABYTED COMMANDS
start
Start YugabyteDB node.stop
Stop YugabyteDB node.status
Show cluster status.destroy
Remove cluster data.configure
Configure cluster settings.collect_logs
Gather logs for troubleshooting.version
Show version information.
YUGABYTED OPTIONS
--base_dir path
Data directory.--listen address
Listen address for the node.--join host
Existing node to join cluster.--cloud_location region.zone
Cloud placement information.--fault_tolerance level
Fault tolerance: none, zone, region.--ui bool
Enable admin UI. Default: true.
YSQLSH PARAMETERS
-h, --host host
Database server host.-p, --port port
Database port. Default: 5433.-U, --username user
Database username.-d, --dbname database
Database name.-c command
Execute single command.-f file
Execute commands from file.
CAVEATS
Some PostgreSQL features are unsupported or behave differently in distributed context. Minimum 3 nodes for fault tolerance. RF3 replication triples storage requirements. Clock synchronization important for consistency.
HISTORY
YugabyteDB was created by Yugabyte, Inc. founded by former Facebook engineers Kannan Muthukkaruppan and Karthik Ranganathan in 2016. First released in 2017, it was designed as an open-source alternative to Google Spanner. The database combines Spanner-like architecture with PostgreSQL and Cassandra compatibility. YugabyteDB is Apache-licensed with enterprise features available separately.
