<div dir="ltr">Hello All,<div><br></div><div>I am trying to set up pgpool watchdogging functionality. In log pgpool complains: "wd_chk_setuid: ifup[/sbin/ifconfig] doesn't have setuid bit". My pgpool is run by pgpoolAdmin, therefore by user "www-data" (apache). What is the best way to solve this?</div>
<div><br></div><div>Also I get "wd_create_hb_send_socket: setsockopt(SO_BINDTODEVICE) requies root privilege". Apparently it does not work very well from pgpoolAdmin. Is there a nice and neat way to solve this?<br>
<br>Thanks,</div><div>Gintas</div>























</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 6, 2014 at 7:36 AM, Gintautas Sulskus <span dir="ltr"><<a href="mailto:gingaz@gmail.com" target="_blank">gingaz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you Tatsuo. That pretty much sums up the situation.<div><br></div><div>Gintas<br><div><br></div></div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 12:30 AM, Tatsuo Ishii <span dir="ltr"><<a href="mailto:ishii@postgresql.org" target="_blank">ishii@postgresql.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I don't think it's possible because of PostgreSQL's limitation:<br>
<br>
In streaming replication, no standby server accepts DMLs in the first<br>
place.<br>
<div><br>
>>  *   synchronous replication:<br>
>>     *   If DML query relates to any of the table from that list, then<br>
>> pgpool would use synchronous replication - send DML to all DBs;<br>
<br>
</div>So this part is not possible.<br>
<div><br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese: <a href="http://www.sraoss.co.jp" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
</div><div><div>> We were considering the option to implement this functionality. Do you<br>
> think such configuration (my previous mail) is feasible on top of the<br>
> current pgool code base? Would be it difficult to implement?<br>
><br>
> Cheers,<br>
> Gintas<br>
><br>
><br>
> On Mon, Feb 3, 2014 at 1:33 PM, Lazaro Ruben Garcia Martinez <<br>
> <a href="mailto:lgarciam@vnz.uci.cu" target="_blank">lgarciam@vnz.uci.cu</a>> wrote:<br>
><br>
>> An hybrid replication is not possible in this moment. Pgpool works in one<br>
>> specific mode, master-slave mode or syncronous replication.<br>
>><br>
>> Regards.<br>
>> ________________________________________<br>
>> De: Gintautas Sulskus [<a href="mailto:gingaz@gmail.com" target="_blank">gingaz@gmail.com</a>]<br>
>> Enviado el: domingo, 02 de febrero de 2014 14:05<br>
>> Para: Lazaro Ruben Garcia Martinez<br>
>> CC: Athanasios | ZenGuard; <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><br>
>> Asunto: Re: [pgpool-general: 2505] Re: Common practices for pgpool<br>
>> availability and data replication<br>
>><br>
>> Thank you.<br>
>><br>
>> Probably pgpool watchdog is the way to go for the first attempt.<br>
>><br>
>> Regarding the second point. I had thoughts.. Would be possible to add a<br>
>> hybrid replication, that is:<br>
>><br>
>>  *   pgpool would have a list of tables that must be synchronously<br>
>> replicated;<br>
>>  *   synchronous replication:<br>
>>     *   If DML query relates to any of the table from that list, then<br>
>> pgpool would use synchronous replication - send DML to all DBs;<br>
>>  *   asynchronous replication:<br>
>>     *   if DML query does not relate to any table from the list, then it<br>
>> would be sent to the master database and be replicated via streaming<br>
>> replication<br>
>><br>
>> Is such approach technically feasible (if I wanted to add it)? Would it be<br>
>> difficult?<br>
>> I just had a thought, what if pgpool replicates DML query to all servers.<br>
>> How master's streaming replication then behaves?<br>
>><br>
>> Cheers,<br>
>> Gintas<br>
>><br>
>><br>
>> On Thu, Jan 30, 2014 at 2:18 PM, Lazaro Ruben Garcia Martinez <<br>
>> <a href="mailto:lgarciam@vnz.uci.cu" target="_blank">lgarciam@vnz.uci.cu</a><mailto:<a href="mailto:lgarciam@vnz.uci.cu" target="_blank">lgarciam@vnz.uci.cu</a>>> wrote:<br>
>> For number one you should use watchdog functionality.<br>
>><br>
>> Regards.<br>
>> ________________________________________<br>
>> De: <a href="mailto:pgpool-general-bounces@pgpool.net" target="_blank">pgpool-general-bounces@pgpool.net</a><mailto:<br>
>> <a href="mailto:pgpool-general-bounces@pgpool.net" target="_blank">pgpool-general-bounces@pgpool.net</a>> [<a href="mailto:pgpool-general-bounces@pgpool.net" target="_blank">pgpool-general-bounces@pgpool.net</a><br>

>> <mailto:<a href="mailto:pgpool-general-bounces@pgpool.net" target="_blank">pgpool-general-bounces@pgpool.net</a>>] En nombre de Athanasios |<br>
>> ZenGuard [<a href="mailto:athanasios@zenguard.org" target="_blank">athanasios@zenguard.org</a><mailto:<a href="mailto:athanasios@zenguard.org" target="_blank">athanasios@zenguard.org</a>>]<br>
>> Enviado el: jueves, 30 de enero de 2014 6:48<br>
>> Para: Gintautas Sulskus<br>
>> CC: <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><mailto:<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a>><br>
>> Asunto: [pgpool-general: 2505] Re: Common practices for pgpool<br>
>> availability and data replication<br>
>><br>
>> Hi,<br>
>> for point 1) you can use keepalived and two pgpool machines<br>
>><br>
>><br>
>> On Thu, Jan 30, 2014 at 12:00 PM, Gintautas Sulskus <<a href="mailto:gingaz@gmail.com" target="_blank">gingaz@gmail.com</a><br>
>> <mailto:<a href="mailto:gingaz@gmail.com" target="_blank">gingaz@gmail.com</a>><mailto:<a href="mailto:gingaz@gmail.com" target="_blank">gingaz@gmail.com</a><mailto:<a href="mailto:gingaz@gmail.com" target="_blank">gingaz@gmail.com</a>>>><br>


