We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related PR: cockroachdb/cockroach#9066
On node startup, you now get status, clusterID, and nodeID.
status
clusterID
nodeID
$ cockroach start --store=test --background build: beta-20160829-543-gbe463fc @ 2016/09/07 17:16:23 (go1.7) admin: http://localhost:8080 sql: postgresql://root@localhost:26257?sslmode=disable logs: test/logs store[0]: path=test status: restarted pre-existing node clusterID: {4ef69723-92cc-44fa-a847-5a855b3532a7} nodeID: 1
On develop only.
develop
The text was updated successfully, but these errors were encountered:
For now, we should update https://www.cockroachlabs.com/docs/start-a-node.html#standard-output, with disclaimer that this only applies when building from source on develop.
Sorry, something went wrong.
Various statuses:
initialBoot := s.InitialBoot() nodeID := s.NodeID() if initialBoot { if nodeID == server.FirstNodeID { fmt.Fprintf(tw, "status:\tinitialized new cluster\n") } else { fmt.Fprintf(tw, "status:\tinitialized new node, joined pre-existing cluster\n") } } else { fmt.Fprintf(tw, "status:\trestarted pre-existing node\n") } fmt.Fprintf(tw, "clusterID:\t%s\n", s.ClusterID()) fmt.Fprintf(tw, "nodeID:\t%d\n", nodeID) if err := tw.Flush(); err != nil { return err }
No branches or pull requests
Related PR: cockroachdb/cockroach#9066
On node startup, you now get
status
,clusterID
, andnodeID
.On
develop
only.The text was updated successfully, but these errors were encountered: