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

log flooding when using retry_join #599

Closed
yikaus opened this issue Dec 17, 2015 · 8 comments
Closed

log flooding when using retry_join #599

yikaus opened this issue Dec 17, 2015 · 8 comments
Assignees

Comments

@yikaus
Copy link

yikaus commented Dec 17, 2015

Nomd v.0.2.2

When applied below configuration to manually join a cluster , the log file get flooded until other nodes are available

Enable the server

server {
enabled = true
bootstrap_expect = 3
retry_join = ["192.169.0.20","192.168.0.21"]
}

However it showing retrying in 30s , but actually not having any delay

2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s
2015/12/17 22:11:27 [WARN] agent: Join failed: dial tcp 192.168.0.20:4648: getsockopt: connection refused, retrying in 30s

@cbednarski
Copy link
Contributor

Thanks for the report! Can you show the command you used to invoke Nomad? The serf consensus / retry is much more aggressive than 30s delay so I suspect that one of your CLI flags was not passed in correctly.

@yikaus
Copy link
Author

yikaus commented Dec 17, 2015

@charlieok I am not using special command , see below

nomad agent -config /etc/nomad.d/server.hcl

server.hcl

bind_addr = "192.168.0.22"
log_level = "DEBUG"
data_dir = "/tmp/nomad"
server {
enabled = true
bootstrap_expect = 3
retry_join = ["192.169.0.20","192.168.0.21"]
}

@c4milo
Copy link
Contributor

c4milo commented Dec 17, 2015

I've seen this too myself before

@diptanu
Copy link
Contributor

diptanu commented Dec 17, 2015

I am trying to reproduce this now.

@yikaus
Copy link
Author

yikaus commented Dec 18, 2015

Cool , wait for next release .

@diptanu
Copy link
Contributor

diptanu commented Dec 18, 2015

@yikaus We just released 0.2.3 which had this fix!

@yikaus
Copy link
Author

yikaus commented Dec 18, 2015

Just tried new release , it is fixed . Thanks

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, 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 Dec 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants