<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Georg</id>
		<title>LVSKB - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://kb.linux-vs.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Georg"/>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki/Special:Contributions/Georg"/>
		<updated>2026-04-12T12:31:49Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://kb.linux-vs.org/wiki?title=FAQ&amp;diff=5814</id>
		<title>FAQ</title>
		<link rel="alternate" type="text/html" href="http://kb.linux-vs.org/wiki?title=FAQ&amp;diff=5814"/>
				<updated>2009-11-10T17:10:32Z</updated>
		
		<summary type="html">&lt;p&gt;Georg: /* How to compile ipvsadm on difficult Linux distributions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General ==&lt;br /&gt;
=== What's LVS? ===&lt;br /&gt;
&lt;br /&gt;
[[LVS]] stands for Linux Virtual Server, which is a highly scalable and highly available server built on a cluster of real servers, with the [[load balancer]] running on the Linux operating system. Users interact as if it were a single virtual server.&lt;br /&gt;
&lt;br /&gt;
=== Is LVS software free? ===&lt;br /&gt;
&lt;br /&gt;
Yes! All [[LVS]] software is released under the [http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)].&lt;br /&gt;
&lt;br /&gt;
=== Is there a FreeBSD port of LVS software? ===&lt;br /&gt;
&lt;br /&gt;
Yes, there is a FreeBSD port of IPVS, which supports the [[LVS/DR]] and [[LVS/TUN]] methods now. See [http://dragon.linux-vs.org/~dragonfly/htm/lvs_freebsd.htm the LVS On FreeBSD page] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Does LVS cluster support Linux servers only? ===&lt;br /&gt;
&lt;br /&gt;
No, real servers can almost run any operating systems in a LVS cluster, such as Linux, BSDs, Solaris, and Windows. [[LVS/NAT]] balances servers of the operating systems having TCP/IP support, [[LVS/TUN]] requires servers having IP Tunneling protocol, and [[LVS/DR]] requires servers having a non-arp device. Almost all the modern operating systems support non-arp device.&lt;br /&gt;
&lt;br /&gt;
== Performance ==&lt;br /&gt;
&lt;br /&gt;
=== How is the concurrent processing performance of current LVS software? ===&lt;br /&gt;
&lt;br /&gt;
The ultimate performance of LVS depends on hardware that LVS runs on. An ordinary box with a single Pentium III processor and 100Mbps NIC card running [[LVS/DR]] can handle about 10,000 connections per second for web service. We have heard that a powerful box with good hardware and kernel tuning achieved 50,000 connections per second.&lt;br /&gt;
&lt;br /&gt;
=== Can LVS handle more than 1 million simultaneous connections? ===&lt;br /&gt;
&lt;br /&gt;
Yes, LVS can handle much more than 1 million simultaneous connections. One connection just costs 128 bytes in the LVS box, so an LVS box with 1G memory can handle more than 8 million simultaneous connections.&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
=== Is there a quick guide to setup LVS ===&lt;br /&gt;
&lt;br /&gt;
Yes, please check the article [[Mini Mini Howto]], which covers setting up LVS quickly on Linux distributions of Fedora Core 4 or later.&lt;br /&gt;
&lt;br /&gt;
=== How do I check to see if my kernel has IPVS enabled? ===&lt;br /&gt;
&lt;br /&gt;
Try to run &amp;lt;tt&amp;gt;&amp;quot;modprobe ip_vs&amp;quot;&amp;lt;/tt&amp;gt; and try to see if there is &amp;lt;tt&amp;gt;/proc/net/ip_vs&amp;lt;/tt&amp;gt;. If so, your kernel has [[IPVS]] enabled. You can also run &amp;lt;tt&amp;gt;&amp;quot;cat /proc/net/ip_vs&amp;quot;&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;&amp;quot;ipvsadm -Ln&amp;quot;&amp;lt;/tt&amp;gt; to see the version number of [[IPVS]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@lb4 root]# ipvsadm -Ln&lt;br /&gt;
IP Virtual Server version 1.0.11 (size=65536)&lt;br /&gt;
Prot LocalAddress:Port Scheduler Flags&lt;br /&gt;
  -&amp;gt; RemoteAddress:Port           Forward Weight ActiveConn InActConn&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could also check your current kernel config (&amp;lt;tt&amp;gt;/proc/config{.gz}&amp;lt;/tt&amp;gt; or somewhere in &amp;lt;tt&amp;gt;/boot&amp;lt;/tt&amp;gt;) if &amp;lt;tt&amp;gt;CONFIG_IP_VS&amp;lt;/tt&amp;gt; is set (located under &amp;lt;tt&amp;gt;Networking support-&amp;gt;Networking options-&amp;gt;Netfilter&amp;lt;/tt&amp;gt; when using &amp;lt;tt&amp;gt;make menuconfig&amp;lt;/tt&amp;gt; to configure your kernel).&lt;br /&gt;
&lt;br /&gt;
=== How to compile ipvsadm on different Linux distributions ===&lt;br /&gt;
&lt;br /&gt;
[[Ipvsadm]] is the tool to set up, maintain or inspect the [[IPVS]] table in the Linux kernel. See the article [[compiling ipvsadm on different Linux distributions]] for detailed information.&lt;br /&gt;
&lt;br /&gt;
== Statistics ==&lt;br /&gt;
&lt;br /&gt;
=== How do i get counters from ipvsadm in order to create graphs from? ===&lt;br /&gt;
&lt;br /&gt;
'''Answer 1:'''&lt;br /&gt;
&lt;br /&gt;
The current kernel 2.6 version of ipvsadm (v1.24) supports&lt;br /&gt;
 ipvsadm --list --stats --numeric --exact&lt;br /&gt;
which gives you non-human-readable counters for Connections, Packets and Bytes for each Service Address and Realserver.&lt;br /&gt;
&lt;br /&gt;
'''Answer 2:'''&lt;br /&gt;
&lt;br /&gt;
Install [http://oss.oetiker.ch/rrdtool/ RRDtool] and preferabely [http://www.cacti.net/ Cacti] onto a host of your choice. From your favorite Linux distribution, install the [http://www.net-snmp.org/ Net-SNMP daemon] onto the Loadbalancer host. Apply the [[Net-SNMP-LVS-Module]] to the Net-SNMP daemon. Using RRDtool and/or cacti you may query the Loadbalancer and create all kind of graphs using the statistics the Loadbalancers IPVS-module delivers.&lt;br /&gt;
&lt;br /&gt;
[[Category:LVS Handbook]]&lt;/div&gt;</summary>
		<author><name>Georg</name></author>	</entry>

	</feed>