package main import ( "github.com/cockroachdb/cockroach/acceptance/cluster" ) func main() { c := cluster.CreateCluster(3) c.Start() }
c := cluster.CreateCluster(2) c.Start() c.AddNode()This will add a new node to the existing cluster and start it. Overall, the github.com.cockroachdb.cockroach.acceptance.cluster package library provides a powerful set of tools for developers to create and manage CockroachDB clusters, making it a useful resource for acceptance testing and beyond.