- 負荷をかける
[ec2-user@ip-172-31-26-19 YCSB]$ ./bin/ycsb run cassandra-cql -p hosts=cassandra.ap-northeast-1.amazonaws.com -p port=9142 -P ./workloads/workloada_keyspaces -s -threads 100 -p cassandra.writeconsistencylevel=LOCAL_QUORUM -p cassandra.ssl=true -p cassandra.coreconnections=1000 -p cassandra.maxconnections=2000 -jvm-args=" -Djavax.net.ssl.trustStore=/home/ec2-user/.cassandra/cassandra_truststore.jks -Djavax.net.ssl.trustStorePassword=amazon"
- netstat でコネクションを確認する。
[ec2-user@ip-172-31-26-19 ~]$ netstat -alp|grep ':9142 ESTABLISHED'|head -10 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp6 0 0 ip-172-31-26-19.a:45338 ip-172-31-30-103.a:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:47208 ip-172-31-30-103.a:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:43314 ip-172-31-30-103.a:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:52406 ip-172-31-46-196.a:9142 ESTABLISHED 4907/java tcp6 0 1187 ip-172-31-26-19.a:53304 ip-172-31-46-196.a:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:56536 ip-172-31-46-196.a:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:36662 ip-172-31-3-159.ap:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:46036 ip-172-31-30-103.a:9142 ESTABLISHED 4907/java tcp6 0 0 ip-172-31-26-19.a:58246 ip-172-31-46-196.a:9142 ESTABLISHED 4907/java [ec2-user@ip-172-31-26-19 ~]$ netstat -alp|grep ':9142 ESTABLISHED'|wc -l (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) 3001 ★総コネクション数 [ec2-user@ip-172-31-26-19 ~]$ netstat -alpW|grep ':9142 ESTABLISHED'|perl -lane 'print $F[4]'|sort|uniq -c (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) 1001 ip-172-31-3-159.ap-northeast-1.compute.internal:9142 1000 ip-172-31-30-103.ap-northeast-1.compute.internal:9142 1000 ip-172-31-46-196.ap-northeast-1.compute.internal:9142 ★接続しているインタフェースは 3 種類で、1000 コネクションずつ。1001 はコントロール用コネクションがあるため。