fair(7) BSD Miscellaneous Information Manual fair(7)NAME
fair -- simple TCP load balancing service
DESCRIPTION
fair is a load balancer for TCP connections. It can be used to distribute incoming connections for SMTP, HTTP or any other TCP service to
multiple hosts, distributing the load as evenly as possible.
fair consists of two daemons. The carrousel is the front-end; it keeps track of back-end hosts and their status, and forwards incoming con-
nections to the back-ends in such a way that the load is distributed fairly. The transponder runs on the back-end hosts, it registers with
the carrousel and sends it status information. The TCP connections forwarded by the carrousel are not sent to the transponder daemons but
are sent directly to the desired service running on the back-end host. Both daemons share a single configuration file.
EXAMPLES
The following example shows how to set up fair to service HTTP connections and to distribute them over back-ends in the 192.168.1.0/24 sub-
net.
The configuration file /etc/fair.conf contains the following:
WorkerService = http
BalancerService = http
AllowUDP = ^192.168.1.[0-9]+$
On www.example.com, the front-end server receiving the incoming HTTP connections, just run:
carrousel
On each of the back-ends run:
transponder www.example.com
SEE ALSO carrousel(8), transponder(8), fair.conf(5)Debian GNU/Linux June 1, 2019 Debian GNU/Linux
Check Out this Related Man Page
TCPDROP(8) BSD System Manager's Manual TCPDROP(8)NAME
tcpdrop -- drop TCP connections
SYNOPSIS
tcpdrop local-address local-port foreign-address foreign-port
tcpdrop [-l] -a
DESCRIPTION
The tcpdrop command may be used to drop TCP connections from the command line.
If -a is specified then tcpdrop will attempt to drop all active connections. The -l flag may be given to list the tcpdrop invocation to drop
all active connections one at a time.
If -a is not specified then only the connection between the given local address local-address, port local-port, and the foreign address
foreign-address, port foreign-port, will be dropped.
Addresses and ports may be specified by name or numeric value. Both IPv4 and IPv6 address formats are supported.
The addresses and ports may be separated by periods or colons instead of spaces.
EXIT STATUS
The tcpdrop utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
If a connection to httpd(8) is causing congestion on a network link, one can drop the TCP session in charge:
# sockstat -c | grep httpd
www httpd 16525 3 tcp4
192.168.5.41:80 192.168.5.1:26747
The following command will drop the connection:
# tcpdrop 192.168.5.41 80 192.168.5.1 26747
The following command will drop all connections but those to or from port 22, the port used by sshd(8):
# tcpdrop -l -a | grep -vw 22 | sh
SEE ALSO netstat(1), sockstat(1)AUTHORS
Markus Friedl <markus@openbsd.org>
Juli Mallett <jmallett@FreeBSD.org>
BSD January 30, 2013 BSD
Assignment:
---------------
A particular distributed service is envisaged for implementation by means of a program which will run on each of the hosts on which the service is to be available.
This program is divided conceptually into the application and the protocol entity (PE). The task of... (1 Reply)
I have two computers running red hat, but when i use telnet command in a shell from one to another, it works. but from the other , it does not, it said: refused. i sent the security for incoming connecting, but it still not work . anyone have experience ?
thanks
vh (1 Reply)
Hi Guys,
Just wondering if anyone of you have been in a situation where you end up having around 100 close_wait connections and seems to me those connections are locking up resources/processes in the server so unless the server is rebooted those processes won't be released by the close_wait... (3 Replies)
We are looking at running MPIO for it's redundancy and load balancing benefits. Does anyone know what pieces of software or modules are needed on the VIO server to get load balancing to work. Remember we are using EMC's DMX3500 storage system. We no longer want to use Powerpath. :rolleyes: ... (2 Replies)
hey guys
Do you guys know of a good way that I can combine and load balance my 2 Internet connections using a Linux or Bsd box? Would LVS be able to do this?
Thanks in advance (1 Reply)
Hi Experts,
need help about release or refresh TCP Connection:
i have the sample like below :
application log connection:
0500 ( 192.168.0.1:36053) 00919 2007/05/10 23:30:25 112 13 2007/05/10 23:30:25 1969/12/31 17:00:00
0500 ( 192.168.0.1:36054) 00920 2007/05/10 23:30:26 000 00... (3 Replies)
Hi
I have a question related to load balancing.I have two separate internet connections with 2Mbps speed and i would like to aggregate this two connections intro one connection with 4Mbps.Is it possible to do that, to put a Linux or Unix machine as a gateway?I read some stuff to split the... (3 Replies)
In a college's internet laboratory:
1. Network has 2 different ISP net-connections.
2. I want the both net-connections to be available to all clients.
3. My Linux-server has 3 LAN cards:
eth0 : connected to ISP1
eth1 : connected to ISP2
eth2 : I want to to... (2 Replies)
Hi,
I have a log file created from a load balancer showing connections to each member of a two member pool with the following format (where first field is source IP, second field is load balanced IP address and third field is destination member. I need to plot a graph by date/time and number of... (5 Replies)
Im configuring centos with load balance with ip route and ip rule
Eth0 192.168.1.5
Eth1 192.168.5.128
# ip route
192.168.5.0/24 dev eth1 scope link src 192.168.5.128
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
169.254.0.0/16 dev eth1 scope link
# ip route show... (2 Replies)
Hi
I'm adding http 1.1 GET to my project and trying to use “Keep-Alive” HTTP connections to the host, The problem is when I recv() the first page, it succeeds. However, the 2nd consecutive recv() will receive zero bytes, for which I really have no idea. As per HTTP 1.1 I have Connection: ... (6 Replies)
I don't know how to start this but here goes.
I've been "using" Linux for over 10 years, possibly more and I still feel like I'm nowhere
where I should be. I'll be fair most of my time was spent either figuring out how
to run games on *nix at the time but as I got older and "wiser" I... (8 Replies)