Feature #2834
closedcarp+pfsync: add ability to prefer one node as master
0%
Description
This request is done because we have the situation of a lot (3x /27) ip-addresses with most of them guarded by carp. As we have three blocks available on two (geographicly separated) datacenters we want to split the masters across those two dc's to have some kind of loadbalancing.
Without pfsync this can be easily achieved by just configuring the skew a bit higher on the side that we want to keep standby.
While using pfsync though, currently we can only add a carp address to the pfsync master and then that address will be synced to the pfsync-slave and that machine will be slave for that carp address. That is done by pfsync by increasing the chosen Skew with 100 when it goes through the sync.
If we want to configure the pfsync slave machine master for some of the carp addresses we need to disable the virtual addresses sync and then set the skew manually on both pfsense machines. While this is a working solution it would be very nice to have an option in the carp config (I would suggest a checkbox near the base/skew setting) which tells the pfsync config whether he should be master or slave. Alternatively a checkbox could be made that says "ignore/override pfsync" so that you can just set a lower skew on the box prefer to be master.
Files
Updated by Robert Middleswarth almost 11 years ago
I just came to request the same thing. Although I was thinking of a simple check box that said subtrack instead of add 100 during sync. I would think that would be a simple change without having a major impact.
Thanks
Robert
Updated by Chris Buechler about 10 years ago
- Status changed from New to Needs Patch
Updated by Robert Middleswarth almost 10 years ago
- File skew.patch skew.patch added
Attached is a simple fix based on the initial request of giving people the option to disable the syncing of the skew value.
Updated by Robert Middleswarth almost 10 years ago
https://github.com/pfsense/pfsense/pull/1449
My patch was rejected. Looking to see what will be accepted.