Skip to content

Instantly share code, notes, and snippets.

@lxndrp
Created February 7, 2013 08:50
Show Gist options
  • Save lxndrp/4729653 to your computer and use it in GitHub Desktop.
Save lxndrp/4729653 to your computer and use it in GitHub Desktop.
# haproxy frontend role
haproxy: {
services: {
rabbitmq_portmapping: {
mode: "tcp",
port: "4369",
backends: {
nodes: {
search: {"role:inf_rabbitmq-clusternode"},
attributes: [ "" ],
raw: [ "" ]
},
options: {
check: true
}
}
}
}
}
# haproxy backend role
failover: {
mode: "active" # mode: "standby"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment