|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
CARP active/active configuration works with icmp but not with http
Hi,
i want to setup a carp loadbalancing with 2 webservers. The VIP Address is reachable via icmp i have checked this with tcpdump but if i check http always the webside of host b will be displayed and after 5 or 6 trys its take long until the page is displayed. Whats my fault? here is my current config Code:
#Host A ifconfig inet 192.168.10.10/32 route add 192.168.10.1 -llinfo -link -iface re0 route add default 192.168.10.1 ifconfig carp0 10.10.10.10/32 carpdev re0 carpnodes 1:0,2:100 balancing ip-stealth sysctl net.inet.carp.preempt=1 #Host B ifconfig inet 192.168.10.11/32 route add 192.168.10.1 -llinfo -link -iface re0 route add default 192.168.10.1 ifconfig carp0 10.10.10.10/32 carpdev re0 carpnodes 1:100,2:0 balancing ip-stealth sysctl net.inet.carp.preempt=1 |
|
|||
Quote:
i have also tried a simpler setup for testing but the problem is still present. Master/Backup config make no problems but i need Master/Master in force for Loadbalancing. Simpler /24 Test config Code:
#Host A ifconfig inet 192.168.10.10/24 route add default 192.168.10.1 ifconfig carp0 192.168.10.12/24 carpdev re0 carpnodes 1:0,2:100 balancing ip-stealth sysctl net.inet.carp.preempt=1 #Host B ifconfig inet 192.168.10.11/24 route add default 192.168.10.1 ifconfig carp0 192.168.10.12/24 carpdev re0 carpnodes 1:100,2:0 balancing ip-stealth sysctl net.inet.carp.preempt=1 |
|
||||
I see you've also posted the question on Reddit, where you will likely get more folks with carp(4) experience. I've never tested load balancing. All I know is that there are three balancing modes, and the choice between the modes depends on the admin's network environment and its capabilities.
|
|
|||
Quote:
yes i have posted this question on other platforms too . Because its heavy to find help for this problem. I hope i find a solution in anyway. |
|
|||
An alternative method for load balancing is relayd.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
In final setup i want to have 2 reverse proxy balanced with carp. With relayd only i have a single point of failure. But thanks for you help.
|
Tags |
active/active, balancing, carp |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OmniTI will be suspending active development of OmniOS. | Maxnix | News | 0 | 25th April 2017 10:31 AM |
freenas, vpnc, active directory labyrinth | aschmidt | OpenBSD General | 0 | 14th June 2011 03:23 AM |
Active Directory Authentication | ComputerErik | OpenBSD General | 3 | 20th May 2011 03:21 AM |
Copy w/ active verification | Weaseal | FreeBSD General | 4 | 5th February 2009 12:23 AM |
USB keyboard/mouse not active after boot | teig | FreeBSD General | 9 | 27th October 2008 04:20 PM |