2015-01-01から1年間の記事一覧

Ceph リカバリ 優先度

Ceph’s default recovery settings are far too aggressive. Tone it down with the following in the [osd] section or it will impact client IO osd_max_backfills = 1 osd_recovery_priority = 1 osd_client_op_priority = 63 osd_recovery_max_active =…

OpenVAS

OpenVAS - OpenVAS - Open Vulnerability Assessment Scanner Atomicorpのリポジトリを登録する OpenVASのCentOS向けバイナリパッケージはAtomicorpというセキュリティ企業の提供するリポジトリ(atomicリポジトリ)から入手できる。 脆弱性スキャナ「OpenVA…

AWS t2.micro インスタンスで監視サーバ

nagios + munin 監視対象サーバは60ぐらい Server Version: Apache/2.4.16 (Amazon) mod_fcgid/2.3.9 PHP/5.6.14 Server MPM: event aws インスタンス CPU steal http://d.hatena.ne.jp/toritori0318/20140312/1394634304 yum install libcgroup yum install…

WordPress W3 Total Cache plugin w3tc

Page Cache Minify Opcode Cache Zend Opcache Database Cache Object Cache Browser Cache HTTPヘッダを付与 .htaccess CDN Reverse Proxy varnish Monitoring Fragment Cache w3tc CDN How to Implement Self-Hosted CDN for Site SpeedGeneric Mirrorの使…

groonga munin

groonga-5.0.9/data/munin/ruby 参考 http://www.clear-code.com/blog/2010/5/7.html http://qiita.com/groonga/items/b889f1207ce664b11382

robots.txt

https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt

FreeBSD swap

vm.defer_swapspace_pageouts と vm.disable_swapspace_pageouts デフォルトはどちらも0 vm.defer_swapspace_pageouts vm.defer_swapspace_pageouts causes the system to avoid using swap, if possible. With the option enabled, the VM system will stil…

Ceph 管理

稼働中のosdに設定を適用する/設定を確認する It's usually best practice to propagate changes to ceph.conf amongst all nodes. In this case, it will at least need to be on the OSD nodes.You will need to restart OSDs for it to take effect OR u…

tcpdump コマンドの使いかたをまとめてみた - sonots:blog

Mavericks (10.9.5) でwacomドライバ (6.3.15-1) が原因で起動に時間がかかる

OSX

Uninstalling the current Wacom drivers (6.3.15-1) and installing the previous version (6.3.11-3a) has stopped the launchctl[2] burning CPU message for me. Interesting to note, the current Wacom installer requires a reboot when done and the…

USBストレージを無効にする

OSX

sudo kextunload -b com.apple.driver.AppleUSBCardReader sudo kextunload -b com.apple.driver.AppleUSBODD sudo kextunload -b com.apple.iokit.IOUSBMassStorageClass /System/Library/Extensions/AppleStorageDrivers.kext/Contents/PlugIns/AppleUSBCa…

munin AWS plugins

billing Munin を使うのは他の理由もあります。理由は3つ。 一つは、自分にとって普段使い慣れている監視システムである事。 もう1つ、Munin 経由で通知を出せること。 そして、CloudWatch のデータ保存期間は2週間だということ。 過去の傾向を知るために…

命名規則うまくメソッド名を付けるための参考情報 - Qiita関数や変数のネーミングに悩んだら「codic」に日本語名を入力するとある程度解決するかも

OpenSSH vulnerability CVE-2015-5600

https://kingcope.wordpress.com/2015/07/16/openssh-keyboard-interactive-authentication-brute-force-vulnerability-maxauthtries-bypass/OpenSSH Vulnerability Exposes Servers to Brute Force Attacks | SecurityWeek.Comhttps://www.freebsd.org/secu…

WordPress WP_Query

