diff options
author | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2011-04-08 16:49:25 +0100 |
---|---|---|
committer | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2011-04-08 16:49:25 +0100 |
commit | 5bb2e121f00edec606c077b15c3bb721cc47bc41 (patch) | |
tree | 8c81a40a307d205ebeb1b7617a5963ee03bb6884 /tools/python | |
parent | d732509e34bc6278ec2d050808f8de15e5872c4d (diff) | |
download | xen-5bb2e121f00edec606c077b15c3bb721cc47bc41.tar.gz xen-5bb2e121f00edec606c077b15c3bb721cc47bc41.tar.bz2 xen-5bb2e121f00edec606c077b15c3bb721cc47bc41.zip |
remus: blackhole replication target
The new --null option allows one to test and play with just the
memory checkpointing and network buffering aspect of remus, without
the need for a second host. The disk is not replicated. All replication
data is sent to /dev/null. This option is pretty handy when a user
wants to see the page churn for his workload or observe the latency hit
though the latter will not be accurate.
Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python')
-rw-r--r-- | tools/python/xen/remus/save.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/python/xen/remus/save.py b/tools/python/xen/remus/save.py index 9858aec571..0c86eeb55f 100644 --- a/tools/python/xen/remus/save.py +++ b/tools/python/xen/remus/save.py @@ -95,6 +95,12 @@ class MigrationSocket(_proxy): self.sock = sock super(MigrationSocket, self).__init__(fd) +class NullSocket(_proxy): + def __init__(self, address): + filedesc = os.open('/dev/null', 0666) + fd = os.fdopen(filedesc, 'w+') + super(NullSocket, self).__init__(fd) + class Keepalive(object): "Call a keepalive method at intervals" def __init__(self, method, interval=0.1): |