Beanstalkd: about HA锛宎ny advice?

Created on 2 Mar 2017  路  3Comments  路  Source: beanstalkd/beanstalkd

we need a system to do crontab tasks that beanstalkd may works ,but this system is asked to be high available and can't loss service ability while it's turned down or just killed.
Any plan on HA cluster like replication ? Or any advice to implement HA ?

Most helpful comment

Given the current implementation, you could always enable WALing and make sure your init process restarts beanstalkd if it crashes.

If you want restarts beyond a single machine, you could mount the same NFS on another machine and run something like consul lock beanstalkd ... on all HA VMs.

All 3 comments

Given the current implementation, you could always enable WALing and make sure your init process restarts beanstalkd if it crashes.

If you want restarts beyond a single machine, you could mount the same NFS on another machine and run something like consul lock beanstalkd ... on all HA VMs.

@JensRantil Thanks a lot!
etcd or ZK ways happened to have been discussed not long ago.

Another approach is to to 1) make sure your tasks are idempotent and 2) do double writes to two beanstalkd instances.

I'll be closing this. Let me know if you still have outstanding issues.

Was this page helpful?
0 / 5 - 0 ratings