Diagnose framework for networkDB#2027
Merged
Merged
Conversation
fd95ac7 to
215b8a7
Compare
added 2 commits
December 1, 2017 16:19
This commit introduces the possibility to enable a debug mode for the networkDB, this will allow the opening of a tcp port on localhost that will expose the networkDB api for debugging purposes. The API can be discovered using curl localhost:<port>/help It support json output if passed json as URL query parameter option and pretty printing if passing json=pretty All the binaries values are serialized in base64 encoding, this can be skip passing the unsafe option as url query parameter A simple go client will follow up Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
If a node leave, avoid to notify the upper layer for entries that are already marked for deletion Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
215b8a7 to
7758942
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces the possibility to enable a debug mode
for the networkDB, this will allow the opening of a tcp port
on localhost that will expose the networkDB api for debugging
purposes.
The API can be discovered using curl localhost:/help
It support json output if passed json as URL query parameter
option and pretty printing if passing json=pretty
All the binaries values are serialized in base64 encoding, this
can be skip passing the unsafe option as url query parameter
A simple go client will follow up
Signed-off-by: Flavio Crisciani flavio.crisciani@docker.com