<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-17485</id>
	<title>Nabble - dbmail users</title>
	<updated>2009-12-16T03:08:02Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/dbmail-users-f17485.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail-users-f17485.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26809513</id>
	<title>Re: Found [16] un-cached physmessages</title>
	<published>2009-12-16T03:08:02Z</published>
	<updated>2009-12-16T03:08:02Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Mittwoch, 16. Dezember 2009 Reindl Harald wrote:
&lt;br&gt;&amp;gt; Nearly since migration to dbmail i get &amp;quot;Found [16] un-cached
&lt;br&gt;&amp;gt; &amp;nbsp;physmessages.&amp;quot; At the begin there was 10 increased now to 16
&lt;br&gt;&amp;gt; 
&lt;br&gt;That's a bug. Skip -b and ignore it. I wanted to do a fixup &amp;nbsp;but didn't 
&lt;br&gt;have time so far. IIRC it's about dbmail-util -b inserting headers that 
&lt;br&gt;already exist and it breaks in the middle. See the thread about it on 
&lt;br&gt;march 17, 2009.
&lt;br&gt;&lt;br&gt;It doesn't affect anything, so it's not important. Some indices should 
&lt;br&gt;be cleaned up.
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809513&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26809513/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Found--16--un-cached-physmessages-tp26809105p26809513.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26809432</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-16T03:00:30Z</published>
	<updated>2009-12-16T03:00:30Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Mittwoch, 16. Dezember 2009 Daniel Mejia wrote:
&lt;br&gt;&amp;gt; db.c,db_icheck_isheader(+1788): could not access messageblks table
&lt;br&gt;&amp;gt; Failed. An error occured. Please check log.
&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; what should i do?
&lt;br&gt;&lt;br&gt;Did you check the log, as the error message suggested?
&lt;br&gt;&lt;br&gt;we run this command daily:
&lt;br&gt;dbmail-util -ubdsy
&lt;br&gt;&lt;br&gt;and this once a week:
&lt;br&gt;dbmail-util -tpubdsy -r 168h ; dbmail-util -py
&lt;br&gt;&lt;br&gt;and for use those commands take about 30-40 seconds (the daily ones) and 
&lt;br&gt;20 minutes (the weekly stuff).
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809432&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26809432/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26809432.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26809105</id>
	<title>Found [16] un-cached physmessages</title>
	<published>2009-12-16T02:30:54Z</published>
	<updated>2009-12-16T02:30:54Z</updated>
	<author>
		<name>Reindl Harald-2</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;Nearly since migration to dbmail i get &amp;quot;Found [16] un-cached physmessages.&amp;quot;
