0

我正在尝试重新索引我的一个索引,删除旧数据和完整索引。当我尝试这样做时。节点立即宕机,我无法运行 nodetool 命令,例如 nodetool status、nodetool tpstats。此外,我看不到 CPU、磁盘、网络。节点空闲。当我查看我机器上的进程时,我可以看到这是 cassandra 进程。

我的 schema.xml 就是这样

<field indexed="true" name="key1"   stored="true" type="StrField"/>
<field indexed="true" name="key2"   stored="true" type="StrField"/>
<field indexed="true" name="key3"   stored="true" type="StrField"/>
<field indexed="true" name="key4"   stored="true" type="TrieIntField"/>
<field indexed="true" name="key5"   stored="true" type="StrField"/>
<field indexed="true" name="key6"   stored="true" type="TrieIntField"/>
<field indexed="true" name="key7"   stored="true" type="StrField"/>
<field indexed="true" name="key8"   stored="true" type="StrField"/>
<field indexed="true" name="key9"   stored="true" type="StrField"/>
<field indexed="true" name="key10"  stored="true" type="StrField"/>
<field indexed="true" name="key11"  stored="true" type="StrField"/>
<field indexed="true" name="key12"  stored="true" type="TrieDateField"/>
<field indexed="true" name="key13"  stored="true" type="StrField"/>
<field indexed="true" name="key14"  stored="true" type="StrField"/>
<field indexed="true" name="key15"  stored="true" type="StrField"/>
<field indexed="true" name="key16"  stored="true" type="StrField"/>
<field indexed="true" name="key17"  stored="true" type="StrField"/>
<field indexed="true" name="key18"  stored="true" type="StrField"/>
<field indexed="true" name="key19"  stored="true" type="StrField"/>
<field indexed="true" name="key20"  stored="true" type="TrieIntField"/>
<field indexed="true" name="key21"  stored="true" type="TrieIntField"/>
<field indexed="true" name="col1"   stored="true" type="TrieDoubleField"/>
<field indexed="true" name="col2"   stored="true" type="TrieDoubleField"/>
<field indexed="true" name="col3"   stored="true" type="TrieLongField"/>
<uniqueKey>(key1 ... key21)</uniqueKey>

爪哇设置

<pre>
-javaagent:/usr/share/dse/cassandra/lib/jamm-0.3.0.jar
-XX:+UseThreadPriorities
-XX:ThreadPriorityPolicy=42
-Xms32G
-Xmx32G
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/disk1/cassandra/dumps/cassandra-1477648403-pid42715.hprof
-Xss512k
-XX:+AlwaysPreTouch
-XX:-UseBiasedLocking
-XX:StringTableSize=1000003
-XX:+UseTLAB
-XX:+ResizeTLAB
-XX:CompileCommandFile=/etc/dse//cassandra/hotspot_compiler
-XX:+UseG1GC
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:MaxGCPauseMillis=200
-XX:ParallelGCThreads=16 changed defaults settings
-XX:ConcGCThreads=16 changed defaults settings
-XX:InitiatingHeapOccupancyPercent=40
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintHeapAtGC
-XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintPromotionFailure
-XX:PrintFLSStatistics=1
-Xloggc:/var/log/cassandra/gc-1477648403.log
-Xloggc:/var/log/cassandra/gc.log
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=10
-XX:GCLogFileSize=10M

我开始重新索引时的暂停时间

