System load spike on dovecot reload
Jochen Bern
Jochen.Bern at binect.de
Sat Apr 22 13:28:40 EEST 2017
On 04/21/2017 10:43 AM, dave at evilcigi.eu wrote:
> Everything works fine, until I reload dovecot configuration. When that
> happen, every client is forced to relogin in the same time and that
> causes a huge system load spike (2-3000 5 min load).
A system load of 3000 means that an average of 3000 processes would like
a bit of CPU time, not that the system's unable to *provide* that to
them, if only the amount of CPU each needs is small enough. You want to
look at the actual percentage of CPU used (and at the total number of
processes, to see how close you might be to running out of PIDs).
> I was thinking that it would be great, if dovecot wouldn't kick all the
> users in the same time during reload, but somehow gradually, during
> specified interval.
That wouldn't help unless the kicked clients, which will likely try to
reconnect immediately, *can* reconnect at once; otherwise, at the end of
the grace period, you'ld still have 100% of the clients banging on the
doors to get back in simultaneously.
So "old" and "new" dovecot would need to run in parallel, with all the
incompatibilities and resource restrictions *that* might entail, seeing
that there's obviously *something* that changed and prompted you to try
and restart dovecot in the first place.
In other words, I don't think that the dovecot code *can* cover all
those cases on its own - providing two suitably separate environments
(like with Kevin's proxy+docker suggestion) is IMHO the way to go here.
Regards,
--
Jochen Bern
Systemingenieur
Fon: +49 6151 9067-231
Fax: +49 6151 9067-290
E-Mail: jochen.bern at binect.de
www.binect.de
www.facebook.de/binect
Binect ist ausgezeichnet:
Sieger INNOVATIONSPREIS-IT 2017 | Das Büro: Top 100 Büroprodukte 2017
Binect GmbH
Robert-Koch-Straße 9, 64331 Weiterstadt, DE
Geschäftsführung: Christian Ladner, Dr. Frank Wermeyer, Nils Manegold
Unternehmenssitz: Weiterstadt
Register: Amtsgericht Darmstadt, HRB 94685
Umsatzsteuer-ID: DE 221 302 264
MAX 21-Unternehmensgruppe
✁
Diese E-Mail kann vertrauliche Informationen enthalten. Wenn Sie nicht
der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese
E-Mail. Das unerlaubte Kopieren, sowie die unbefugte Weitergabe dieser
Mail oder von Teilen dieser Mail ist nicht gestattet. Jede von der
Binect GmbH versendete Mail ist sorgfältig erstellt worden, dennoch
schließen wir die rechtliche Verbindlichkeit aus; sie kann nicht zu
einer irgendwie gearteten Verpflichtung zu Lasten der Binect GmbH
ausgelegt werden. Wir haben alle verkehrsüblichen Maßnahmen unternommen,
um das Risiko der Verbreitung virenbefallener Software oder E-Mails zu
minimieren, dennoch raten wir Ihnen, Ihre eigenen Virenkontrollen auf
alle Anhänge an dieser Nachricht durchzuführen.
Wir schließen, außer für den Fall von Vorsatz oder grober
Fahrlässigkeit, die Haftung für jeglichen Verlust oder Schäden durch
virenbefallene Software oder E-Mail aus.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of contents of this
e-mail is strictly prohibited. All Binect GmbH emails are created
thoroughly, nevertheless we do not accept any legal obligation for the
information and wording contained herein. Binect GmbH has taken
precautionary measures to reduce the risk of possible distribution of
virus infected software or emails. However, we advise you to check
attachments to this email for viruses. Except for cases of intent or
gross negligence, we cannot accept any legal obligation for loss or
damage by virus infected software.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4278 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20170422/2aa6d6e5/attachment.p7s>
More information about the dovecot
mailing list