全文検索:
- 01 vim @01_linux:20_エディタ
- rcを置けばOK <code> $ cat ~/.vimrc ""#####表示設定##### ""set number "行番号を表示する set title "編集中のファイル名を表示 set showmatch "括弧入力時の対応する括弧を表示 syntax on "コードの色分け set tabstop=4 "インデントをスペース4つ分に設定 set nosmartindent "
- 55 corosync pacemaker @01_linux:01_net
- 設定 ===== ==== フィルタの停止と、初期設定 ==== pcs property set stonith-enabled=false pcs property set no-quorum-policy=ignore pcs resource defaults resource-s... ocf:pacemaker:ping \ name=ping_set \ dampen=5s \ multi... ocf:pacemaker:ping \ name=ping_g_set \ dampen=5s \ multi
- 36 LINSTOR Bcache @01_linux:13_storage
- ORでzfsthinを設定してもシンプロにならないので注意</color> <code> zfs set compress=lz4 DataPool ##zfs set compress=off DataPool zfs set sync=disabled DataPool zfs set atime=off DataPool zpool set autotrim=off DataPool </code> ==== プールの設定
- 14 MariaDB @01_linux:11_データベース:01_mysql
- DB | +------------------------+--------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl... N | +-----------------------+-------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl... ---------------------------+----------+ 2 rows in set (0.00 sec) MariaDB [(none)]> show global variabl... +-------------------------+-----------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl
- 03 iperf3 @01_linux:09_ベンチマーク
- cv the specified file -A, --affinity n/n,m set CPU affinity -V, --verbose more det... ulticast address -C, --linux-congestion <algo> set TCP congestion control algorithm (Linux only) -M, --set-mss # set TCP maximum segment size (MTU - 40 bytes) -N, --nodelay set TCP no d
- 15 InnoDB テーブルロック @01_linux:11_データベース:01_mysql
- | sato | 40 | +----+--------+-----+ 3 rows in set (0.02 sec) </code> <code> create table lock_test... rows affected (0.00 sec) mysql> UPDATE lock_test SET age = 21 WHERE name = 'tanaka'; Query OK, 1 row a... rows affected (0.00 sec) mysql> UPDATE lock_test SET age = 31 WHERE name = 'suzuki'; ERROR 1205 (HY000... | +--------------------------+-------+ 1 row in set (0.02 sec) </code> ===== インデックス張っている方は行ロックとなる ==
- 51 Heartbeat + Pacemaker + galera(3 server) @01_linux:01_net
- (ocf::heartbeat:IPaddr2): Started galera-1 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-2 galera-3 ] ... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer
- 30 ZFS Linux @01_linux:13_storage
- pool01 /dev/rbd0 ===== pool config ===== zfs set compress=lz4 pool01 zfs set sync=disabled pool01 zfs set dedup=on pool01 zpool set autotrim=on pool01 ===== export ===== pool のマウントを外す zpool export pool
- 01 Galera構築 @01_linux:11_データベース:01_mysql
- ertify_nonPK=1 # Maximum number of rows in write set wsrep_max_ws_rows=131072 # Maximum size of write set wsrep_max_ws_size=1073741824 # to enable debug level logging, set this to 1 wsrep_debug=0 # convert locking sessio... # Address on THIS node to receive SST at. DON'T SET IT TO DONOR ADDRESS!!! # (SST method dependent. D
- ipmitool Server内から、IPMI IP確認 @01_linux:01_net
- ipmi_msghandler not found. # ipmitool lan print Set in Progress : Set Complete Auth Type Support : NONE MD2 MD5 OEM Auth Type Enable ... code> ===== ユーザ名変更 ===== <code> # ipmitool user set name 2 admin # ipmitool user list 2 ID Name ... e> ===== パスワードリセット ===== <code> # ipmitool user set password 3 Password for user 3: Password for user
- 02_ネットワーク負荷試験iperf @01_linux:09_ベンチマーク
- es not sent extra msgs -M, --mss # set TCP maximum segment size (MTU - 40 bytes) -N, --nodelay set TCP no delay, disabling Nagle's Algorithm -V, --IPv6Version Set the domain to IPv6 Server specific: -s, --serv... cast (default 1) -Z, --linux-congestion <algo> set TCP congestion control algorithm (Linux only) Mi
- 20 Ceph PG数 @01_linux:13_storage
- == 1.変更前の準備 ===== ==== scrub止める ==== ceph osd set noscrub ceph osd set nodeep-scrub ==== back_fillの値を下げておく ==== ceph tell 'osd.*' injectargs --osd-... ctive=3 ===== 2.PG_num変更 ===== ceph osd pool set TEST-pool pg_num 128 ceph osd pool set TEST-pool pgp_num 128 ===== 3.変更の確認 ===== <code> # ceph osd
- 09 Galera + innodb_flush_log_at_trx_commit @01_linux:11_データベース:01_mysql
- AA | | 3690 | AAAA | +------+------+ 3691 rows in set (0.00 sec) -Secondary | 3689 | AAAA | | 3690 | A... AA | | 3691 | AAAA | +------+------+ 3692 rows in set (0.01 sec) </code> == 2.Secondaryのmysqlをkill == ... | | 3891 | AAAA | +-------+------+ 17985 rows in set (0.02 sec) -Secondary | 3881 | AAAA | | 3882 |... A | | 3883 | AAAA | +-------+------+ 17977 rows in set (0.03 sec) </code> {{tag>mysql innodb Galera}}
- tcで帯域制限(htb) @01_linux:01_net
- m physdev --physdev-in 'tlhdj20bhophy4' -j MARK --set-mark 5 Chain FORWARD (policy ACCEPT 7790K packet... PHYSDEV match --physdev-in tlhdj20bhophy4 MARK set 0x5 0 0 MARK all -- * * ... PHYSDEV match --physdev-in c29k8sh2hyvosi MARK set 0x5 </code> [[http://labs.gree.jp/blog/2014/10
- 17 Nginx FastCGI Cache @01_linux:02_www
- astcgi_params; ### 以下の設定を追加 ### set $do_not_cache 0; # -- POST or HEAD ? if ($request_method != "GET") { set $do_not_cache 1; } # -- Login or Comment... or_|wordpress_logged_in|wp-postpass_).*$) { set $do_not_cache 1; } fastcgi_cache cache-zo