2016-10-27T22:25:36.381+0200:16133.424:应用程序线程停止的总时间:28.6449951 秒,停止线程花费:0.0000877 秒
2016-10-27T22:25:36.396+0200:16133.440:应用程序线程停止的总时间:0.0152024 秒,停止线程花费:0.0001349 秒
2016-10-27T22:25:36.409+0200:16133.452:停止应用程序线程的总时间:0.0123116 秒,停止线程花费:0.0000487 秒
2016-10-27T22:25:50.745+0200:16147.788:应用程序线程停止的总时间:14.3359300 秒,停止线程花费:0.0000616 秒
2016-10-27T22:25:50.761+0200:16147.804:应用程序线程停止的总时间:0.0159109 秒,停止线程花费:0.0001860 秒
2016-10-27T22:25:50.774+0200:16147.818:应用程序线程停止的总时间:0.0136620 秒,停止线程花费:0.0000423 秒
2016-10-27T22:26:04.853+0200:16161.897:应用程序线程停止的总时间:14.0787608 秒,停止线程花费:0.0000590 秒
2016-10-27T22:26:04.871+0200:16161.914:停止应用程序线程的总时间:0.0171435 秒,停止线程花费:0.0001669 秒
2016-10-27T22:26:18.949+0200:16175.993:应用程序线程停止的总时间:14.0786946 秒,停止线程花费:0.0000607 秒
2016-10-27T22:26:18.968+0200:16176.011:应用程序线程停止的总时间:0.0184226 秒,停止线程花费:0.0002338 秒
2016-10-27T22:26:18.979+0200:16176.022:应用程序线程停止的总时间:0.0108393 秒,停止线程花费:0.0000463 秒
2016-10-27T22:26:33.210+0200:16190.254:应用程序线程停止的总时间:14.2314474 秒,停止线程花费:0.0000724 秒
2016-10-27T22:26:33.228+0200:16190.272:应用程序线程停止的总时间:0.0172137 秒,停止线程花费:0.0000845 秒
2016-10-27T22:26:33.243+0200:16190.286:应用程序线程停止的总时间:0.0147185 秒,停止线程花费:0.0000770 秒
2016-10-27T22:26:47.315+0200:16204.358:应用程序线程停止的总时间:14.0715678 秒,停止线程花费:0.0001087 秒
2016-10-27T22:26:47.335+0200:16204.379:应用程序线程停止的总时间:0.0203852 秒,停止线程花费:0.0002385 秒
2016-10-27T22:26:47.347+0200:16204.391:应用程序线程停止的总时间:0.0120962 秒,停止线程花费:0.0001291 秒
2016-10-27T22:27:01.590+0200:16218.633:应用程序线程停止的总时间:14.2425348 秒,停止线程花费:0.0000658 秒
2016-10-27T22:27:01.608+0200:16218.652:应用程序线程停止的总时间:0.0175375 秒,停止线程花费:0.0002150 秒
2016-10-27T22:27:01.622+0200:16218.665:应用程序线程停止的总时间:0.0134276 秒,停止线程花费:0.0000305 秒
2016-10-27T22:27:15.820+0200:16232.863:应用程序线程停止的总时间:14.1976605 秒,停止线程花费:0.0000580 秒
2016-10-27T22:27:15.839+0200:16232.883:应用程序线程停止的总时间:0.0181183 秒,停止线程花费:0.0001094 秒
2016-10-27T22:27:15.854+0200:16232.898:应用程序线程停止的总时间:0.0146620 秒,停止线程花费:0.0000391 秒
2016-10-27T22:27:29.911+0200:16246.954:应用程序线程停止的总时间:14.0568599 秒,停止线程花费:0.0000689 秒
2016-10-27T22:27:29.930+0200:16246.973:应用程序线程停止的总时间:0.0184539 秒,停止线程花费:0.0002259 秒
2016-10-27T22:27:29.942+0200:16246.985:应用程序线程停止的总时间:0.0120611 秒,停止线程花费:0.0000643 秒
2016-10-27T22:27:44.239+0200:16261.282:应用程序线程停止的总时间:14.2971941 秒,停止线程花费:0.0000682 秒
2016-10-27T22:27:44.256+0200:16261.299:应用程序线程停止的总时间:0.0165530 秒,停止线程花费:0.0001018 秒
2016-10-27T22:27:44.268+0200:16261.312:应用程序线程停止的总时间:0.0126950 秒,停止线程花费:0.0000236 秒
2016-10-27T22:27:58.407+0200:16275.451:应用程序线程停止的总时间:14.1388198 秒,停止线程花费:0.0000495 秒
2016-10-27T22:27:58.426+0200:16275.470:应用程序线程停止的总时间:0.0189899 秒,停止线程花费:0.0001773 秒
2016-10-27T22:27:58.437+0200:16275.480:应用程序线程停止的总时间:0.0104863 秒,停止线程花费:0.0000825 秒
2016-10-27T22:28:12.621+0200:16289.664:应用程序线程停止的总时间:14.1838416 秒,停止线程花费:0.0000498 秒
2016-10-27T22:28:12.638+0200:16289.681:应用程序线程停止的总时间:0.0167055 秒,停止线程花费:0.0002064 秒
2016-10-27T22:28:12.652+0200:16289.696:应用程序线程停止的总时间:0.0140258 秒,停止线程花费:0.0000369 秒

