1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

cassandra トラブルシューティング

Last updated at Posted at 2015-04-28

自分用メモです。内容は随時追記します。

compaction がやたら重い

状況

  • 特定の partition key における columns サイズが大きいのが怪しい

対応

  • partition key を細かく分割できるよう、テーブル(columnfamily)の設計を変更する
  • サイズ感としては 100k columns/partition key and 100MB/partition key
  • 怪しいテーブルを見つけるにはログを漁る。
$ grep 'Compacting large row' /var/log/cassandra/system.log

クエリがタイムアウトする

状況

  • Request did not complete within rpc_timeout. が出て結果が返ってこない
  • 特定の row のみで発生する。その row を外せば正常にレスポンスを取得可

=> 特定の row が破損している可能性が高い

対応

$ sudo nodetool scrub {keyspace} {table_name}

参考

replication factor を調べる

cqlsh> SELECT * FROM system.schema_keyspaces;
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?