From: | David Boreham <david_list(at)boreham(dot)org> |
---|---|
To: | Markus Schiltknecht <markus(at)bluegap(dot)ch> |
Cc: | replica-hooks-discuss(at)pgfoundry(dot)org, José Orlando Pereira <jop(at)lsd(dot)di(dot)uminho(dot)pt>, pgsql-hackers(at)postgresql(dot)org, Alfranio Correia <alfranio(at)lsd(dot)di(dot)uminho(dot)pt> |
Subject: | Re: Integrating Replication into Core |
Date: | 2006-11-26 16:42:41 |
Message-ID: | 4569C401.50902@boreham.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-hackers |
Markus Schiltknecht wrote:
> LOL, I've just figured that netem is the project behind:
>
> tc qdisc ... netem ...
>
> I'm already using that, too ;-) Just wasn't aware it's called netem.
> Sounds silly, since the name is in the command line, I know...
Heh. AFAIK netem is the tc stuff that isn't much use for production
router use (e.g.
introduce a 10ms packet delay on this kind of traffic...). We used a
mixture of
netem and regular tc kernel modules, in a Linux box that had 6 NICs,
with Python
driving it. Each replication node test machine was connected with a
straight-through
patch cable to one of the NICs on the 'spider' machine. The Python could
set up
the netem/tc on the router such that various test scenarios with
different banwidth/delay
values were implemented. Also of course loss of connectivity by dropping
all packets
on an interface. Each test machine had two NICs - the second one
being used to communicate with it out of band from the replication
traffic and
network emulation. Then on top of all this the actual replication tests
were run.
One of the things we were interested in was replication throughput vs
network latency, so we also measured performance and made that being
acceptable a test pass
condition.
If you want really fancy network emulation you'd need to use nistnet.
It can do some things that are not possible with netem (statistical packet
drop for example). However IMHO this is only appropriate for testing
TCP/IP stack implementation. Varying latency, throughput, and
introducing connectivity outages
is good enough for user mode code I believe. Nistnet is not in the stock
kernel,
wheras netem is.
From | Date | Subject | |
---|---|---|---|
Next Message | Jonah H. Harris | 2006-11-26 21:09:20 | Re: Open source databases '60 per cent cheaper' |
Previous Message | Joshua D. Drake | 2006-11-26 04:53:59 | Re: Integrating Replication into Core |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-11-26 16:51:59 | Re: "Optional ident" authentication |
Previous Message | Simon Riggs | 2006-11-26 16:41:32 | Re: [PATCHES] Avg performance for int8/numeric |