Set expected_connections in query-engine based on collector conf
Handle collector connection in query-engine as below:
- If collector list is configured, then query-engine should connect to
one of the collectors in the list irrespective of whether discovery
service is configured or not.
- If collector list is not configured and discovery server is
configured, then query-engine should subscribe to collector service and
connect to one of the collectors provided by the discovery server.
- If both collector list and discovery server are not configured, then
connect to the local collector.
expected_connections in ConnectionStateManager::Init should be set
appropriately based on the collector and discovery server config.
Reviewed: https:/ /review. opencontrail. org/16239 github. org/Juniper/ contrail- controller/ commit/ 57874e3463e40be 4501afce4c8d834 9f39bc9c3a
Committed: http://
Submitter: Zuul
Branch: master
commit 57874e3463e40be 4501afce4c8d834 9f39bc9c3a
Author: Sundaresan Rajangam <email address hidden>
Date: Tue Jan 12 08:46:46 2016 -0800
Set expected_ connections in query-engine based on collector conf
Handle collector connection in query-engine as below:
- If collector list is configured, then query-engine should connect to
one of the collectors in the list irrespective of whether discovery
service is configured or not.
- If collector list is not configured and discovery server is
configured, then query-engine should subscribe to collector service and
connect to one of the collectors provided by the discovery server.
- If both collector list and discovery server are not configured, then
connect to the local collector.
expected_ connections in ConnectionState Manager: :Init should be set
appropriately based on the collector and discovery server config.
Change-Id: Idee0fa9c3fba76 ce106e2f3152b03 3af4b057d7d
Partial-Bug: #1528770