Skip to content

Commit

Permalink
Merge pull request canonical#259 from sabaini/try-clustering-harder
Browse files Browse the repository at this point in the history
Try harder when clustering
  • Loading branch information
sabaini authored Nov 16, 2023
2 parents f48b77f + 2ca3602 commit 4e6b0ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion microceph/cmd/microceph/cluster_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ func (c *cmdClusterBootstrap) Run(cmd *cobra.Command, args []string) error {
address := util.NetworkInterfaceAddress()
address = util.CanonicalNetworkAddress(address, 7443)

return m.NewCluster(hostname, address, time.Second*30)
return m.NewCluster(hostname, address, time.Minute*5)
}
2 changes: 1 addition & 1 deletion microceph/cmd/microceph/cluster_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ func (c *cmdClusterJoin) Run(cmd *cobra.Command, args []string) error {
address := util.NetworkInterfaceAddress()
address = util.CanonicalNetworkAddress(address, 7443)

return m.JoinCluster(hostname, address, args[0], time.Second*30)
return m.JoinCluster(hostname, address, args[0], time.Minute*5)
}
4 changes: 2 additions & 2 deletions microceph/cmd/microceph/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (c *cmdInit) Run(cmd *cobra.Command, args []string) error {
}

// Bootstrap the cluster.
err = m.NewCluster(hostName, address, time.Second*30)
err = m.NewCluster(hostName, address, time.Minute*2)
if err != nil {
return err
}
Expand All @@ -93,7 +93,7 @@ func (c *cmdInit) Run(cmd *cobra.Command, args []string) error {
return err
}

err = m.JoinCluster(hostName, address, token, time.Second*30)
err = m.JoinCluster(hostName, address, token, time.Minute*2)
if err != nil {
return err
}
Expand Down

0 comments on commit 4e6b0ab

Please sign in to comment.