Date Parameters before (string/array) - Date to retrieve posts before. Accepts strtotime()-compatible string, or array of 'year', 'month', 'day' values: Class Reference/WP Query « WordPress Codex なので $query->set('date_query', array(arra…

mysql performance_schema

最後にある参照のリンクにもあるように、performance_schemaは随時ログを書き込みしているため負荷が大きいです。これを停止すれば少々パフォーマンス向上が見込めるようです。 また、今回導入しているのは、MySQL5.6。デフォルトでperformance_schemaは ON…

FreeBSD mysql が確保しようとするメモリ

調べるエックスサーバー サーバー初期ページapache 2.2 - Mysql using high VIRT memory and RES is compartively - Server FaultFreeBSD 10.1 mysqltuner ... [--] Total buffers: 200.0M global + 1.1M per thread (51 max threads) [OK] Maximum possible…

エラーログチェックhttp://qiita.com/kenjiskywalker/items/1e67d10ccf2146f5664d

FreeBSD memory

https://wiki.freebsd.org/Memory laundry 11.1-BETA を動かしていて気が付いたのだが、top から Cached の名前が消えて、Laundry になっている。 http://uyota.asablo.jp/blog/2017/06/15/8597871 2017 sysctl -n vm.stats.vm.v_cache_count sysctl -n vm.s…

WordPressのエクスポート機能でデータを取り出せるのはコンテンツだけです。WordPress自体やプラグインの設定値はバックアップすることはできませんので、これらはメモしておき、手動で設定しなおす必要があります。またアップロードした画像等のデータやテ…

Apache 2.4 Directory Files Location

Directory、Files、Locationの各ディレクティブの処理される順番:ぴろにっき:SSブログ 設定の優先順位 優先度の高い順は、Location, Files, Directory 同じ範囲指定の場合、 FilesとLocationについては、設定ファイルでより下に書かれた設定が優先 Directo…

freebsd-update

freebsd-updateはビルドなしにOS更新してくれる代わり、カーネル再構築が不要なアップデートの場合にはカーネル埋め込みのバージョン番号が更新されないため、unameでは正確にバージョン表示できなくなる。FreeBSDのバージョン確認方法 – admin note from 12…

CentOS on Amazon EC2 でディスクサイズ変更しても変わらないときの対処方法 | DevelopersIO OpenStackでも同じ手順

diff

コメントを削除してdiff comment $ diff <(grep -v -e "^#" -e "^$" conf.old ) <(grep -v -e "^#" -e "^$" conf.new) コメント行、空行を除いてdiff - Qiita # の前の空白も考慮 $ diff <(grep -v -e "^[[:space:]]*#" -e "^$" conf.old ) <(grep -v -e "^[…

Bug 197542 - Mk/Scripts/find-lib.sh: Doesn't find libiconv libraryhttps://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197542OK FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/…

postgres 配列操作 削除

Postgres 9.3 で追加された array_remove() 相当のクエリ $ select array_remove('{a,b,c}'::text[], 'b'); array_remove ────────────── {a,c} (1 row) $ select array( select x from unnest('{a,b,c}'::text[]) x where x <> 'b' ); array ─────── {a,c} …

procmailrc

c なお、複数のアドレスに転送させたい場合は、スペース(半角)で区切って列挙します。 ... :0 c のようにするとメールをサーバー上に残します。Procmail によるメールの自動振り分け 大文字小文字 :0 で始まるルールは大文字と小文字を区別せずヘッダの中…

OSX シリアルコンソール RATOC REX-USB60F

$ screen /dev/tty.usbserial-00002014 9600 switch> ログイン完了、めでたし!めでたし! あとscreenコマンドの終了の仕方は、control+a+¥ らしいです。Mac初心者によるMacbook AirでCiscoルータにシリアル接続 - 毎日乾杯! 2014 $ cd /Library/Extensions…

OpenStack nova-network

routing_source_ip Re: [Openstack] Can't ping vm to google - Jon Thomas - net.launchpad.lists.openstack - MarkMailhttp://dachary.org/?p=1929 固定サブネットの外部にアクセスするためのルールadd_snat_rule() メソッドは nat テーブルのラップ・チェ…

access_log apache

【AWK】アクセスログから404を返したURLを抽出する | Code & Business Apache 処理時間で集計 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined 最後に%Dをつけるsort と uniq でさくっとランキングを出力する - blog…