DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd February 2024
divaky divaky is offline
New User
 
Join Date: Feb 2024
Posts: 4
Default 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
Reply With Quote
  #2   (View Single Post)  
Old 2nd February 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

Hello, and welcome!

One thing I notice in your configuration is the use of /32 subnets. I use carp(4) with a single shared /24 subnet: one host using 10.0.1.254/24, the other, 10.0.1.253/24, and the shared-address carp(4) NIC assigned to 10.0.1.1/24. My configuration is master/backup, rather than load balancing.
Reply With Quote
  #3   (View Single Post)  
Old 2nd February 2024
divaky divaky is offline
New User
 
Join Date: Feb 2024
Posts: 4
Default

Quote:
Originally Posted by jggimi View Post
Hello, and welcome!

One thing I notice in your configuration is the use of /32 subnets. I use carp(4) with a single shared /24 subnet: one host using 10.0.1.254/24, the other, 10.0.1.253/24, and the shared-address carp(4) NIC assigned to 10.0.1.1/24. My configuration is master/backup, rather than load balancing.
Hi,

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
Reply With Quote
  #4   (View Single Post)  
Old 2nd February 2024
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,052
Default

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.
Reply With Quote
  #5   (View Single Post)  
Old 2nd February 2024
divaky divaky is offline
New User
 
Join Date: Feb 2024
Posts: 4
Default

Quote:
Originally Posted by jggimi View Post
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.
Hi,

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.
Reply With Quote
  #6   (View Single Post)  
Old 2nd February 2024
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,167
Default

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
Reply With Quote
  #7   (View Single Post)  
Old 7th February 2024
divaky divaky is offline
New User
 
Join Date: Feb 2024
Posts: 4
Default

Quote:
Originally Posted by J65nko View Post
An alternative method for load balancing is relayd.
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.
Reply With Quote
Reply

Tags
active/active, balancing, carp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick