全文検索:
- 08 Ubuntu Nat iptables直 @01_linux:30_ubuntu
- orward=1 ===== SNAT ===== 下記の状態で、eth1側から192.168.100.0/24からのアクセスだけIPマスカレードする。 |enp1s0|グローバル側|10.10.10.76| |enp6s0|ローカル側|192.168.100.76| iptables -A INPUT -m state --state RELATED... D DROP iptables -A FORWARD -i enp6s0 -s 192.168.100.0/24 -j ACCEPT ===== iptables 永続化 ===== 下記で再起動... BLISHED -j ACCEPT -A FORWARD -i enp6s0 -s 192.168.100.0/24 -j ACCEPT COMMIT # NAT *nat -F :POSTROUTING
- 91 PV計算(ページビュー) @01_linux:02_www
- 00MB とすると、 動的コンテンツで20〜30Mbytes 静的コンテンツで2~3Mbytes 100 MB/conn * 80 conn = 8GB 程度のメモリがあればいいってことだから、ちゃんと
- 06 Ubuntu Network設定 @01_linux:30_ubuntu
- transmit-hash-policy: layer3+4 vlans: vlan.100: id: 100 link: bond1 bridges: br0: interfaces: - bond0 addresses: ... earch: [] br1: interfaces: - vlan.100 addresses: - 100.100.0.10/16 gateway4: 100.100.255.254 nameservers:
- 08 qcow2 バックアップ 外部へ取得する場合(online external) @01_linux:08_仮想化:kvm
- p_internal]] ===== ディスク確認 ===== <code> root@hvdev1001:~# virsh domblklist testvm Target Source ----... /code> ===== スナップショット作成 ===== <code> root@hvdev1001:~# virsh snapshot-create-as testvm --name testsn... </code> ==== スナップショット作成後 ==== <code> root@hvdev1001:~# virsh domblklist testvm Target Source ----... ge: testvm.qcow2 file format: qcow2 virtual size: 100 GiB (107374182400 bytes) disk size: 12.9 GiB clus
- 07 レイテンシーとIOPSの関係 @01_linux:09_ベンチマーク
- 上回る場合、特にこの状態が長期間続く場合には、問題が発生していることを 表しています。レイテンシが 100 ms を超えると、たいていの企業アプリケーションにおいて問題が発生します。作業負荷を減らすか、負荷
- 36 LINSTOR Bcache @01_linux:13_storage
- nvmeのSSDを利用したりする。Optane SSDなど <code> lvcreate -l 100%FREE --thinpool ubuntu-vg/CachePool linstor storage-pool create lvmthin oshv1001 LinstorCache ubuntu-vg/CachePool </code> =====... sk └─bcache0 252:0 0 2G 0 disk └─drbd1000 147:1000 0 2G 0 disk zd16 230:16 0 512M 0 disk └─bcache0 252:0 0 2G 0 di
- 15 Ubuntu ZFS zfs_arc_max @01_linux:30_ubuntu
- Most Recently Used (MRU) cache size: 100.0 % 12.8 GiB Metadata cache size (hard
- tuned @01_linux:09_ベンチマーク
- nor <code> ## default # cpufreq-info -p 800000 2201000 ondemand ## virtual-host # cpufreq-info -p 800000 2201000 performance </code> ===== tuned 変更後のパフォーマンス差 ==... "Seq-Write" bw:433MB iops: 423 latency:ms"4":100 "Rand-Read-16K" bw: 56MB iops: 3534 latency... and-Write-4K-QD32" bw:144MB iops:36048 latency:us"1000":41.949081 ### virtual-host "Seq-Re
- 06 AB テスト @01_linux:09_ベンチマーク
- firm/items/ac5a2f53cfa933a37192]] <code> $ ab -n 100 -c 100 http://www.example.co.jp/ </code> |-n 数値|リクエストの総数を数値で指定| |-c 数値|同時に発行するリクエストの数を数値で指定| ===== 実行例 ===== <code> $ ab -n 100 -c 20 http://fl8.jp/ This is ApacheBench, Version... or tests: 1.027 seconds Complete requests: 100 Failed requests: 68 (Connect: 0, Receiv
- 05 KVM Multi-Queue @01_linux:10_network
- KVMのデフォルトだと、並列パケット処理できなくてUDPで大量のアクセスが来た場合、 1つのCPUが100%に張り付いて処理できなくなる。 [[https://access.redhat.com/docu... クライアント側 ==== # iperf3 -c 10.10.102.10 -P 4 -t 100 -b 1G -u === top/htopで確認 === こんな感じでsoft割り込み(si... ed, 0 zombie %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 :... /proc/interrupts | grep virtio0-input 27: 14371000 19775189 0 0 PCI-MSI-edge
- 16 unboundでキャッシュサーバ @01_linux:01_net
- matic: no outgoing-range: 32768 outgoing-num-tcp: 100 incoming-num-tcp: 100 so-rcvbuf: 16777216 so-sndbuf: 16777216 msg-cache-size: 750m msg-cache-slabs: 16... yes use-caps-for-id: no unwanted-reply-threshold: 10000000 prefetch: yes prefetch-key: yes rrset-roundr... shed = 43200 同時リクエスト数 ※デフォルト10 outgoing-num-tcp: 100 incoming-num-tcp: 100 DNS応答が小さくなるため、TCPフォールバックが
- 11 Ubuntu デフォルトエディタをnanoからviへ @01_linux:30_ubuntu
- auto mode 1 /bin/ed -100 manual mode 2 /bin/nano
- 04 Strongswan IKEv2 EAP @01_linux:10_network
- tid=%any right=%any rightsourceip=192.168.100.0/24 rightauth=eap-mschapv2 eap_identity=
- 03 Strongswan IKEv2 with PSK @01_linux:10_network
- a[172.16.0.0/24] ^location^ IP ^ local ^ |tokyo| 100.100.0.100| 10.10.0.0/16| |osaka| 200.200.0.200| 172.16.0.0/24| ===== 1.Install ===== yum install str... subnet=172.16.0.0/24 rightid=@tokyo right=100.100.0.100 rightsubnet=10.10.0.0/16 auto=a
- 50 MySQLベンチマーク(sysbench) @01_linux:11_データベース:01_mysql
- test=oltp \ --db-driver=mysql \ --oltp-table-size=10000 \ --mysql-password=kumolabo \ prepare </code> ... test=oltp \ --db-driver=mysql \ --oltp-table-size=10000 \ --mysql-password=kumolabo \ --num-threads=1 \... -size=N range size for range queries [100] --oltp-point-selects=N number of poin... croseconds to sleep after connection to database [10000] --oltp-user-delay-min=N minimum time