docs
docs copied to clipboard
Feedback: cockroach start - incorrect statement about --join flag
Steven Hand (hand-crdb) commented:
Page: https://cockroachlabs.com/docs/v24.1/cockroach-start.html
What is the reason for your feedback?
[ ] Missing the information I need
[ ] Too complicated
[ ] Out of date
[x] Something is broken
[ ] Other
Additional details
The page says, at the documentation for the --join flag:
cockroach startmust be run with the--joinflag. To start a single-node cluster, usecockroach start-single-nodeinstead.
However, it is not required to specify the --join flag when running cockroach start. An example of running cockroach start without setting the --join flag can be seen on the same web page, at
https://www.cockroachlabs.com/docs/v24.1/cockroach-start#create-a-table-with-node-locality-information
In the example shown, the first of the three cockroach start commands does not specify the --join flag. Perhaps this freedom to not specify the --join flag only applies to the first node that is started.
BTW there is a minor typo elsewhere on this page. It says "nodes in on GCE" (my emph.):
Start each node on GCE with
--localityset to describe its location,--locality-advertise-addrset to advertise its private address to other nodes in on GCE,--advertise-addrset to advertise its public address to nodes on AWS, and--joinset to the public addresses of 3-5 of the initial nodes:
Jira Issue: DOC-10375