<div dir="ltr">Hello Jon!<div><br></div><div>Thank you very much! <br><br></div><div>Kind regards, </div><div>Rose</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">čet, 3. pro 2020. u 03:49 Jon Jensen <<a href="mailto:jon@endpoint.com">jon@endpoint.com</a>> napisao je:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 17 Nov 2020, Ružica Prljević wrote:<br>
<br>
> We have Bucardo 5.5.0, and following set up:<br>
> bucardo set vac_run=2<br>
> bucardo set vac_sleep=8<br>
><br>
> VAC daemon should trim bucardo delta and track tables every 2 minutes in<br>
> this case from my understanding of Bucardo.<br>
><br>
> Our client wants to know why we do not implement following cron job:<br>
> */5 * * * * /usr/sbin/bucardo purge all -verbose >/dev/null 2>&1<br>
><br>
> I have read through commands and documentation and cannot find any <br>
> upside for using bucardo purge -all.<br>
><br>
> Can you please tell me if this command does something that VAC daemon <br>
> doesn't?<br>
<br>
Rose,<br>
<br>
They look about the same to me: they both call the PostgreSQL function <br>
bucardo_purge_delta(text) so they do the same work.<br>
<br>
The main difference is that vac_run calls it with argument '45 seconds', <br>
so it only cleans up transactions older than 45 seconds ago, while `purge <br>
all` calls it with argument '1 second', so it will purge almost all <br>
transactions.<br>
<br>
In my mind you are already doing it a good way by using the vac_run <br>
facility.<br>
<br>
Jon<br>
<br>
<br>
-- <br>
Jon Jensen<br>
End Point Corporation<br>
<a href="https://www.endpoint.com/" rel="noreferrer" target="_blank">https://www.endpoint.com/</a></blockquote></div>