这是我的 dstat 结果

阅读命令|运行 blk new| 免费使用buff缓存| 进出| 阅读令状| int csw |usr sys idl wai hiq siq| 接收发送
   0 0.50 |1.0 0 0.4|39.4G 47.9M 22.0G 1384M| 0 0 | 0 7782B| 599 3866 | 3 0 97 0 0 0|2102B 1587B
   0 0.40 |1.0 0 0.1|39.4G 47.9M 22.0G 1384M| 0 0 | 0 2458B|3448 3917 | 3 0 97 0 0 0|1533B 1212B
   0 1.50 |1.1 0 0.3|39.4G 47.9M 22.0G 1387M| 0 0 | 0 8192B| 575 3888 | 3 0 97 0 0 0|1448B 993B
   0 0.80 |4.2 0 0|39.4G 47.9M 22.0G 1386M| 0 0 | 0 5325B|5308 4954 | 18 0 82 0 0 0|1631B 1109B
   0 0.20 |1.0 0 0.2|39.4G 47.9M 22.0G 1386M| 0 0 | 0 2048B| 792 4099 | 3 0 97 0 0 0|2016B 1670B
   0 0.90 |1.0 0 0|39.4G 47.9M 22.0G 1388M| 0 0 | 0 5325B| 988 3838 | 3 0 97 0 0 0|1697B 1150B
   0 0.20 |1.0 0 0.4|39.4G 47.9M 22.0G 1389M| 0 0 | 0 1638B| 624 3851 | 3 0 97 0 0 0|1559B 1126B
   0 0.60 |1.0 0 0.1|39.4G 47.9M 22.0G 1390M| 0 0 | 0 5734B| 698 3801 | 3 0 97 0 0 0|1654B 1091B
   0 0.60 |7.4 0 0|39.4G 47.9M 22.0G 1386M| 0 0 | 0 4506B|5171 5278 | 18 0 82 0 0 0|1512B 1402B
   0 0.50 |1.0 0 0|39.4G 47.9M 22.0G 1389M| 0 0 | 0 2048B| 604 3813 | 3 0 97 0 0 0|1669B 1064B
   0 0.70 |1.1 0 202|39.4G 47.9M 22.0G 1375M| 0 0 | 0 9011B|2527 5829 | 3 1 96 0 0 0|2682B 6059B
   0 0.50 |1.2 0 126|39.4G 47.9M 22.0G 1379M| 0 0 | 0 10k| 870 5047 | 3 0 96 0 0 0|2179B 3525B
   0 0.40 |4.1 0 0.3|39.4G 48.0M 22.0G 1380M| 0 0 | 0 2458B|6802 5359 | 18 0 82 0 0 0|1723B 1943B
   0 3.00 |1.0 0 0.1|39.4G 48.0M 22.0G 1384M| 0 0 | 0 19k| 594 3874 | 3 0 97 0 0 0|2028B 1434B
   0 0.20 |1.0 0 0|39.4G 48.0M 22.0G 1386M| 0 0 | 0 2867B|1622 3889 | 3 0 97 0 0 0|2070B 1449B
   0 0.60 |1.0 0.1 0|39.4G 48.0M 22.0G 1387M| 0 0 | 0 4506B| 604 3837 | 3 0 97 0 0 0|2043B 1369B
4

0 回答 0