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

Network config #33

Merged
merged 8 commits into from
Sep 12, 2015
Merged

Network config #33

merged 8 commits into from
Sep 12, 2015

Conversation

ryanuber
Copy link
Member

Adds network configuration to the agent. This lets us specify bind addresses / ports as well as the advertise addrs for RPC and Serf. The BindAddr at the top-most level of the config can be used to specify the default bind address, which all of the individual bind addrs will fall back to if not provided with a specific config.

Also updated testutil/server to use these port settings so we can spin up multi-node Nomad clusters in our tests.

// Setup the configuration
// serverConfig is used to generate a new server configuration struct
// for initializing a nomad server.
func (a *Agent) serverConfig() (*nomad.Config, error) {
conf := a.config.NomadConfig
if conf == nil {
conf = nomad.DefaultConfig()
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this is not the best spot, but can we log when we're decide to use the default config? In case we get into a weird spot like, "Why are none of my config values working? Oh it's using defaults."

Copy link
Member Author

Choose a reason for hiding this comment

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

We could do something like that yeah. Maybe when we start the agent we can do a debug log and dump the names of the config files or something like that, so at least we would have a way to easily see if something wasn't getting picked up. I'll add a ticket for that.

@cbednarski
Copy link
Contributor

👍 A few comments but no blockers. LGTM!

ryanuber added a commit that referenced this pull request Sep 12, 2015
@ryanuber ryanuber merged commit 562d214 into master Sep 12, 2015
@ryanuber ryanuber deleted the f-network branch September 13, 2015 05:03
benbuzbee pushed a commit to benbuzbee/nomad that referenced this pull request Jul 21, 2022
Update StableStore documentation based on hashicorp#29
@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