&lt;br&gt;At the begin there was 10 increased now to 16
&lt;br&gt;dbmail-util -c -t -u -b -p -d -y
&lt;br&gt;&lt;br&gt;2.2.13 does not fix this and i do not really know what this means
&lt;br&gt;and how get it away
&lt;br&gt;____________________
&lt;br&gt;&lt;br&gt;Repairing DBMAIL messageblocks integrity...
&lt;br&gt;Ok. Found [0] unconnected messageblks.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL physmessage integrity...
&lt;br&gt;Ok. Found [0] unconnected physmessages.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL message integrity...
&lt;br&gt;Ok. Found [0] unconnected messages.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL mailbox integrity...
&lt;br&gt;Ok. Found [0] unconnected mailboxes.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL for NULL messages...
&lt;br&gt;Ok. Found [0] NULL messages.
&lt;br&gt;&lt;br&gt;Checking DBMAIL for NULL physmessages...
&lt;br&gt;Ok. Found [0] physmessages without messageblocks.
&lt;br&gt;&lt;br&gt;Deleting messages with DELETE status...
&lt;br&gt;Ok. [0] messages deleted.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL for rfcsize field...
&lt;br&gt;Ok. Found [0] missing rfcsize values.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL for incorrect is_header flags...
&lt;br&gt;Ok. Found [0] incorrect is_header flags.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL for cached envelopes...
&lt;br&gt;Ok. Found [0] missing envelope values.
&lt;br&gt;&lt;br&gt;Repairing DBMAIL for cached header values...
&lt;br&gt;Ok. Found [16] un-cached physmessages.
&lt;br&gt;................
&lt;br&gt;Setting DELETE status for deleted messages...
&lt;br&gt;Ok. [0] messages set for deletion.
&lt;br&gt;Re-calculating used quota for all users...
&lt;br&gt;Ok. Used quota updated for all users.
&lt;br&gt;&lt;br&gt;Vacuuming and optimizing database...
&lt;br&gt;Ok. Database cleaned up.
&lt;br&gt;&lt;br&gt;Maintenance done. Errors were found and fixed.
&lt;br&gt;We suggest running dbmail-util again to confirm that all errors were repaired.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Reindl Harald
&lt;br&gt;the lounge interactive design GmbH
&lt;br&gt;A-1060 Vienna | Hofmühlgasse 17
&lt;br&gt;software-development / cms-solutions
&lt;br&gt;&lt;br&gt;phone: &amp;nbsp; &amp;nbsp;+43 (1) 595 3999 33
&lt;br&gt;cellular: +43 (676) 40 221 40
&lt;br&gt;icq: &amp;nbsp; &amp;nbsp; &amp;nbsp;154546673
&lt;br&gt;&lt;br&gt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809105&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;h.reindl@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.thelounge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelounge.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26809105&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (268 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26809105/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Found--16--un-cached-physmessages-tp26809105p26809105.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808921</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-16T02:11:23Z</published>
	<updated>2009-12-16T02:11:23Z</updated>
	<author>
		<name>Paul J Stevens</name>
	</author>
	<content type="html">Daniel Mejia wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Paul J Stevens wrote:
&lt;br&gt;&amp;gt;&amp;gt; So with 2000 users you have 2 to 3TB storage allocated already?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; There is a 3TB of storage, with 800Gb used. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; So don't run dbmail-util -ay on a 800GB database!
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; That is the header check (-b). You can safely skip that one, until you
&lt;br&gt;&amp;gt;&amp;gt; decide to rebuild the header cache tables.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Rebuild header cache tables = ALTER TABLE ?
&lt;/div&gt;&lt;br&gt;You won't rebuild header caches, unless you want/need to change you
&lt;br&gt;database's encoding, or have changed it in the past.
&lt;br&gt;&lt;br&gt;If you do, you'll want to drop/create all the header cache tables:
&lt;br&gt;(dbmail_headername, dbmail_headervalue, dbmail_subjectfield,
&lt;br&gt;dbmail_datefield, dbmail_referencesfield, dbmail_fromfield,
&lt;br&gt;dbmail_tofield, dbmail_replytofield, dbmail_ccfield).
&lt;br&gt;&lt;br&gt;But the queries that check the consistency and completeness of the
&lt;br&gt;headercaches may be long running, keeping a read-lock on those tables
&lt;br&gt;along the way. So for that reason alone, you will want to avoid them if
&lt;br&gt;at all possible.
&lt;br&gt;&lt;br&gt;Same goes for some of the other queries run by the maintenance code. If
&lt;br&gt;it takes a long time to run them, but they don't normally find anything
&lt;br&gt;to fix, consider running them less often, if ever.
&lt;br&gt;&lt;br&gt;The only queries you will probably want to run daily are -p and -d to
&lt;br&gt;queue messages for deletion that are flagged as such. To actually
&lt;br&gt;cleanout the messageblks involved in deleted messages you'll also want
&lt;br&gt;to add -t.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; ________________________________________________________________
&lt;br&gt;&amp;nbsp; Paul Stevens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;paul at nfg.nl
&lt;br&gt;&amp;nbsp; NET FACILITIES GROUP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPG/PGP: 1024D/11F8CD31
&lt;br&gt;&amp;nbsp; The Netherlands________________________________http://www.nfg.nl
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808921&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26808921.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808762</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-16T01:55:59Z</published>
	<updated>2009-12-16T01:55:59Z</updated>
	<author>
		<name>Daniel Mejia</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Paul J Stevens wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;So with 2000 users you have 2 to 3TB storage allocated already?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
There is a 3TB of storage, with 800Gb used. 
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-message&quot;&gt;So don't run dbmail-util -ay on a 800GB database!
&lt;br&gt;...
&lt;br&gt;That is the header check (-b). You can safely skip that one, until you
&lt;br&gt;decide to rebuild the header cache tables.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Rebuild header cache tables = ALTER TABLE ?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-message&quot;&gt;Run them all manually, and separately, to find out how long they take,
&lt;br&gt;if they're needed at all, how they affect the database, etc...
&lt;br&gt;&lt;br&gt;Some of the maintenance options are probably not needed at all, only
&lt;br&gt;need to be run once every few days or maybe even weeks.
&lt;br&gt;&lt;br&gt;Simply running -ay every night is ok for small to medium sized
&lt;br&gt;installations. But with 800GB you're not in Kansas anymore. 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
at last someone gives an answer straight! thanx! will try exactly that.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26808762.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26808262</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-16T01:13:18Z</published>
	<updated>2009-12-16T01:13:18Z</updated>
	<author>
		<name>Paul J Stevens</name>
	</author>
	<content type="html">Daniel Mejia wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael Monnerie-5 wrote:
&lt;br&gt;&amp;gt;&amp;gt; Just put a max quota on your users accounts, then they *must* delete 
&lt;br&gt;&amp;gt;&amp;gt; some old e-mails. 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We have a 1GB quota on all users, except for more or less, 20 users in the
&lt;br&gt;&amp;gt; management level, with the biggest quota at 3GB.
&lt;br&gt;&lt;br&gt;So with 2000 users you have 2 to 3TB storage allocated already?
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; How many users do you have, and how much space do they use on average? 
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Currently, we have 1,879 users, but the number increases, slowly but surely,
&lt;br&gt;&amp;gt; when the organization hire new staff (which happens all year round).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I run the dbmail-util -ay command from a different server, whereas the mysql
&lt;br&gt;&amp;gt; database server sits on a different server. This is what happens:
&lt;br&gt;&lt;br&gt;So don't run dbmail-util -ay on a 800GB database!
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;lt;code&amp;gt;
&lt;br&gt;&amp;gt; Repairing DBMAIL for incorrect is_header flags...
&lt;br&gt;&amp;gt; Dec 16 13:13:04 mailadmin.mpob.g dbmail-util[16803]: Error:[sql]
&lt;br&gt;&amp;gt; dbmysql.c,db_query(+290): [Lost connection to MySQL server during query]
&lt;br&gt;&amp;gt; [SELECT MIN(messageblk_idnr),MAX(is_header) FROM dbmail_messageblks GROUP BY
&lt;br&gt;&amp;gt; physmessage_id HAVING MAX(is_header)=0]
&lt;br&gt;&lt;br&gt;That is the header check (-b). You can safely skip that one, until you
&lt;br&gt;decide to rebuild the header cache tables.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dec 16 13:13:04 mailadmin.mpob.g dbmail-util[16803]: Error:[db]
&lt;br&gt;&amp;gt; db.c,db_icheck_isheader(+1788): could not access messageblks table
&lt;br&gt;&amp;gt; Failed. An error occured. Please check log.
&lt;br&gt;&amp;gt; &amp;lt;/code&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; what should i do? from the mysql website:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_connect_timeout&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_connect_timeout&lt;/a&gt;,
&lt;br&gt;&amp;gt; i'm kind of confused with all the *_timeout variables. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I was thinking of increasing the number of seconds, but not sure which one.
&lt;br&gt;&amp;gt; would that help?
&lt;/div&gt;&lt;br&gt;&lt;br&gt;You're barking up the wrong tree. There's a reason for those timeouts.
&lt;br&gt;First find out which query is killing the connection (you did), next
&lt;br&gt;find out which command triggers the query (-by).
&lt;br&gt;&lt;br&gt;In your case I would very carefully start to tune the dbmail-util runs.
&lt;br&gt;&lt;br&gt;Run them all manually, and separately, to find out how long they take,
&lt;br&gt;if they're needed at all, how they affect the database, etc...
&lt;br&gt;&lt;br&gt;Some of the maintenance options are probably not needed at all, only
&lt;br&gt;need to be run once every few days or maybe even weeks.
&lt;br&gt;&lt;br&gt;Simply running -ay every night is ok for small to medium sized
&lt;br&gt;installations. But with 800GB you're not in Kansas anymore.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; ________________________________________________________________
&lt;br&gt;&amp;nbsp; Paul Stevens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;paul at nfg.nl
&lt;br&gt;&amp;nbsp; NET FACILITIES GROUP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPG/PGP: 1024D/11F8CD31
&lt;br&gt;&amp;nbsp; The Netherlands________________________________http://www.nfg.nl
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26808262&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26808262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26807837</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-16T00:33:15Z</published>
	<updated>2009-12-16T00:33:15Z</updated>
	<author>
		<name>Daniel Mejia</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Monnerie-5 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Just put a max quota on your users accounts, then they *must* delete 
&lt;br&gt;some old e-mails. 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
We have a 1GB quota on all users, except for more or less, 20 users in the management level, with the biggest quota at 3GB.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-message&quot;&gt;How many users do you have, and how much space do they use on average? 
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Currently, we have 1,879 users, but the number increases, slowly but surely, when the organization hire new staff (which happens all year round).
&lt;br&gt;&lt;br&gt;I run the dbmail-util -ay command from a different server, whereas the mysql database server sits on a different server. This is what happens:
&lt;br&gt;&lt;br&gt;&amp;lt;code&amp;gt;
&lt;br&gt;Repairing DBMAIL for incorrect is_header flags...
&lt;br&gt;Dec 16 13:13:04 mailadmin.mpob.g dbmail-util[16803]: Error:[sql] dbmysql.c,db_query(+290): [Lost connection to MySQL server during query] [SELECT MIN(messageblk_idnr),MAX(is_header) FROM dbmail_messageblks GROUP BY physmessage_id HAVING MAX(is_header)=0]
&lt;br&gt;Dec 16 13:13:04 mailadmin.mpob.g dbmail-util[16803]: Error:[db] db.c,db_icheck_isheader(+1788): could not access messageblks table
&lt;br&gt;Failed. An error occured. Please check log.
&lt;br&gt;&amp;lt;/code&amp;gt;
&lt;br&gt;&lt;br&gt;what should i do? from the mysql website: &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_connect_timeout&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html#sysvar_connect_timeout&lt;/a&gt;, i'm kind of confused with all the *_timeout variables. 
&lt;br&gt;&lt;br&gt;I was thinking of increasing the number of seconds, but not sure which one. would that help?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26807837.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26788133</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-14T17:42:05Z</published>
	<updated>2009-12-14T17:42:05Z</updated>
	<author>
		<name>Josh Marshall-2</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; still, the database size is increasing average 2GB per day. btw, do u happen
&lt;br&gt;&amp;gt; to know the maximum size mysql can handle? with the rate this is going, its
&lt;br&gt;&amp;gt; gonna be 2TB at the end of next year..
&lt;br&gt;&lt;br&gt;run the following query:
&lt;br&gt;&lt;br&gt;select userid,curmail_size from dbmail_users order by curmail_size desc
&lt;br&gt;limit 10;
&lt;br&gt;&lt;br&gt;Now go tell these people to clean up their mailboxes, they're the space
&lt;br&gt;hogs. You might be surprised how big some people's mailboxes are.
&lt;br&gt;&lt;br&gt;I personally also have a query that deletes all unread emails older than
&lt;br&gt;6 months. Reason for this is people who never read their mailbox due to
&lt;br&gt;it being forwarded elsewhere, but cc'ing locally:
&lt;br&gt;&lt;br&gt;echo &amp;quot;update dbmail_messages m, dbmail_mailboxes b, dbmail_physmessage p
&lt;br&gt;set m.deleted_flag=1,m.status=2 where m.mailbox_idnr=b.mailbox_idnr and
&lt;br&gt;p.id=m.physmessage_id and m.seen_flag = 0 and p.internal_date &amp;lt;
&lt;br&gt;date_sub(now(), interval 180 day);&amp;quot; | mysql -u USER -pPASS dbname
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Josh.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26788133&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26788133.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26778397</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-14T06:13:15Z</published>
	<updated>2009-12-14T06:13:15Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Montag, 14. Dezember 2009 Daniel Mejia wrote:
&lt;br&gt;&amp;gt; still, the database size is increasing average 2GB per day
&lt;br&gt;&lt;br&gt;Just put a max quota on your users accounts, then they *must* delete 
&lt;br&gt;some old e-mails. If you don't use quota, people will never delete, as 
&lt;br&gt;they just don't realize they need some space.
&lt;br&gt;&lt;br&gt;For POP accounts, I allow 100MB. IMAP gets 500MB per default. Those who 
&lt;br&gt;want more pay more. Simple as that.
&lt;br&gt;&lt;br&gt;How many users do you have, and how much space do they use on average? 
&lt;br&gt;Maybe you have some &amp;quot;top 5&amp;quot; users who need a lot of space, and the rest 
&lt;br&gt;is small anyway?
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26778397&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26778397/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26778397.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26774601</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-14T00:51:11Z</published>
	<updated>2009-12-14T00:51:11Z</updated>
	<author>
		<name>Paul J Stevens</name>
	</author>
	<content type="html">tabris wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Ok. Didn't know that. I know that it's supposed to handle LDAP dying,
&lt;br&gt;&amp;gt; but haven't had much luck with that either.
&lt;br&gt;&lt;br&gt;The code only deals with temporary ldap disconnections. If a ldap
&lt;br&gt;connection goes stale the code will try to reconnect every 2 seconds,
&lt;br&gt;and will try this 5 times. So if the ldap server goes down for more than
&lt;br&gt;10 seconds authentication will start to fail. Contrary to disrupted
&lt;br&gt;database connections such failures will not propagate to the main server
&lt;br&gt;process.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; ________________________________________________________________
&lt;br&gt;&amp;nbsp; Paul Stevens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;paul at nfg.nl
&lt;br&gt;&amp;nbsp; NET FACILITIES GROUP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPG/PGP: 1024D/11F8CD31
&lt;br&gt;&amp;nbsp; The Netherlands________________________________http://www.nfg.nl
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26774601&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26774601.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26774287</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-14T00:20:33Z</published>
	<updated>2009-12-14T00:20:33Z</updated>
	<author>
		<name>tabris</name>
	</author>
	<content type="html">Paul J Stevens wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; tabris wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. shut down the mysql server,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. change the mysql.cnf file, and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. restart the mysql server back up
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; Well, shutdown dbmail-lmtp and dbmail-imap (and dbmail-pop too),
&lt;br&gt;&amp;gt;&amp;gt; then restart mysqld.
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not really required since dbmail-2.2 will shutdown all child process
&lt;br&gt;&amp;gt; handling incoming traffic when the database goes, and restart them when
&lt;br&gt;&amp;gt; the connection is restored.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;Ok. Didn't know that. I know that it's supposed to handle LDAP dying,
&lt;/div&gt;but haven't had much luck with that either.
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26774287&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (266 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26774287/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26774287.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26774259</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-14T00:16:18Z</published>
	<updated>2009-12-14T00:16:18Z</updated>
	<author>
		<name>Paul J Stevens</name>
	</author>
	<content type="html">tabris wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; 1. shut down the mysql server,
&lt;br&gt;&amp;gt;&amp;gt; 2. change the mysql.cnf file, and 
&lt;br&gt;&amp;gt;&amp;gt; 3. restart the mysql server back up
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Well, shutdown dbmail-lmtp and dbmail-imap (and dbmail-pop too),
&lt;br&gt;&amp;gt; then restart mysqld.
&lt;br&gt;&lt;br&gt;Not really required since dbmail-2.2 will shutdown all child process
&lt;br&gt;handling incoming traffic when the database goes, and restart them when
&lt;br&gt;the connection is restored.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; ________________________________________________________________
&lt;br&gt;&amp;nbsp; Paul Stevens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;paul at nfg.nl
&lt;br&gt;&amp;nbsp; NET FACILITIES GROUP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPG/PGP: 1024D/11F8CD31
&lt;br&gt;&amp;nbsp; The Netherlands________________________________http://www.nfg.nl
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26774259&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26774259.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26773850</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T23:12:55Z</published>
	<updated>2009-12-13T23:12:55Z</updated>
	<author>
		<name>Jake Anderson-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Daniel Mejia wrote:
&lt;blockquote cite=&quot;mid:26773735.post@talk.nabble.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;
Josh Marshall-2 wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;It only recovers empty space and re-orders (like a defrag). If your
usage is increasing, the best way is to remove emails. Maybe you need to
run a dbmail-util to remove the deleted emails (there might be a SQL you
can run manually)

    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
i did a cronjob to take care of this, every 2 &amp;amp; 6 am daily. (dbmail-util
-ay)
the cronjob also runs a custom SQL that would clear the trash &amp;amp; spam folder
older than 30 days.

still, the database size is increasing average 2GB per day. btw, do u happen
to know the maximum size mysql can handle? with the rate this is going, its
gonna be 2TB at the end of next year..

would ANALYZE TABLE gives any performance speed increase etc?



  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;I would consider a MySQL upgrade, I'm not sure how good MySQL 4.0 is
with dbmail.

    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Oops, typing error! its mysql 5.0.45. i guess that's what happen when u only
get 3 hours of sleep for the past week. xD
  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
you could have a backup server, replicating away, then flip over to
that for maintenance.&lt;br&gt;
(not that nice really)&lt;br&gt;
or perhaps just replicate the table in question, then shut down, stop
replication, rename the table on the main system to a temp name, create
a federated table on the main that points to the secondary&lt;br&gt;
do the optimise table on the main, stop everything again, take out the
federated table, restart replication, (so the main synchs up with the
changes to the secondary) and your done.&lt;br&gt;
&lt;br&gt;
Personally all that implies to me the table should be sharded.&lt;br&gt;
&lt;br&gt;
shouldn't be that hard, split it based on the hash, hashes starting
with a 1 go into table mimeparts_1 etc&lt;br&gt;
you can easily split it based on that to 10,100 or 1000 tables.&lt;br&gt;
1000 tables should give good enough performance for some pretty decent
scaling ;-&amp;gt; especially if you spread them over the spindles.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26773850&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26773850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26773735</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T23:01:47Z</published>
	<updated>2009-12-13T23:01:47Z</updated>
	<author>
		<name>Daniel Mejia</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Josh Marshall-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;It only recovers empty space and re-orders (like a defrag). If your
&lt;br&gt;usage is increasing, the best way is to remove emails. Maybe you need to
&lt;br&gt;run a dbmail-util to remove the deleted emails (there might be a SQL you
&lt;br&gt;can run manually)
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
i did a cronjob to take care of this, every 2 &amp; 6 am daily. (dbmail-util -ay)
&lt;br&gt;the cronjob also runs a custom SQL that would clear the trash &amp; spam folder older than 30 days.
&lt;br&gt;&lt;br&gt;still, the database size is increasing average 2GB per day. btw, do u happen to know the maximum size mysql can handle? with the rate this is going, its gonna be 2TB at the end of next year..
&lt;br&gt;&lt;br&gt;would ANALYZE TABLE gives any performance speed increase etc?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-message&quot;&gt;I would consider a MySQL upgrade, I'm not sure how good MySQL 4.0 is
&lt;br&gt;with dbmail.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Oops, typing error! its mysql 5.0.45. i guess that's what happen when u only get 3 hours of sleep for the past week. xD</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26773735.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26773409</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T22:07:34Z</published>
	<updated>2009-12-13T22:07:34Z</updated>
	<author>
		<name>tabris</name>
	</author>
	<content type="html">Daniel Mejia wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Josh Marshall-2 wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. Is the dbmail_messageblks table cant be optimized?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; It can be optimized, but there's probably no good reason to do it. I did
&lt;br&gt;&amp;gt;&amp;gt; it once and it didn't increase the database speed it just took a long
&lt;br&gt;&amp;gt;&amp;gt; time to do it.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Would the optimization retrieve some space? ie: reducing the table size?
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; It would, but it wouldn't matter if you're getting messages in at
&lt;br&gt;1000/day. You'd delete 800 messages and get 1000 more... and that data
&lt;br&gt;space would then get used by the new messages. If you want things to be
&lt;br&gt;faster, instead try using 'ANALYZE TABLE' to update the indices. It's a
&lt;br&gt;lot faster (and it doesn't rebuild the indices, just rebalance the index
&lt;br&gt;tree and update the index cardinality).
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; innodb_log_file_size=192M
&lt;br&gt;&amp;gt;&amp;gt; innodb_log_buffer_size=8M
&lt;br&gt;&amp;gt;&amp;gt; innodb_file_per_table
&lt;br&gt;&amp;gt;&amp;gt; [mysqldump]
&lt;br&gt;&amp;gt;&amp;gt; quick
&lt;br&gt;&amp;gt;&amp;gt; quote-names
&lt;br&gt;&amp;gt;&amp;gt; max_allowed_packet &amp;nbsp; &amp;nbsp; &amp;nbsp;= 128M
&lt;br&gt;&amp;gt;&amp;gt; [mysql]
&lt;br&gt;&amp;gt;&amp;gt; [isamchk]
&lt;br&gt;&amp;gt;&amp;gt; key_buffer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 16M
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ok, let say my database size is 760GB (and increasing), can i just:
&lt;br&gt;&amp;gt; 1. shut down the mysql server,
&lt;br&gt;&amp;gt; 2. change the mysql.cnf file, and 
&lt;br&gt;&amp;gt; 3. restart the mysql server back up
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;/div&gt;&amp;nbsp; &amp;nbsp; Well, shutdown dbmail-lmtp and dbmail-imap (and dbmail-pop too),
&lt;br&gt;then restart mysqld.
&lt;br&gt;&lt;br&gt;&amp;gt; would that do the trick?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; p/s: my mail server hardware is similar to urs, running Fedora 10 with mysql
&lt;br&gt;&amp;gt; ver 4.0.45.
&lt;br&gt;&amp;gt; The number of incoming mails is larger than 20,000 daily, but most of them
&lt;br&gt;&amp;gt; are blocked by the Barracuda spam firewall, reducing it to minimum 1000.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26773409&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (269 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26773409/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26773409.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26773403</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T22:05:37Z</published>
	<updated>2009-12-13T22:05:37Z</updated>
	<author>
		<name>Josh Marshall-2</name>
	</author>
	<content type="html">&amp;gt; Would the optimization retrieve some space? ie: reducing the table
&lt;br&gt;&amp;gt; size?
&lt;br&gt;&lt;br&gt;It only recovers empty space and re-orders (like a defrag). If your
&lt;br&gt;usage is increasing, the best way is to remove emails. Maybe you need to
&lt;br&gt;run a dbmail-util to remove the deleted emails (there might be a SQL you
&lt;br&gt;can run manually)
&lt;br&gt;&lt;br&gt;&amp;gt; ok, let say my database size is 760GB (and increasing), can i just:
&lt;br&gt;&amp;gt; 1. shut down the mysql server,
&lt;br&gt;&amp;gt; 2. change the mysql.cnf file, and 
&lt;br&gt;&amp;gt; 3. restart the mysql server back up
&lt;br&gt;&lt;br&gt;My config file is for MySQL 5.0, so some parameters might be slightly
&lt;br&gt;different. Otherwise, yes that should work fine. Take a backup though.
&lt;br&gt;&lt;br&gt;&amp;gt; p/s: my mail server hardware is similar to urs, running Fedora 10 with mysql
&lt;br&gt;&amp;gt; ver 4.0.45.
&lt;br&gt;&lt;br&gt;I would consider a MySQL upgrade, I'm not sure how good MySQL 4.0 is
&lt;br&gt;with dbmail.
&lt;br&gt;&lt;br&gt;&amp;gt; The number of incoming mails is larger than 20,000 daily, but most of them
&lt;br&gt;&amp;gt; are blocked by the Barracuda spam firewall, reducing it to minimum 1000.
&lt;br&gt;&lt;br&gt;Indeed, we see 95% of emails blocked at our firewall, one day I turned
&lt;br&gt;that off and averaged 10 incoming emails/second.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Josh.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26773403&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26773403.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26773352</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T21:56:05Z</published>
	<updated>2009-12-13T21:56:05Z</updated>
	<author>
		<name>Daniel Mejia</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Josh Marshall-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;&amp;gt; 1. Is the dbmail_messageblks table cant be optimized?
&lt;br&gt;&lt;br&gt;It can be optimized, but there's probably no good reason to do it. I did
&lt;br&gt;it once and it didn't increase the database speed it just took a long
&lt;br&gt;time to do it.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Would the optimization retrieve some space? ie: reducing the table size?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;innodb_log_file_size=192M
&lt;br&gt;innodb_log_buffer_size=8M
&lt;br&gt;innodb_file_per_table
&lt;br&gt;[mysqldump]
&lt;br&gt;quick
&lt;br&gt;quote-names
&lt;br&gt;max_allowed_packet &amp;nbsp; &amp;nbsp; &amp;nbsp;= 128M
&lt;br&gt;[mysql]
&lt;br&gt;[isamchk]
&lt;br&gt;key_buffer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 16M
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
ok, let say my database size is 760GB (and increasing), can i just:
&lt;br&gt;1. shut down the mysql server,
&lt;br&gt;2. change the mysql.cnf file, and 
&lt;br&gt;3. restart the mysql server back up
&lt;br&gt;&lt;br&gt;would that do the trick?
&lt;br&gt;&lt;br&gt;p/s: my mail server hardware is similar to urs, running Fedora 10 with mysql ver 4.0.45.
&lt;br&gt;The number of incoming mails is larger than 20,000 daily, but most of them are blocked by the Barracuda spam firewall, reducing it to minimum 1000.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26773352.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26773026</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T20:51:09Z</published>
	<updated>2009-12-13T20:51:09Z</updated>
	<author>
		<name>Josh Marshall-2</name>
	</author>
	<content type="html">On Sun, 2009-12-13 at 20:14 -0800, Daniel Mejia wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; 1. Is the dbmail_messageblks table cant be optimized?
&lt;br&gt;&lt;br&gt;It can be optimized, but there's probably no good reason to do it. I did
&lt;br&gt;it once and it didn't increase the database speed it just took a long
&lt;br&gt;time to do it.
&lt;br&gt;&lt;br&gt;&amp;gt; 2. What would u suggest the mysql.cnf config should be like for 2000+ users
&lt;br&gt;&amp;gt; &amp; at least 1000 incoming mails per day?
&lt;br&gt;&lt;br&gt;I've posted my mysql.cnf before. I had a few people pick it to pieces. I
&lt;br&gt;implemented some of them. So it's still not perfect but it does the job
&lt;br&gt;fine. This particular mysql.cnf is used on a Debian Etch server with a
&lt;br&gt;single 3GHz Celeron CPU, 3Gb RAM and a pair of 160Gb hard disks in
&lt;br&gt;software RAID-1. Serving 5000 mailboxes and between 25,000-30,000
&lt;br&gt;emails/day:
&lt;br&gt;&lt;br&gt;[client]
&lt;br&gt;port &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3306
&lt;br&gt;socket &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= /var/run/mysqld/mysqld.sock
&lt;br&gt;[mysqld_safe]
&lt;br&gt;socket &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= /var/run/mysqld/mysqld.sock
&lt;br&gt;nice &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 0
&lt;br&gt;[mysqld]
&lt;br&gt;user &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= mysql
&lt;br&gt;pid-file &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= /var/run/mysqld/mysqld.pid
&lt;br&gt;socket &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= /var/run/mysqld/mysqld.sock
&lt;br&gt;port &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3306
&lt;br&gt;basedir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = /usr
&lt;br&gt;datadir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = /var/lib/mysql
&lt;br&gt;tmpdir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= /tmp
&lt;br&gt;language &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= /usr/share/mysql/english
&lt;br&gt;skip-external-locking
&lt;br&gt;skip-name-resolve
&lt;br&gt;skip-name-resolve
&lt;br&gt;bind-address &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 0.0.0.0
&lt;br&gt;key_buffer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1024M
&lt;br&gt;key_buffer_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 16M
&lt;br&gt;max_allowed_packet &amp;nbsp; &amp;nbsp; &amp;nbsp;= 128M
&lt;br&gt;table_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 2048
&lt;br&gt;sort_buffer_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 32M
&lt;br&gt;read_buffer_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 8M
&lt;br&gt;read_rnd_buffer_size &amp;nbsp; &amp;nbsp;= 62M
&lt;br&gt;myisam_sort_buffer_size = 64M
&lt;br&gt;thread_concurrency &amp;nbsp; &amp;nbsp; &amp;nbsp;= 4
&lt;br&gt;&lt;br&gt;thread_stack &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 128K
&lt;br&gt;thread_cache_size &amp;nbsp; &amp;nbsp; &amp;nbsp; = 8
&lt;br&gt;max_connections &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 1800
&lt;br&gt;query_cache_limit &amp;nbsp; &amp;nbsp; &amp;nbsp; = 5M
&lt;br&gt;query_cache_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 512M
&lt;br&gt;log_bin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = /storage/binlog/mysql-bin.log
&lt;br&gt;expire_logs_days &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 5
&lt;br&gt;max_binlog_size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 100M
&lt;br&gt;skip-bdb
&lt;br&gt;innodb_buffer_pool_size=100M
&lt;br&gt;innodb_log_file_size=192M
&lt;br&gt;innodb_log_buffer_size=8M
&lt;br&gt;innodb_file_per_table
&lt;br&gt;[mysqldump]
&lt;br&gt;quick
&lt;br&gt;quote-names
&lt;br&gt;max_allowed_packet &amp;nbsp; &amp;nbsp; &amp;nbsp;= 128M
&lt;br&gt;[mysql]
&lt;br&gt;[isamchk]
&lt;br&gt;key_buffer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 16M
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26773026&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26773026.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26772809</id>
	<title>Re: OPTIMIZE TABLE dbmail_messageblks in MySQL</title>
	<published>2009-12-13T20:14:57Z</published>
	<updated>2009-12-13T20:14:57Z</updated>
	<author>
		<name>Daniel Mejia</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Paul J Stevens wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;&lt;br&gt;kost@ropnet.ru wrote:
&lt;br&gt;&amp;gt; -rw-rw---- &amp;nbsp;1 mysql4 &amp;nbsp;mysql4 &amp;nbsp;23995613184 Oct 20 11:47 dbmail_messageblks.ibd
&lt;br&gt;&lt;br&gt;he! are those innodb table spaces? Been reading about them, but haven't
&lt;br&gt;used them yet..
&lt;br&gt;&lt;br&gt;&amp;gt; Table &amp;quot;dbmail_messageblks&amp;quot; has almost 24Gb size (we have about 45000
&lt;br&gt;&amp;gt; emails each day!). So when &amp;quot;OPTIMIZE TABLE dbmail_messageblks&amp;quot; starts
&lt;br&gt;&amp;gt; Mysql sets locking on this table and write operations delays while
&lt;br&gt;&amp;gt; optimize process runnig.
&lt;br&gt;&amp;gt; It has a very long time to parse 25Gb of data (MySQL creates temporary
&lt;br&gt;&amp;gt; files of the same size to rebuild table) and all clients who fetch
&lt;br&gt;&amp;gt; mail with pop3 or imap get time out error. In this state our MX server
&lt;br&gt;&amp;gt; (that push mail in MySQL server through dbmail-smtp utility) increases
&lt;br&gt;&amp;gt; number of processes in many times...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If anybody now how to do optimize MySQL tables in such hard terms
&lt;br&gt;&amp;gt; - please answer.
&lt;br&gt;&lt;br&gt;I'm open to suggestions and ideas here. I've been having this very same
&lt;br&gt;problem.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
1. Is the dbmail_messageblks table cant be optimized?
&lt;br&gt;2. What would u suggest the mysql.cnf config should be like for 2000+ users &amp; at least 1000 incoming mails per day?
&lt;br&gt;&lt;br&gt;I tried asking in another thread, but nobody seems to have the answer.... if anyone do have an answer, please help.. thanx ;)</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dbmail---mysql-..-tp7810337p26772809.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26744068</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T05:11:58Z</published>
	<updated>2009-12-11T05:11:58Z</updated>
	<author>
		<name>Reindl Harald-2</name>
	</author>
	<content type="html">Am 11.12.2009 13:06, schrieb Tomas Kuliavas:
&lt;br&gt;&lt;br&gt;&amp;gt; Are you sure that syntax of your select query is correct?
&lt;br&gt;&lt;br&gt;That is not needed
&lt;br&gt;It shows that you are more flexible using a database
&lt;br&gt;&lt;br&gt;In most cases a well configured database with enough memory
&lt;br&gt;will be much faster because you have query-caches and
&lt;br&gt;buffers which are more effective than any generic os-cache
&lt;br&gt;&lt;br&gt;&amp;gt; how complex select call you will make in order to cover all variations?
&lt;br&gt;&amp;gt; flowed format, quoted-printable, headers and body that might have text in
&lt;br&gt;&amp;gt; n different charsets.
&lt;br&gt;&lt;br&gt;how will you do that in a flat.file?
&lt;br&gt;&lt;br&gt;&amp;gt; SQL is not designed to decode MIME on the fly.
&lt;br&gt;&lt;br&gt;Why should anyone do that?
&lt;br&gt;It's enough if you encode the search-string in every variation
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; The question is anyway: Does an IMAP SEARCH search in several variations
&lt;br&gt;&amp;gt;&amp;gt; of &amp;quot;test&amp;quot;? What if it's base64 encoded?
&lt;br&gt;&lt;br&gt;and here is the benefit of a db-backend
&lt;br&gt;imap himself has nothing to do with it
&lt;br&gt;You can add a plaintext-field for text-only mimeparts,
&lt;br&gt;decode them there and use this column for searching as sample
&lt;br&gt;&lt;br&gt;In this case you never touch the original mail-data AND can search
&lt;br&gt;You can add the column long after receive the mails and build
&lt;br&gt;the index for existing mails and play with many helper-columns/tables
&lt;br&gt;whereever it makes sense for better performance
&lt;br&gt;&lt;br&gt;the point is that imap/mua has nothing to know about this internals
&lt;br&gt;&lt;br&gt;&amp;gt; Headers must be decoded, if charset is specified in search command. You
&lt;br&gt;&amp;gt; are free to read all IMAP stardards if you want as long as you don't
&lt;br&gt;&amp;gt; invent new SQL syntax in order to prove your point.
&lt;br&gt;&lt;br&gt;look above
&lt;br&gt;imap-standards, encodings and sql-syntax are not the point
&lt;br&gt;you can change the backend-structure in many ways to improve
&lt;br&gt;things without thinking about frontend-protocols
&lt;br&gt;&lt;br&gt;and with rdbm-only backend you get much more benefits
&lt;br&gt;&lt;br&gt;BACKUPS:
&lt;br&gt;* dbmail runs on a vmware-esxi
&lt;br&gt;* a 1:1 copy runs on another hardware
&lt;br&gt;* this is configured as replication-slave
&lt;br&gt;* replication runs in a own mysql-instance
&lt;br&gt;* every week replication is stopped and the data copied into the default-instance
&lt;br&gt;* before copy the current data we stop both instances and make a &amp;quot;last-week&amp;quot;-copy
&lt;br&gt;* so we have a backup-imap to go back until last sunday
&lt;br&gt;* in worst-case we can switch back one week more
&lt;br&gt;* the master is never stopped for this
&lt;br&gt;* there is no work except read the weekly statusmail from cron
&lt;br&gt;&lt;br&gt;SCALEABLE:
&lt;br&gt;* you want 10 mx-records to split the spam-filter-overhead?
&lt;br&gt;* No problem, every mx has the same readonly-tables for valid addresses
&lt;br&gt;* every mx can filter spam independet
&lt;br&gt;* clean messages are going in the same database
&lt;br&gt;* in fact postfix needs readonly you can use slaves to reduce db-load
&lt;br&gt;* you could also do master-master-replication if needed to split write-load
&lt;br&gt;* you can split cpu-load by using more machines with the same db (dbmail-imapd often uses more cpu as mysql)
&lt;br&gt;&lt;br&gt;FLEXIBLE:
&lt;br&gt;* you want your own quota-notifies?: write a script in which anguage you want
&lt;br&gt;* you want special guis for some things: no problem, write them
&lt;br&gt;* you want combine the cinfiguration.infos with other services? do that!
&lt;br&gt;&lt;br&gt;The admin-benefit in our case is thwat we use two dbmail-servers this time and have a self-written webui for all
&lt;br&gt;our standard-admin-jobs (ftp, www, dns, dhcp, domain-registry) with a clear permission-handling, it does not matter
&lt;br&gt;how much dbmail-installations we use in the future: it needs 10 minutes to include all of them in the central panel
&lt;br&gt;and give operators the right permissions
&lt;br&gt;&lt;br&gt;Additionally we are able to write scripts for often needed and/or complex actions in a few time and can combine the
&lt;br&gt;setup-data from every service and machine because all other services are mysql-based (some of thmen by generating
&lt;br&gt;standard-configs based on the databases).
&lt;br&gt;&lt;br&gt;Many overview-pages for non-technicals are based on this things because nobody has to write doumentations which
&lt;br&gt;host/client was created and what happens in our company - only the reference host/service/client has to be choosed
&lt;br&gt;manually, if we delete a host we can be sure it goes away in all overviews and from the billing
&lt;br&gt;&lt;br&gt;If there is a simple way to get a whole service in a database you should choose that, maybe you need more memorfy
&lt;br&gt;or faster hardware but you are so much more flexible instead working with flat-files and configs
&lt;br&gt;&lt;br&gt;&lt;br&gt;Reindl Harald
&lt;br&gt;the lounge interactive design GmbH
&lt;br&gt;A-1060 Vienna | Hofmühlgasse 17
&lt;br&gt;software-development / cms-solutions
&lt;br&gt;&lt;br&gt;phone: &amp;nbsp; &amp;nbsp;+43 (1) 595 3999 33
&lt;br&gt;cellular: +43 (676) 40 221 40
&lt;br&gt;icq: &amp;nbsp; &amp;nbsp; &amp;nbsp;154546673
&lt;br&gt;&lt;br&gt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26744068&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;h.reindl@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://www.thelounge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelounge.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26744068&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (268 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26744068/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26744068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743621</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T04:41:45Z</published>
	<updated>2009-12-11T04:41:45Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Freitag, 11. Dezember 2009 Tomas Kuliavas wrote:
&lt;br&gt;&amp;gt; Are you sure that syntax of your select query is correct?
&lt;br&gt;&lt;br&gt;No, that was pseudo code to demonstrate you can search for variations 
&lt;br&gt;within one query.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; how complex select call you will make in order to cover all
&lt;br&gt;&amp;gt; &amp;nbsp;variations? flowed format, quoted-printable, headers and body that
&lt;br&gt;&amp;gt; &amp;nbsp;might have text in n different charsets.
&lt;br&gt;&lt;br&gt;Just exactly the same amount a server with flat files would have to. 
&lt;br&gt;There's no difference.
&lt;br&gt;&lt;br&gt;&amp;gt; SQL is not designed to decode MIME on the fly.
&lt;br&gt;&lt;br&gt;It all reduces to search for a certain byte combination. You just have 
&lt;br&gt;to encode your search string to all variations you need, and put all 
&lt;br&gt;those in a single SELECT. That was my point.
&lt;br&gt;&lt;br&gt;In case you have to decode the mail, you need to retrieve,decode,search, 
&lt;br&gt;and still this is the same work a flat file mailserver would do. All 
&lt;br&gt;this discussion is about the speed of searching, and I didn't see an 
&lt;br&gt;example where a flat file server could search faster than the DB so far. 
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743621&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26743621/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26743621.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743184</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T04:06:19Z</published>
	<updated>2009-12-11T04:06:19Z</updated>
	<author>
		<name>Tomas Kuliavas</name>
	</author>
	<content type="html">2009.12.11 13:14 Michael Monnerie rašė:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Freitag, 11. Dezember 2009 Tomas Kuliavas wrote:
&lt;br&gt;&amp;gt;&amp;gt; Emails are not raw text. There are at least two ways to write &amp;quot;test&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;in email and if you go to 8bit text, number of same text variations
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;multiplies. SQL can't search emails stored in DB, because SQL does
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;not know about encodings, mime formats and character sets
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So where's the difference? You can
&lt;br&gt;&amp;gt; SELECT * ... WHERE mailtext LIKE 'test'::utf8 OR mailtext LIKE
&lt;br&gt;&amp;gt; 'test'::base64 &amp;nbsp;etc.
&lt;br&gt;&amp;gt; and a flat file server would do the same anyway. The e-mail is stored in
&lt;br&gt;&amp;gt; original format, so it would also search for test in all encodings.
&lt;/div&gt;&lt;br&gt;Are you sure that syntax of your select query is correct?
&lt;br&gt;&lt;br&gt;how complex select call you will make in order to cover all variations?
&lt;br&gt;flowed format, quoted-printable, headers and body that might have text in
&lt;br&gt;n different charsets.
&lt;br&gt;&lt;br&gt;SQL is not designed to decode MIME on the fly.
&lt;br&gt;&lt;br&gt;&amp;gt; The question is anyway: Does an IMAP SEARCH search in several variations
&lt;br&gt;&amp;gt; of &amp;quot;test&amp;quot;? What if it's base64 encoded?
&lt;br&gt;&lt;br&gt;Headers must be decoded, if charset is specified in search command. You
&lt;br&gt;are free to read all IMAP stardards if you want as long as you don't
&lt;br&gt;invent new SQL syntax in order to prove your point.
&lt;br&gt;&lt;br&gt;Glad to see that Daniel got suggestions to his problem. Maybe size of
&lt;br&gt;database can be reduced by moving some accounts to other server?
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tomas
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743184&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26743184.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742461</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T03:14:00Z</published>
	<updated>2009-12-11T03:14:00Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Freitag, 11. Dezember 2009 Tomas Kuliavas wrote:
&lt;br&gt;&amp;gt; Emails are not raw text. There are at least two ways to write &amp;quot;test&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;in email and if you go to 8bit text, number of same text variations
&lt;br&gt;&amp;gt; &amp;nbsp;multiplies. SQL can't search emails stored in DB, because SQL does
&lt;br&gt;&amp;gt; &amp;nbsp;not know about encodings, mime formats and character sets
&lt;br&gt;&lt;br&gt;So where's the difference? You can
&lt;br&gt;SELECT * ... WHERE mailtext LIKE 'test'::utf8 OR mailtext LIKE 
&lt;br&gt;'test'::base64 &amp;nbsp;etc.
&lt;br&gt;and a flat file server would do the same anyway. The e-mail is stored in 
&lt;br&gt;original format, so it would also search for test in all encodings.
&lt;br&gt;&lt;br&gt;The question is anyway: Does an IMAP SEARCH search in several variations 
&lt;br&gt;of &amp;quot;test&amp;quot;? What if it's base64 encoded?
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742461&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26742461/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26742461.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742402</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T03:09:12Z</published>
	<updated>2009-12-11T03:09:12Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Freitag, 11. Dezember 2009 Paul J Stevens wrote:
&lt;br&gt;&amp;gt; Currently, a full body text search will do a full table scan of the
&lt;br&gt;&amp;gt; mimeparts table and pull in all mimeparts part of the messages in the
&lt;br&gt;&amp;gt; mailbox being searched. If we want to skip all non text/* mimeparts
&lt;br&gt;&amp;gt; &amp;nbsp;(as allowed by the imap rfc), we'd have to add some knowledge of the
&lt;br&gt;&amp;gt; &amp;nbsp;mimetype contained in the mimepart. Doing so would be trivial. And
&lt;br&gt;&amp;gt; &amp;nbsp;so would fixing the query be that does the search.
&lt;br&gt;&amp;gt; 
&lt;br&gt;Sounds like a nice-to-have feature :-)
&lt;br&gt;That would be a great reason to upgrade to 2.3.
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742402&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26742402/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26742402.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742376</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T03:06:30Z</published>
	<updated>2009-12-11T03:06:30Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Freitag, 11. Dezember 2009 Michael Monnerie wrote:
&lt;br&gt;&amp;gt; LVM snapshots
&lt;br&gt;&amp;gt; 
&lt;br&gt;Another thing to remember: You can only do a snapshot of a single 
&lt;br&gt;filesystem at a time. So if you have your DB and attachments in 
&lt;br&gt;different volumes, snapshots are not transactions anymore. Some people 
&lt;br&gt;may be happy to live with that, though.
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742376&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26742376/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26742376.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742338</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T03:02:39Z</published>
	<updated>2009-12-11T03:02:39Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Freitag, 11. Dezember 2009 Daniel Urstöger wrote:
&lt;br&gt;&amp;gt; Well, one can also do that with a filesystem based storage, you
&lt;br&gt;&amp;gt; &amp;nbsp;just &amp;nbsp; need something similar to the MySQL replication for flat
&lt;br&gt;&amp;gt; &amp;nbsp;files. DRDB for example.
&lt;br&gt;&amp;gt; 
&lt;br&gt;DRBD puts a burden on the server all the time. For a secure replication 
&lt;br&gt;you need to wait until the I/O on the remote server is on disk too. Only 
&lt;br&gt;if you relax that, and allow buffered I/O to the remote, the impact is 
&lt;br&gt;negligible. But then you risk a munged DB in case your first machine 
&lt;br&gt;brutally crashes during high I/O, and suddenly you loose some parts of 
&lt;br&gt;your transactions which the DB does not expect. It's not nice, because 
&lt;br&gt;the DB claims everything went OK, while some data in some tables is 
&lt;br&gt;wrong...
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742338&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26742338/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26742338.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742281</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T02:57:44Z</published>
	<updated>2009-12-11T02:57:44Z</updated>
	<author>
		<name>Michael Monnerie-5</name>
	</author>
	<content type="html">On Freitag, 11. Dezember 2009 Josh Marshall wrote:
&lt;br&gt;&amp;gt; I have found that since linux kernel 2.6 series, LVM snapshots have
&lt;br&gt;&amp;gt; caused system lockups. I used it happily in the 2.4 series. 
&lt;br&gt;&lt;br&gt;That's why LVM snapshots are not used in XenServer 5.x. They also said 
&lt;br&gt;it's unstable, especially under high load.
&lt;br&gt;&lt;br&gt;&amp;gt; Besides
&lt;br&gt;&amp;gt; that, I did mention *impact-free*. Adding a snapshot and reading from
&lt;br&gt;&amp;gt; &amp;nbsp;a snapshot severely impacts the speed of the running system.
&lt;br&gt;&lt;br&gt;I totally agree with your arguing. Having all together is much easier to 
&lt;br&gt;administer. Once it's too slow, I'll throw in more hardware. It's 
&lt;br&gt;cheaper to throw in a new server than to have the extra burden with 
&lt;br&gt;redundancy, backup/restore, etc...
&lt;br&gt;&lt;br&gt;So far, I haven't seen a limit on dbmail, while we had limits with older 
&lt;br&gt;POP-only systems before, where users had the setting &amp;quot;leave mail on 
&lt;br&gt;server&amp;quot;. The server had to copy the flat file all over again for each 
&lt;br&gt;user, I/O stalled...
&lt;br&gt;&lt;br&gt;BTW: we upgraded from PostgreSQL 8.1 to 8.3, which exactly *doubled* the 
&lt;br&gt;speed of our nightly backups and vacuum/cluster runs. So that was a nice 
&lt;br&gt;step which I can recommend to everybody. I wonder if 8.4 will bring 
&lt;br&gt;another improvement.
&lt;br&gt;&lt;br&gt;mfg zmi
&lt;br&gt;-- 
&lt;br&gt;// Michael Monnerie, Ing.BSc &amp;nbsp; &amp;nbsp;----- &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://it-management.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://it-management.at&lt;/a&gt;&lt;br&gt;// Tel: 0660 / 415 6531 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .network.your.ideas.
&lt;br&gt;//
&lt;br&gt;// Wir haben zwei Häuser zu verkaufen:
&lt;br&gt;// &lt;a href=&quot;http://zmi.at/langegg/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://zmi.at/langegg/&lt;/a&gt;&lt;br&gt;// &lt;a href=&quot;http://willhaben.at/iad/realestate/object?adId=15306857&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://willhaben.at/iad/realestate/object?adId=15306857&lt;/a&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26742281/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26742281.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26740049</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-11T00:10:19Z</published>
	<updated>2009-12-11T00:10:19Z</updated>
	<author>
		<name>Paul J Stevens</name>
	</author>
	<content type="html">Michael Monnerie wrote:
&lt;br&gt;&amp;gt; On Donnerstag, 10. Dezember 2009 Tomas Kuliavas wrote:
&lt;br&gt;&amp;gt;&amp;gt; DBMail might find its niche in some setups, but large mailboxes are
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;not in that niche. 750 GB DB proves it. You can't do text search raw
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;email sources. There is no point of storing them in DB.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And you believe doing a raw text search on a 750GB flat file mailserver 
&lt;br&gt;&amp;gt; would be fast?
&lt;br&gt;&lt;br&gt;Raw text searches are not your typical usage pattern. Doing so in a
&lt;br&gt;truly high speed fashion is a principle goal for all imap
&lt;br&gt;implementations. For dbmail, using an external full text indexes such as
&lt;br&gt;solr/lucene would be the most logical (and scalable) solution.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; dbmail 2.3 is different in that it stores mimeparts separately. Maybe a 
&lt;br&gt;&amp;gt; full text search skips binary attachments there. Paul?
&lt;br&gt;&lt;br&gt;Currently, a full body text search will do a full table scan of the
&lt;br&gt;mimeparts table and pull in all mimeparts part of the messages in the
&lt;br&gt;mailbox being searched. If we want to skip all non text/* mimeparts (as
&lt;br&gt;allowed by the imap rfc), we'd have to add some knowledge of the
&lt;br&gt;mimetype contained in the mimepart. Doing so would be trivial. And so
&lt;br&gt;would fixing the query be that does the search.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; ________________________________________________________________
&lt;br&gt;&amp;nbsp; Paul Stevens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;paul at nfg.nl
&lt;br&gt;&amp;nbsp; NET FACILITIES GROUP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GPG/PGP: 1024D/11F8CD31
&lt;br&gt;&amp;nbsp; The Netherlands________________________________http://www.nfg.nl
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26740049&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26740049.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26739499</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T22:51:25Z</published>
	<updated>2009-12-10T22:51:25Z</updated>
	<author>
		<name>Tomas Kuliavas</name>
	</author>
	<content type="html">2009.12.11 01:33 Michael Monnerie rašė:
&lt;br&gt;&amp;gt; On Donnerstag, 10. Dezember 2009 Tomas Kuliavas wrote:
&lt;br&gt;&amp;gt;&amp;gt; DBMail might find its niche in some setups, but large mailboxes are
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;not in that niche. 750 GB DB proves it. You can't do text search raw
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;email sources. There is no point of storing them in DB.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And you believe doing a raw text search on a 750GB flat file mailserver
&lt;br&gt;&amp;gt; would be fast?
&lt;br&gt;&lt;br&gt;Emails are not raw text. There are at least two ways to write &amp;quot;test&amp;quot; in
&lt;br&gt;email and if you go to 8bit text, number of same text variations
&lt;br&gt;multiplies. SQL can't search emails stored in DB, because SQL does not
&lt;br&gt;know about encodings, mime formats and character sets
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tomas
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26739499&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26739499.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26737600</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T17:58:09Z</published>
	<updated>2009-12-10T17:58:09Z</updated>
	<author>
		<name>Josh Marshall-2</name>
	</author>
	<content type="html">&amp;gt; Which distro are you using? I havent had any snapshot related problems &amp;nbsp;
&lt;br&gt;&amp;gt; yet, but maybe that is related to how much data you have? The &amp;nbsp;
&lt;br&gt;&amp;gt; snapshots I create rately have more then 20GB of data.
&lt;br&gt;&amp;gt; And I don't want to point out a better distro for you but I see this &amp;nbsp;
&lt;br&gt;&amp;gt; mailing list as quite a nice source of knowledge and of exchange ... &amp;nbsp;
&lt;br&gt;&amp;gt; So I just want to know to learn from :)
&lt;br&gt;&lt;br&gt;To be honest I haven't tried it for a long time. The snapshot problems I
&lt;br&gt;had were back about a dozen point releases ago. I was using a vanilla
&lt;br&gt;kernel compiled from source.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;What I was trying to do was set up a netapp style snapshot system so
&lt;br&gt;that it would have snapshots for the last 3 hours (hourly), the last day
&lt;br&gt;(3-hourly) and the last week (daily). No this was not for mail, it was
&lt;br&gt;for web shared space. Maybe I was trying to do too much? In the end I
&lt;br&gt;just gave up, that was about 2 years ago.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;As a side-note I've also tinkered with nilfs2 and it seems quite good
&lt;br&gt;with its continuous snapshotting, however under heavy load I found it
&lt;br&gt;started running away with continuous data writes. Maybe when it gets
&lt;br&gt;closer to production status it'll be the way to go.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;But we're digressing ;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Josh.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737600&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26737600.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26737589</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T17:57:00Z</published>
	<updated>2009-12-10T17:57:00Z</updated>
	<author>
		<name>Josh Marshall-2</name>
	</author>
	<content type="html">On Fri, 2009-12-11 at 02:01 +0100, Daniel Urstöger wrote:
&lt;br&gt;&amp;gt; &amp;gt; Not quite. Having a separate slave database server to do the heavy &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; work
&lt;br&gt;&amp;gt; &amp;gt; of backups has no impact on the master database during the backup
&lt;br&gt;&amp;gt; &amp;gt; period. Therefore the master database is always at &amp;quot;normal speed&amp;quot;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, one can also do that with a filesystem based storage, you just &amp;nbsp;
&lt;br&gt;&amp;gt; need something similar to the MySQL replication for flat files. DRDB &amp;nbsp;
&lt;br&gt;&amp;gt; for example.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;I have also had DRBD in production, sharing in a similar way. However
&lt;br&gt;when the DRBD reconnects it needs to scan through all the changes in the
&lt;br&gt;master disk to find and copy across all the changed sectors. So there is
&lt;br&gt;a performance hit when the copy completes. It depends on the number of
&lt;br&gt;changed sectors to how much of a hit this will be. In most cases it
&lt;br&gt;would be minor, so I am being picky here. One problem I did have with
&lt;br&gt;DRBD (used 0.7 series) is that I would have the system lock me out if
&lt;br&gt;only one side came up, so I was completely without service until the
&lt;br&gt;timeout or I interfered with it to manually switch to the appropriate
&lt;br&gt;master. They may have fixed this with the 0.8 series.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;You could argue that with the mysql binary log there is a performance
&lt;br&gt;hit when the copy completes and the slave reconnects, but if the binary
&lt;br&gt;logs are on a separate disk spindle, the don't affect the performance of
&lt;br&gt;the main database files.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737589&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26737589.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26737138</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T17:00:50Z</published>
	<updated>2009-12-10T17:00:50Z</updated>
	<author>
		<name>Daniel Urstöger</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; Not quite. Having a separate slave database server to do the heavy &amp;nbsp;
&lt;br&gt;&amp;gt; work
&lt;br&gt;&amp;gt; of backups has no impact on the master database during the backup
&lt;br&gt;&amp;gt; period. Therefore the master database is always at &amp;quot;normal speed&amp;quot;.
&lt;br&gt;&lt;br&gt;Well, one can also do that with a filesystem based storage, you just &amp;nbsp;
&lt;br&gt;need something similar to the MySQL replication for flat files. DRDB &amp;nbsp;
&lt;br&gt;for example.
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737138&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26737138.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26737100</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T16:54:10Z</published>
	<updated>2009-12-10T16:54:10Z</updated>
	<author>
		<name>Daniel Urstöger</name>
	</author>
	<content type="html">My message was not quite finished, sadly there isnt an App for that ;)
&lt;br&gt;&lt;br&gt;&amp;gt; I have found that since linux kernel 2.6 series, LVM snapshots have
&lt;br&gt;&amp;gt; caused system lockups. I used it happily in the 2.4 series. Besides
&lt;br&gt;&amp;gt; that, I did mention *impact-free*. Adding a snapshot and reading &amp;nbsp;
&lt;br&gt;&amp;gt; from a
&lt;br&gt;&amp;gt; snapshot severely impacts the speed of the running system. Yes you &amp;nbsp;
&lt;br&gt;&amp;gt; get a
&lt;br&gt;&amp;gt; clean backup, but the hard disk is being placed under a huge read
&lt;br&gt;&amp;gt; strain, not to mention the extra COW load for every write to the
&lt;br&gt;&amp;gt; filesystem.
&lt;br&gt;&lt;br&gt;Which distro are you using? I havent had any snapshot related problems &amp;nbsp;
&lt;br&gt;yet, but maybe that is related to how much data you have? The &amp;nbsp;
&lt;br&gt;snapshots I create rately have more then 20GB of data.
&lt;br&gt;And I don't want to point out a better distro for you but I see this &amp;nbsp;
&lt;br&gt;mailing list as quite a nice source of knowledge and of exchange ... &amp;nbsp;
&lt;br&gt;So I just want to know to learn from :)
&lt;br&gt;&lt;br&gt;&amp;gt; I believe that dbmail on MySQL requires the use of InnoDB, which I
&lt;br&gt;&amp;gt; believe (or has this recently changed?) does not support Full Text
&lt;br&gt;&amp;gt; Index. Maybe using something like Sphinx as a bolt-on would be handy &amp;nbsp;
&lt;br&gt;&amp;gt; for
&lt;br&gt;&amp;gt; doing IMAP searches. I generally sync all my emails to my desktop
&lt;br&gt;&amp;gt; machine and do any searches on the local copies. Then searches don't
&lt;br&gt;&amp;gt; impact the servers :)
&lt;br&gt;&lt;br&gt;It does require transactions, so for MySQL you are quite tied to &amp;nbsp;
&lt;br&gt;innodb, unless you want to try something more experimental.
&lt;br&gt;&lt;br&gt;It would be nice of customers to act like you, but usually they don't. &amp;nbsp;
&lt;br&gt;Though &amp;nbsp;I really liked that Thunderbird 3 now even heavily suggest &amp;nbsp;
&lt;br&gt;syncing to local disk.
&lt;br&gt;&lt;br&gt;Sphinx for searches would be awesome! The new release is even &amp;nbsp;
&lt;br&gt;compatible to the MySQL client / libraries. So no API to fiddle with, &amp;nbsp;
&lt;br&gt;but still needs quite some work, I guess ...
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737100&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26737100.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26737088</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T16:52:13Z</published>
	<updated>2009-12-10T16:52:13Z</updated>
	<author>
		<name>Reindl Harald-2</name>
	</author>
	<content type="html">Am 11.12.2009 01:38, schrieb &amp;quot;Daniel Urstöger&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737088&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;daniel@...&lt;/a&gt;&amp;gt;&amp;quot;:
&lt;br&gt;&lt;br&gt;&amp;gt; Yes, but after backing to the snapshot to some place one can remove it &amp;nbsp;
&lt;br&gt;&amp;gt; and the speed will be back to normal. So, running a db slave and using &amp;nbsp;
&lt;br&gt;&amp;gt; mysqldump for backups is not much different.
&lt;br&gt;&lt;br&gt;a) the slave can yun on one or more other physical machines
&lt;br&gt;b) shut down the slave, run rsync, start the slave
&lt;br&gt;&lt;br&gt;There is no moment you have more load on the master
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737088&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (268 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26737088/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26737088.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26737005</id>
	<title>Re: Optimizing Dbmail Database</title>
	<published>2009-12-10T16:43:31Z</published>
	<updated>2009-12-10T16:43:31Z</updated>
	<author>
		<name>Josh Marshall-2</name>
	</author>
	<content type="html">On Fri, 2009-12-11 at 01:38 +0100, Daniel Urstöger wrote:
&lt;br&gt;&amp;gt; Yes, but after backing to the snapshot to some place one can remove
&lt;br&gt;&amp;gt; it &amp;nbsp;
&lt;br&gt;&amp;gt; and the speed will be back to normal. So, running a db slave and
&lt;br&gt;&amp;gt; using &amp;nbsp;
&lt;br&gt;&amp;gt; mysqldump for backups is not much different.
&lt;br&gt;&lt;br&gt;Not quite. Having a separate slave database server to do the heavy work
&lt;br&gt;of backups has no impact on the master database during the backup
&lt;br&gt;period. Therefore the master database is always at &amp;quot;normal speed&amp;quot;.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;DBmail mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26737005&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;DBmail@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-DBmail-Digest%2C-Vol-69%2C-Issue-3-tp26731947p26737005.html" />
</entry>

</feed>
