7,137
edits
No edit summary |
No edit summary |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
*ec2 から s3 へコピーって早いね | |||
<syntaxhighlight lang="text" enclose="div"> | |||
aws s3 sync . s3://xxxyyy/zzz/ddd --exact-timestamps --delete --acl public-read | |||
</syntaxhighlight> | |||
*謎なメモ | |||
munin, munin-node, logstash-forwarder(conf,crt,key), kibana-int, monit, zimbra-network | |||
*時刻が意外とズレる | |||
<pre> | |||
cat /sys/devices/system/clocksource/clocksource0/available_clocksource | |||
cat /sys/devices/system/clocksource/clocksource0/current_clocksource | |||
echo tsc > /sys/devices/system/clocksource/clocksource0/current_clocksource | |||
</pre> | |||
:私は ntpd は使わず cron で ntpdate して様子見中...結局 ntpd 上げた。 | |||
関連ありそうな kernel option の clocksource=tsc highres=off nohz=off divider=10 をいろいろ調査中 (とりあえず何も付けないに10点) | |||
: clocksource=tsc を有効にするには、highres=off nohz=off が必要。 | |||
: nohz=off にすると、timer 割り込みが増えて、cpu load が上がる。 | |||
*Broken PMTUD on Amazon EC2 | |||
あら... | |||
[http://www.daemonology.net/blog/2012-11-28-broken-EC2-firewall.html Broken PMTUD on Amazon EC2] | |||
ec2-authorize default -P icmp -t 3:4 | |||
Management Console では | |||
Cuntom ICMP rule | |||
Type : Destination Unreachable | |||
Code : fragmentation required, and DF flag set | |||
*気になったのでメモっておく tso 問題 | *気になったのでメモっておく tso 問題 | ||
[http://sakura.cb-faq.com/faq/public/app/servlet/qadoc?QID=001391 Q: さくらのVPSで「Ubuntu」を利用していますが、回線速度が遅くアクセスに時間がかかります。] | [http://sakura.cb-faq.com/faq/public/app/servlet/qadoc?QID=001391 Q: さくらのVPSで「Ubuntu」を利用していますが、回線速度が遅くアクセスに時間がかかります。] | ||
Line 11: | Line 46: | ||
/etc/network/interfaces に追加 | /etc/network/interfaces に追加 | ||
post-up | post-up /sbin/ethtool -K eth0 sg off | ||
post-up | post-up /sbin/ethtool -K eth0 tso off | ||
*delete on termination の確認方法 | *delete on termination の確認方法 | ||
Line 106: | Line 141: | ||
*リモート運用のメモ2 | *リモート運用のメモ2 | ||
TCPKeepAlive | TCPKeepAlive no | ||
ServerAliveInterval | ServerAliveInterval 60 | ||
ServerAliveCountMax | ServerAliveCountMax 15 | ||
:[http://www.jp.freebsd.org/cgi/mroff.cgi?sect=5&cmd=&lc=1&subdir=man&dir=jpman-8.0.2%2Fman&subdir=man&man=ssh_config man ssh_config] | :[http://www.jp.freebsd.org/cgi/mroff.cgi?sect=5&cmd=&lc=1&subdir=man&dir=jpman-8.0.2%2Fman&subdir=man&man=ssh_config man ssh_config] |