HttpContactPointBootstrap - Probing logging level - why error?

(Gytis) #1

We’ve switched to kubernetes-api for clusrter bootstraping, and so far it looks great except one thing - upon starting the cluster up (we do blue/green deployments) services that start first spit out a lot of messages like these:

2018-10-04 09:10:28.004 [ERROR] - Probing [] failed due to: Tcp command [Connect(,None,List(),Some(10 seconds),true)] failed because of Connection refused

My understanding of why this happens:

  • first of the nodes starts up and checks kubernetes labels - it sees other nodes which are still starting up
  • those other nodes are still in the startup phase, and management port is not yet ready (we do ClusterBootstrap.start() and AkkaManagement.start() at the very last part of sequence init so that everything would be as much ready as possible before joining the cluster)
  • we see a lot of errors.

To me this HttpContactPointBootstrap probing failure looks like a normal flow - service is not ready, will try again later, though it is logged as error as if you would not something to act upon