Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C++ sandesh client library changes to accept more than 2 collectors
Presently, the contrail services may be either provisoned with the collector list or it gets the collector list from discovery service. In either case, the sandesh client library doesn't accept more than 2 collectors. With the removal of discovery service, all the contrail services that connects to collector would be provisioned with the collector list. Therefore, it is necessary that the sandesh client library accepts collector list without any limitation. With this patch, InitGenerator() can accept collector list > 2 and there is the notion of primary and secondary collector has been removed. The sandesh client would connect to the first collector in the list and upon connection failure/closure would connect to the next collector in the list and so on. It is expected that the sandesh clients would randomize the collector list before passing it to InitGenerator() and ReConfigCollectors(). Renamed EvDiscUpdate event to EvCollectorUpdate. EvCollectorUpdate would be enqueued upon receiving either discovery update or the ReConfigCollectors() [called if the process receives SIGHUP to indicate change in the collector list] This patch doesn't remove the code that subscribes for the collector service with discovery as this would break the functionality without the provisioning/controller changes. Change-Id: Ib84df4a3103e5483a9f3c7cb8ba5f3d034651058 Closes-Bug: #1641846
- Loading branch information
Sundaresan Rajangam
committed
Nov 17, 2016
1 parent
f9c7f96
commit 77724ee
Showing
14 changed files
with
328 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.