Merge a sharded master into a single read-only slave

From: Sébastien Lorion <sl(at)thestrangefactory(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Merge a sharded master into a single read-only slave
Date: 2014-05-29 16:58:04
Message-ID: CAGa5y0PmQdgTkYOutA=UyeCFpr0FHj7bEUmOrbigBCCY=0DXyg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a master database sharded by user_id, with globally unique IDs for
everything, except shared configuration data stored in global tables
(resources strings, system parameters, etc).

What would be the best (ie both fast and reliable, simple to maintain as a
bonus) to merge all shards into a single read-only slave that will then be
replicated and used for read queries ? I took a look at Londiste and
repmgr, and can see some ways to accomplish that, but would appreciate the
advice of people here.

Thank you,

Sébastien

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andres Freund 2014-05-29 18:02:15 Re: Backups over slave instead master?
Previous Message Jerry Sievers 2014-05-29 16:40:51 Re: Postgresql 9.2.4 - timezone error