Fork me on GitHub
#onyx
<
2015-11-05
>
noisesmith20:11:40

in order to clear state between launches on staging, what zookeeper nodes would we want to clear out? or is this even a reasonable thing?

lucasbradstreet20:11:01

You could just run on a new onyx/id each time. That would ensure a clean cluster state

noisesmith20:11:41

well, that has to be coordinated between our servers...

noisesmith20:11:13

the issue we are having, is how to tell every server the same new id - we are putting it in the jar, but then restarting the jar without a fresh build means we get held over state

lucasbradstreet20:11:54

I would put something like onyx/id in an env variable or command line arg

noisesmith20:11:01

which is what made me think that for staging at least, clearing the zk would be clean

noisesmith20:11:12

OK, we are going that route too, I was checking out alternates simple_smile

lucasbradstreet20:11:14

Cleaning ZK works too though

noisesmith20:11:26

which nodes (it's not the only client of zk)

lucasbradstreet20:11:47

I think if you just delete everything under /onyx/id then it'd be fine

noisesmith20:11:54

cool, thanks

lucasbradstreet20:11:22

I think having onyx/id outside of the jar is best practice though. It'll make it easy to get to a new cluster state without deleting anything if you ever need to do so

lucasbradstreet20:11:31

Even if you don't use it