bud icon indicating copy to clipboard operation
bud copied to clipboard

bud on multiple boxes

Open phillipp opened this issue 10 years ago • 2 comments

We're going to deploy bud on multiple boxes in different DCs for DNS round-robin failover.

In the docs is a hint that ticket rotation will be a problem in this case (if I understand correctly). What is the setup for synchronized ticket rotation?

And: will there be any other problems?

phillipp avatar Jul 15 '15 16:07 phillipp

@phillipp yeah, the way it works right now is following:

  1. master spawns workers
  2. after some time master sends new ticket key to the workers using IPC

The way it should work on multi-box deployment is following:

  1. Something should spawn masters and connect to their ipc channels (using "master_ipc": true)
  2. Periodically send the same key to all masters in cluster
  3. Masters will send keys to workers

The problem is that there is no implementation for this multi-box thing yet.

indutny avatar Jul 16 '15 03:07 indutny

Guess, I can amend the node.js wrapper of bud, and make it expose this key rotation APIs using plain HTTP. But someone will need to start them, and to coordinate ticket rotation between multiple servers.

Does it make sense?

indutny avatar Jul 16 '15 03:07 indutny