Skip to content
New issue

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

Add flags for bootstrap modes to CLI #79

Merged
merged 4 commits into from
Sep 23, 2015
Merged

Add flags for bootstrap modes to CLI #79

merged 4 commits into from
Sep 23, 2015

Conversation

ryanuber
Copy link
Member

No description provided.

@@ -67,6 +67,10 @@ func (c *Command) readConfig() *Config {
flags.BoolVar(&cmdConfig.Server.Enabled, "server", false, "")
flags.BoolVar(&cmdConfig.Client.Enabled, "client", false, "")

// Server-only options
flags.BoolVar(&cmdConfig.Server.Bootstrap, "bootstrap", false, "")
flags.IntVar(&cmdConfig.Server.BootstrapExpect, "bootstrap-expect", 0, "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a check after this to enforce mutual exclusivity? The docs indicate that I should not use both of these at the same time.

Also curious.. what's the difference between -bootstrap and -dev?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good point, I think Consul does the same thing. The difference is that dev mode makes a dual client/server and takes lots of shortcuts to bring it up quickly. Bootstrap mode makes a "real" server with a data dir etc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh that make sense. The combined client / server in -dev mode is a pretty big distinction. Thanks for clarifying!

@ryanuber ryanuber force-pushed the f-bootstrap branch 2 times, most recently from 001a5b2 to 3337705 Compare September 22, 2015 21:29
@ryanuber
Copy link
Member Author

I think this is done - high-level view of what changed:

  • Bootstrap is no longer a config option. The Agent only knows about BootstrapExpect to make it more obvious when you are doing a single-server mode.
  • Only the -bootstrap-expect=<num> flag is available from the CLI.
  • Translation from BootstrapExpect == 1 => Bootstrap = true is done when creating the agent.

@ryanuber
Copy link
Member Author

Merging this in since I'm fairly certain we don't want to carry the -bootstrap hangover into Nomad. It's more than we have now so we can iterate on this more later as well.

ryanuber added a commit that referenced this pull request Sep 23, 2015
Add flags for bootstrap modes to CLI
@ryanuber ryanuber merged commit cca3ed0 into master Sep 23, 2015
@ryanuber ryanuber deleted the f-bootstrap branch September 23, 2015 03:28
schmichael pushed a commit that referenced this pull request Jan 30, 2020
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants