100% CPU after upgrade to consul 1.5.2 #6120
Labels
type/bug
Feature does not function as expected
waiting-reply
Waiting on response from Original Poster or another individual in the thread
After upgrading to 1.5.2 our consul agents where taking all available CPU.
I traced the issue to PR #5468
We specify our IPv6 recursor on startup with the flag
-recursor [2001:db8:85a3:8d3:1319:8a2e:370:7348]
but without a port (which should use the default port 53)This PR introduced a tight loop on that port 53 check in:
consul/agent/dns.go
Lines 271 to 275 in a82e6a7
[[[2001:db8:85a3:8d3:1319:8a2e:370:7348]]:53]:53
etc and taking all the CPUAccording to golang/go#20470 the "[]" are only allowed when specifying a port with an ipv6 address.
But the
-recursor 2001:db8:85a3:8d3:1319:8a2e:370:7348
fails withtoo many colons in address
So a possible fix would be to check for that error as below:
ping @pierresouchay
Simple workaround for this bug is specifying the port
-recursor [2001:db8:85a3:8d3:1319:8a2e:370:7348]:53
The text was updated successfully, but these errors were encountered: