Relayd sends to disabled hosts
Posted on 2013-01-04
I'm currently using Relayd as a load balancer to a group of web servers. I have it set up to use redirects, as I need to use the sticky-address feature. However, when I disable one of the hosts, any existing connections STILL GO TO THAT HOST even though it's disabled.
I've tried flushing the pf state table, but no luck. I'm guessing that if I took out the sticky-address directive, or moved to using relays instead of redirects it would also work as the sticky-address directive does not apply to relays.
So, is there a way to prevent existing connections from going to a disabled host using relayd? Or is this a bug in relayd/freebsd?
Further, if I need to go to relays vs. redirects, is there a performance hit? With relays, will connections continue to go to the same host automatically unless it's disabled?