Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaHGn-0003W7-JX for pgsql-admin@arkaria.postgresql.org; Fri, 21 Dec 2018 09:39:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gaHGk-00021F-9g for pgsql-admin@arkaria.postgresql.org; Fri, 21 Dec 2018 09:38:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaFml-00057W-Er for pgsql-admin@lists.postgresql.org; Fri, 21 Dec 2018 08:03:55 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gaFmd-0005rF-Q1 for pgsql-admin@lists.postgresql.org; Fri, 21 Dec 2018 08:03:53 +0000 Received: by mail-pl1-x636.google.com with SMTP id u18so2150417plq.7 for ; Fri, 21 Dec 2018 00:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abhinavmehta-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=yDTAoA5rLZkegbvooAUFoAM6pdZwcIk1SGsx/69k304=; b=1UkOwCEN8s1fiJfJ4RfOOhv7CnU3IOGSfwkuVhnlMv2QJYvmviTzuffV1xPLLGt3Pu Llaj012hGN40PkTV8hUTOlPFnzrWNdokcHhH5V3QJxrYAli1n+sa8at3cr7YlRoo3h9h mv+556QKIkAs6k2hErxzxae4185nhDGCUA85eppRWXE5f9XHQ21XoNUIckpYN9pah6SI ZQ3Wp5zhQdokESEG6B3iVZrWROYGSwd0QssSPgEgyjUfpo9E+66JM/11Zeb0PhBd6LOU Y73eLRLCCHoC5KCVH+aVQeM7pImzNwVqTIaOZ/wNNt72DYQAgZITMKpiw9hgSF9wjisX XKeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=yDTAoA5rLZkegbvooAUFoAM6pdZwcIk1SGsx/69k304=; b=Od4zyqJoiH5vLSQf+005PvYgfIOi9TPO33wjaTWC8+JUagxJTtWwNOhe5lRbCACH15 Vq0XVSZxBTBBlT0OGnS4RL7UDQbSiT5NxirW+M8qIouy8PPc/3ZX2qtSzGGpPV5tqath 3sx9c2iH8Qm8+mswsT7YA9XJhcCr3B/OGClfr3uzBBY37BJZ6M2xn7/qf6SJLiE4Eju0 KLd2bxv2UcsVfmAbHPdd//8nYiEXiOmOia1PlxXeVRaEwQZBoqY4tPEYWGCVA1Uf2uyU MKWrrdP0genH331hoHfhh7HVKl44kun1Rmbt90AdgBOsBf0smA639RiD9XDinokFuOIm GEiA== X-Gm-Message-State: AJcUukdfMPlA8tr9FpamajJ6h6+H3i40qF8TvrfEiVfrmIPjr7wujord poGS824nqaCtcx79fLQPQakf9Q== X-Google-Smtp-Source: ALg8bN6FHc1s82ZQrcxlybfHOL05aS/Xn/AdZdGR6C4ByRJyb0y4RHFoQZwH6E0mrGBozUEuSh4f7A== X-Received: by 2002:a17:902:29a7:: with SMTP id h36mr1539134plb.244.1545379426419; Fri, 21 Dec 2018 00:03:46 -0800 (PST) Received: from [10.8.0.2] (144.179.200.35.bc.googleusercontent.com. [35.200.179.144]) by smtp.gmail.com with ESMTPSA id m20sm26946027pgv.93.2018.12.21.00.03.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Dec 2018 00:03:45 -0800 (PST) From: Abhinav Mehta Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_BC9A63C0-9521-44B9-9EB1-18203E90CDC7" Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: Multi master implementation Date: Fri, 21 Dec 2018 13:33:40 +0530 In-Reply-To: Cc: soumitra bhandary , "pgsql-admin@lists.postgresql.org" To: Prince Pathria References: X-Mailer: Apple Mail (2.3445.100.39) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_BC9A63C0-9521-44B9-9EB1-18203E90CDC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Try Citus. > On 21-Dec-2018, at 12:43 PM, Prince Pathria = wrote: >=20 > Thanks Soumitra, Postgres-XC isn't getting any updates since 2015. = Don't know where it might get fail. I've also considered Postgres-XL = which is in active development state. But ver. 10 is very new to be used = for production. >=20 > Curious to know how others are implementing multi master = architecture!! >=20 > Prince Pathria > Systems Architect Intern > Evive > +91 9478670472 > goevive.com >=20 >=20 > On Thu, Dec 20, 2018 at 11:40 PM soumitra bhandary = > = wrote: > Well Prince , I have never worked with multiple master to be working = in master slave replication . As you mentioned you have configured auto = failover is this using EFM ? If you are using EFM then it won=E2=80=99t = support multiple master in the cluster . I have worked with BDR where = all nodes are worked as Master node but as you know it has downside as = well .=20 >=20 > Coming to your application operation , you can segregate all read = request to be diverted to the slave nodes , may be to one synchronous = node and all write operation to be diverted only in Master node. In tis = manner your application should be able to share read and write load . = Anyways that you would be the best person to take a call on this = depending on your application .=20 >=20 > For multi master replication you can go through below link if that = helps you out subjected to the implementation and compatibility with = your application process . If any other member in this group has any = experience with multiple master with multi slave replication (apart = from BDR) configuration > experience , please share the same . >=20 > https://wiki.postgresql.org/wiki/Postgres-XC = >=20 > Thanks=20 > Soumitra=20 >=20 >=20 >=20 >=20 >> On 20-Dec-2018, at 12:21 PM, Prince Pathria = > wrote: >>=20 >> Hi Soumitra, >>=20 >> Sorry, please consider it as another site instead of DR. >>=20 >> Or if I want multiple masters in main site only i.e. = [2masters+3slaves]. How should I implement that? >>=20 >> Our devs are planning to push applications that might have a lot of = write operations. If I say read to write ratio, [65% reads]:[35% = writes]. I do have automatic failover configured[in single master arch] = but don't want that postgres crashes due to unable to handle writes = since writes contains complex queries and blobs as well which makes them = heavy. App code change isn't an option for me. >>=20 >> Need your suggestions please! >>=20 >> Happy to help :) >> Prince Pathria Systems Architect Intern Evive +91 9478670472 >> goevive.com >>=20 >>=20 >> On Thu, Dec 20, 2018 at 7:30 AM soumitra bhandary = > = wrote: >> Hi Prince, >>=20 >> BDR is something which is not that much robust as conventional master = slave replication.=20 >>=20 >> Why do you want master node in DR set up ? >> Do you want to enable simultaneous write operations at DR site as = well?? Normally DR setups remain in cascade replication from one of the = stand by node at production side . >>=20 >> Sent from my iPhone >>=20 >> On 19-Dec-2018, at 11:55 PM, Prince Pathria = > wrote: >>=20 >>> Hi, >>>=20 >>> I want to how people are implementing multi master architecture in = Postgres. For now, I've come across BDR3 and bucardo for multimaster = approach. >>>=20 >>> Though both doesn't seem to be much promising to me.=20 >>>=20 >>> Goal: 2 master and their 3 slaves. [1 master + 2 slaves] in = production site and [1 master + 1 slave] >>> in DR site.=20 >>>=20 >>> Can you guys share how you did it and what issues did you faced? >>>=20 >>> Thanks in advance! >>>=20 >>> Happy to help :) >>> Prince Pathria Systems Architect Intern Evive +91 9478670472 >>> goevive.com >=20 --Apple-Mail=_BC9A63C0-9521-44B9-9EB1-18203E90CDC7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Try = Citus.

