From: | Aidan Van Dyk <aidan(at)highrise(dot)ca> |
---|---|
To: | Marko Kreen <markokr(at)gmail(dot)com> |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, Douglas McNaught <doug(at)mcnaught(dot)org>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, David Fetter <david(at)fetter(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Core team statement on replication in PostgreSQL |
Date: | 2008-05-29 16:35:41 |
Message-ID: | 20080529163541.GE27560@yugib.highrise.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-hackers |
* Marko Kreen <markokr(at)gmail(dot)com> [080529 12:27]:
> I don't think thats a problem. If the user runs its server at the
> limit of write-bandwidth, thats its problem.
>
> IOW, with synchronous replication, we _want_ the server to lag behind
> slaves.
>
> About the single-threading problem - afaik, the replay is mostly I/O bound
> so threading would not buy you much.
Right - the problem is that the master has N>1 backends working away,
preloading the modified heap pages into shared buffers, where they are
modified w/ WAL. This means the kernel/controller has man read-requests
in flight at a time as the modifies/writes chug along. The slave has to
read/modify/write every buffer, one at a time, as WAL arrives, meaning
there is ever only 1 IO request in flight at a time.
So the server as a queue of many parallel reads going on, the slave has
a set of sequential random reads going on.
a.
--
Aidan Van Dyk Create like a god,
aidan(at)highrise(dot)ca command like a king,
http://www.highrise.ca/ work like a slave.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-05-29 16:40:14 | Re: Core team statement on replication in PostgreSQL |
Previous Message | Joshua D. Drake | 2008-05-29 16:32:22 | Re: State of PostgreSQL, BOF at OSCON? |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-05-29 16:40:14 | Re: Core team statement on replication in PostgreSQL |
Previous Message | Joshua D. Drake | 2008-05-29 16:29:58 | Re: Core team statement on replication in PostgreSQL |