[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Most of our large (partitioned) tables are insert-only (truncated
eventually) so will not be touched by autovacuum until wraparound prevention
kicks in.  However the tables are partitioned by timestamp so tables will
cross the 1.9 billion marker at different times (some not at all, as the
data will have been truncated).

Do you still think the 250 million transactions away from shutdown is
cutting it too close?  Recall that the unintentional db-wide vacuum analyze
that was going on last week on our system took less than two days to
complete.

Steve

------=_Part_10033_11679881.1182878744466
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div><span class="gmail_quote">On 6/25/07, <b class="gmail_sendername">Jim Nasby</b> &lt;<a href="mailto:decibel@xxxxxxxxxxx";>decibel@xxxxxxxxxxx</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">If you set that to 2B, that means you&#39;re 2^31-&quot;2 billion&quot;-1000000<br>transactions away from a shutdown when autovac finally gets around to
<br>trying to run a wraparound vacuum on a table. If you have any number<br>of large tables, that could be a big problem, as autovac could get<br>tied up on a large table for a long enough period that the table<br>needing to be frozen doesn&#39;t get frozen in time.
<br><br>I suspect 1B is a much better setting. I probably wouldn&#39;t go past 1.5B.</blockquote>
<div>&nbsp;</div>
<div>From my understanding of the docs, for tables that are not otherwise vacuumed, autovac will be invoked on it once every autovacuum_freeze_max_age minus vacuum_freeze_min_age transactions.&nbsp; In our case that&#39;s 2 billion - 100 million = 
1.9 billion transactions.&nbsp; So when an autovac finally kicks off on an otherwise non-vacuumed table, we&nbsp;are (2^31 - 1.9 billion) - 1 million =~ 250 million transactions away from shutdown.&nbsp; (I guess that&#39;s close to what you were saying.)
</div>
<div>&nbsp;</div>
<div>Most of our large (partitioned) tables are insert-only (truncated eventually) so will not be touched by autovacuum until wraparound prevention kicks in.&nbsp; However the tables are partitioned by timestamp so tables will cross the 
1.9 billion marker at different times (some not at all, as the data will have been truncated).</div>
<div>&nbsp;</div>
<div>Do you still think the 250 million transactions away from shutdown is cutting it too close?&nbsp; Recall that the unintentional db-wide vacuum analyze that was going on last week on our system took less than two days to complete.
</div>
<div>&nbsp;</div>
<div>Steve</div>
<div>&nbsp;</div></div>

------=_Part_10033_11679881.1182878744466--


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux