Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch to curator-go treecache #2914
Comments
brian-brazil
added
the
component/service discovery
label
Jul 7, 2017
brian-brazil
changed the title
Switch to go-curator treecache
Switch to curator-go treecache
Jul 7, 2017
brian-brazil
added
priority/P3
kind/cleanup
help wanted
labels
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
This sounds like a good idea. The current implementation is collapsing regularly due to shortcomings of the used ZK go library (samuel/go-zookeeper#121, samuel/go-zookeeper#133) |
This comment has been minimized.
This comment has been minimized.
|
curator-go relies on the same ZK library as what we have - there's only one of them in Go as far as I'm aware. |
This comment has been minimized.
This comment has been minimized.
|
I have filed samuel/go-zookeeper#165 as a desperate attempt. Let's see what comes out of it. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil I'll give this a shot. Should I branch from master or 2.0? |
This comment has been minimized.
This comment has been minimized.
|
Master. |
gouthamve
added
the
hacktoberfest
label
Sep 28, 2017
This comment has been minimized.
This comment has been minimized.
|
I looked into the go-curator TreeCache implementation here. https://github.com/curator-go/curator/blob/master/recipes/cache/tree_cache.go You’d like to remove this code https://github.com/prometheus/prometheus/blob/master/util/treecache/treecache.go and use the code above. Am I right? The curator tree_cache implementation has a dependency on the curator client. Do you want to use curator itself as well? (I couldn't find an implementation of tree_cache in go-curator that doesn’t have a dependency on the curator client.) |
This comment has been minimized.
This comment has been minimized.
Yes.
If that's what's required. |
This comment has been minimized.
This comment has been minimized.
|
curator-go looks unmaintained. This issue Fix various race conditions #4 especially this comment makes me think that using curator-go is not a good idea. |
brian-brazil commentedJul 7, 2017
The treecache implementation used in our zookeeper service discovery was something I wrote as none existed in Go at the time. I attempted to get it upstreamed into a more appropriate library, but it appears that https://github.com/curator-go/curator/ is now the standard.
I think we should switch to that library rather than continuing to maintain our own version.