OpenVZ Forum


Home » General » Support » Network Performance
Network Performance [message #328] Sat, 12 November 2005 05:30 Go to next message
tbenoit is currently offline  tbenoit
Messages: 10
Registered: November 2005
Junior Member
I've just started playing with OpenVZ in a network heavy environment.

The server and OpenVPS OS: CentOS v4

Our sole use of OpenVZ is to provide a way to more easily "failover" services from one physical server to another. 99%+ of the time each physical server will only be running one VPS. The only time a physical server will be running 2 VPSes is if there is an issue with 1 physical server such that it won't be fixed in a short period of time.

I did obtain a price quote for Virtuozzo to do just this, but the cost unfortunately drastically outweighed our only reason for using it (to provide a manual cluster-style config).

Unfortunately, we don't have a way to heavily test the true performance of OpenVZ in this situation without placing real load on the server.

Does anyone know of any network performance issues with using OpenVZ?

The application hosted relies on low-latency, with potentially 3000 (give or take a few) simultaneous connections.

Being that each physical server will only host a max of 2 VPSes (and only if one physical server is basically dead), I has OpenVZ create a config file as such:

vzsplit -n 2 -f filename

Here are the config parameters that (I believe) deal with networking:

TCPSNDBUF="12201847:28585847"
TCPRCVBUF="12201847:28585847"
OTHERSOCKBUF="6100923:22484923"



I'd appreciate any thoughts about network performance under OpenVZ and any comments on the settings I posted (or forgot to post) that will help ensure network performance.



Thanks
Re: Network Performance [message #332 is a reply to message #328] Sun, 13 November 2005 21:55 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

tbenoit,
if both VPSs are trusted, then I would recommend to increase TCP/other buffer limits. Doing so you make your VPSs behave more and more like a usual Linux system. So it's performance is close to standalone Linux server.
We usually test network performance to be sure that virtualization overhead is negligable.


http://static.openvz.org/userbars/openvz-developer.png
Re: Network Performance [message #333 is a reply to message #332] Sun, 13 November 2005 22:56 Go to previous messageGo to next message
tbenoit is currently offline  tbenoit
Messages: 10
Registered: November 2005
Junior Member
dev wrote on Sun, 13 November 2005 15:55

tbenoit,
if both VPSs are trusted, then I would recommend to increase TCP/other buffer limits. Doing so you make your VPSs behave more and more like a usual Linux system. So it's performance is close to standalone Linux server.
We usually test network performance to be sure that virtualization overhead is negligable.



Thanks for the reply.

Yes, both VPSs are trusted. In fact, most of the time only a single VPS will be running on a host node at any given time. The only time a host node will have 2 VPSs is if a primary host node dies and we bring up its VPS on its backup host name until its primary is fixed.

What would you recommend the settings be for the highest network performance of the VPSs (100mbps switch port connected)? I'm not worries about CPU/RAM usage. A "full" server today only eats up to 25% CPU and 25% RAM. It's mainly a network resource hog Smile



Thanks
Re: Network Performance [message #337 is a reply to message #333] Mon, 14 November 2005 10:46 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
These parameters can be changed without VPS restart, so, I recommend to set params up to mentioned values x 2, and decrease them only when two VPSs will be run on the node.

About network performance. All our kernels are tested and shows very close to native network performance even on high number of VPSs. For example, on 400 VPSs latency of http replies of static or simple dynamic pages through 100Mb Ethernet less than 0.1 sec.
You can easily measure network performance yourself by means http_load tool.


http://static.openvz.org/openvz_userbar_en.gif
Re: Network Performance [message #338 is a reply to message #328] Mon, 14 November 2005 13:50 Go to previous message
tbenoit is currently offline  tbenoit
Messages: 10
Registered: November 2005
Junior Member
I have doubled the 3 variables you recommended (noting their original settings for when a failover situation occurs).

Too bad this isn't a web server, otherwise I'd run the http_load utility you linked. Smile

Many thanks for your replies. I do appreciate the assistance.


Thanks
Previous Topic: Specyfiing a mac address for vz interface
Next Topic: debian sarge
Goto Forum:
  


Current Time: Sun Oct 06 06:02:36 GMT 2024

Total time taken to generate the page: 0.05468 seconds