WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Stability of XEN under high load

To: "'Thomas Goirand'" <thomas@xxxxxxxxxx>
Subject: RE: [Xen-users] Stability of XEN under high load
From: "Venefax" <venefax@xxxxxxxxx>
Date: Mon, 1 Dec 2008 07:07:39 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 01 Dec 2008 04:09:58 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language :x-cr-hashedpuzzle:x-cr-puzzleid; bh=cA1pv/NPIiGCAQn/hJcC8tN1AwtyAYIVvt4A15QnKrg=; b=eOGQDRO9jtXahkPAb/9xxG2eGTmBKKGjA1l1hNNXS7IybQ2CtmmZVGZ86ZnoR6gSJx buzsmXVvQ69sM8rcobYtx1s0qo3NHhRLv9OniA24qr58j4FuhnvPojW2brc6V678gCxC 3bARzi/voPCXwjcf+oxKHlEvVjiC3eCZvWjiw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language:x-cr-hashedpuzzle:x-cr-puzzleid; b=Es16y68Zd878hthf9Wj76ybtm202k9KaR1nna+ZUX2cIS0oJlMVAXKaxSKdjQ7aInQ 3Aje9LaCSyveufa7J50q03KMw85XDPjXE+9gE5sQRWub3AZWey1XNYM7vCkpv8yc/7dR htgJAm1eXc9M2yLBoy3ysxfNbsg4lc+JrK8vI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4933CD4E.7080402@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <C2CAA0B30689D143B1693BA1A7D7DC7E426F6C@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <6ad503dc0811301303m63e75472uc189bceeb24a2fb3@xxxxxxxxxxxxxx> <4933CD4E.7080402@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclTqcSdQOx0sNtEQaiYerb8qoU7+AAA4FYQ
I get all these errors when I run the script. I named it "refresh.py". It is
located in /root. Am I wrong?

linux-tlxs:~ # ./refresh.py
Traceback (most recent call last):
  File "./refresh.py", line 25, in ?
    returncodes = ( proc.wait() for proc in list(procs) )
  File "./refresh.py", line 23, in <generator expression>
    procs =
(subprocess.Popen(["ping",ip,"-c","1"],stdin=devnull,stdout=devnull,stderr=d
evnull)
  File "./refresh.py", line 17, in ips
    matches = regexp.findall("\n".join(list(contents)))
  File "./refresh.py", line 14, in <generator expression>
    contents = ( file(t).read(-1) for t in files )
IOError: [Errno 21] Is a directory

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Thomas Goirand
Sent: Monday, December 01, 2008 6:41 AM
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Stability of XEN under high load

> On Sun, Nov 30, 2008 at 12:13 AM, Bernd Gotschy
> <Bernd.Gotschy@xxxxxxxxxxxxxx <mailto:Bernd.Gotschy@xxxxxxxxxxxxxx>>
wrote:
>     Major problem is  that under high load we loose some of the network
>     interfaces and cannot get them working unless we reboot the guest.

We have find out quite the opposite way. If one of the VM has no
activity, the ARP vs IP cache of most switch will discard the MAC of the
VMs. So we have made a very simple python script that we deploy on all
of our Xen servers, that simply does a ping of all VMs it finds in the
/etc/xen/auto folder. This way, the ARP cache gets refreshed, and
everything is working fine. Maybe this is what you are experiencing, no?
Anyway, bellow is the script, I hope that helps (take care, the procs =
line might appear on 2 lines as I didn't do an attachment).

Thomas

#!/usr/bin/env python

import glob
import re
import subprocess
import os
import sys

pathspec = "/etc/xen/auto/*"
regexp = re.compile(r"vif.*?=.*?ip=([0-9\. ]+)'")

files = glob.glob(pathspec)

contents = ( file(t).read(-1) for t in files )

def ips(contents):
        matches = regexp.findall("\n".join(list(contents)))
        for match in matches:
                mips = match.split(" ")
                for ip in mips: yield ip

devnull = file("/dev/null","w")
procs = (
subprocess.Popen(["ping",ip,"-c","1"],stdin=devnull,stdout=devnull,stderr=de
vnull)
for ip in ips(contents) )

returncodes = ( proc.wait() for proc in list(procs) )

sys.exit(sum(returncodes))


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users