From: Konstantin Pavlov <thresh@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] I: ovz users, check your syslog config
Date: Tue, 21 Dec 2010 19:26:02 +0300
Message-ID: <20101221162602.GS30624@snowwhite.immo> (raw)
In-Reply-To: <20101221162119.GY10089@osdn.org.ua>
On Tue, Dec 21, 2010 at 06:21:19PM +0200, Michael Shigorin wrote:
> On Tue, Dec 21, 2010 at 03:38:25PM +0500, Vladimir V. Kamarzin wrote:
> > Только что обнаружил ужасную конфигурацию syslog в
> > openvz-контейнерах, которые были развёрнуты на базе шаблонов,
> > сделанных spt (во времена 4.0), а именно, в /etc/syslog.conf:
>
> Спасибо, местами понаходилось. Н-да.
Еще рекомендую:
# sed -i 's,-/var/log/,/var/log/,g' /var/lib/vz/root/*/etc/syslog.conf
# sed -i 's,/var/log/,-/var/log/,g' /var/lib/vz/root/*/etc/syslog.conf
# for i in `vzlist -Ho veid`; do vzctl exec $i service syslogd restart; done
Нам на хостах со значительным количеством контейнеров помогло уменьшить LA
в разы.
--
Konstantin Pavlov
VideoLAN team
next prev parent reply other threads:[~2010-12-21 16:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-21 10:38 Vladimir V. Kamarzin
2010-12-21 16:21 ` Michael Shigorin
2010-12-21 16:26 ` Konstantin Pavlov [this message]
2010-12-21 16:44 ` Michael Shigorin
2010-12-22 11:22 ` Timur Batyrshin
2010-12-22 11:33 ` Michael Shigorin
2010-12-22 11:30 ` Timur Batyrshin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101221162602.GS30624@snowwhite.immo \
--to=thresh@altlinux.org \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git