>> wrote:<br>
>> Dear All,<br>
>><br>
>> I have a few questions regarding practices with pgpool:<br>
>> 1. Typically pgpool is a single point of failure. What is the common<br>
>> practice to solve this?<br>
>> 2. Some of our data (e.g. 10% tables) must be consistent across the<br>
>> cluster for every transaction. The rest may differ. Is it possible to have<br>
>> a fine-grained replication, where some DMLs would be replicated<br>
>> synchronously and the rest would use asynchronous replication?<br>
>><br>
>> Thanks!<br>
>><br>
>> Best Regards,<br>
>> Gintautas<br>
>><br>
>> _______________________________________________<br>
>> pgpool-general mailing list<br>
>> <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><mailto:<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a>><mailto:<br>
>> <a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a><mailto:<a href="mailto:pgpool-general@pgpool.net" target="_blank">pgpool-general@pgpool.net</a>>><br>
>> <a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
>><br>
>><br>
>><br>
>> ________________________________<br>
>> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
>> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
>> <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
>> <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
>><br>
>> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
>> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
>> <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
>> <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best Regards,<br>
>> Gintautas Sulskus<br>
>><br>
>> ________________________________<br>
>> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
>> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
>> <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
>> <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
>><br>
>> Fin a la injusticia, LIBERTAD AHORA A NUESTROS CINCO COMPATRIOTAS QUE SE<br>
>> ENCUENTRAN INJUSTAMENTE EN PRISIONES DE LOS EEUU!<br>
>> <a href="http://www.antiterroristas.cu" target="_blank">http://www.antiterroristas.cu</a><br>
>> <a href="http://justiciaparaloscinco.wordpress.com" target="_blank">http://justiciaparaloscinco.wordpress.com</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Best Regards,<br>
> Gintautas Sulskus<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br>Gintautas Sulskus
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br>Gintautas Sulskus
</div>