On 21-Dec-2018, at 12:43 PM, Prince Pathria = <prince.pathria@goevive.com> wrote:

Thanks Soumitra, Postgres-XC = isn't getting any updates since 2015. Don't know where it might get = fail. I've also considered Postgres-XL which is in active development = state. But ver. 10 is very new to be used for production.

Curious to know how = others are implementing multi master architecture!!

Prince Pathria
Systems Architect Intern Evive +91 9478670472 goevive.com


On Thu, Dec 20, 2018 at 11:40 PM = soumitra bhandary <soumitra.bhandary@hotmail.com> wrote:
Well Prince , I have never worked with multiple master to be working in = master slave replication . As you mentioned you have configured auto = failover is this using EFM ? If you are using EFM then it won=E2=80=99t = support multiple master in the cluster . I have worked with BDR where all nodes are worked as Master node but as you know it = has downside as well . 

Coming to your application operation , you can segregate = all read request to be diverted to the slave nodes , may be to one = synchronous node and all write operation to be diverted only in Master = node. In tis manner your application should be able to share read and write load . Anyways that you would be the best = person to take  a call on this depending on your application = . 

For multi master replication you can go through below = link if that helps you out subjected to the implementation and = compatibility with your application process . If any other member in = this group has any experience with multiple master with  multi slave replication (apart from BDR) configuration experience , please share the same .


Thanks 
Soumitra 




On 20-Dec-2018, at 12:21 PM, Prince Pathria <prince.pathria@goevive.com> wrote:

Hi Soumitra,

Sorry, please consider it as another site instead of = DR.

Or if I want multiple masters in main site only i.e. = [2masters+3slaves]. How should I implement that?

Our devs are planning to push applications that might = have a lot of write operations. If I say read to write ratio, [65% = reads]:[35% writes]. I do have automatic failover configured[in single = master arch] but don't want that postgres crashes due to unable to handle writes since writes contains complex queries and = blobs as well which makes them heavy. App code change isn't an option = for me.

Need your suggestions please!

Happy to help :)
Prince = Pathria Systems Architect Intern Evive +91 9478670472 goevive.com


On Thu, Dec 20, 2018 at 7:30 AM soumitra = bhandary <soumitra.bhandary@hotmail.com> = wrote:
Hi Prince,

BDR is something which is not that much robust as = conventional master slave replication. 

Why do you want master node in DR set up ?
Do you want to enable simultaneous write operations at = DR site as well?? Normally DR setups remain in cascade replication from = one of the stand by node at production side .

Sent from my iPhone

On 19-Dec-2018, at 11:55 PM, Prince Pathria <prince.pathria@goevive.com> wrote:

Hi,

I want to how people are implementing multi master = architecture in Postgres. For now, I've come across BDR3 and bucardo for = multimaster approach.

Though both doesn't seem to be much promising to = me. 

Goal: 2 master and their 3 slaves. [1 master + 2 = slaves] in production site and [1 master + 1 slave]
 in DR site. 

Can you guys share how you did it and what issues did = you faced?

Thanks in advance!

Happy to help :)
Prince = Pathria Systems Architect Intern Evive +91 9478670472 goevive.com


= --Apple-Mail=_BC9A63C0-9521-44B9-9EB1-18203E90CDC7--