Cassandra にデータを保存する場合、保存の 70% のパフォーマンスには約 4 ~ 8 ミリ秒かかります。しかし、リクエストの 30% は約 80 ~ 90 ミリ秒かかります。そのため、一部のリクエストに時間がかかる理由を突き止めようとしています。私の疑いでは、これらのリクエストのためにデータセンターを通過している可能性がありますが、確認できません.
また、astyanax を使用する場合は、localhost にピン留めします。これは、ローカルの cassandra コーディネーターに接続するのに役立ちます。ここで使用される主キーは、生成された UUID です。
この問題を解決できる人がいれば、本当に感謝しています。
Write Consistency: CL_ONE
Read Consistency: CL_LOCAL_QUORUM
using Astyanax for java client: 1.56.37
Cassandra version: 1.2.5
キースペース情報は次のとおりです。
CREATE KEYSPACE grd WITH replication = {
'class': 'NetworkTopologyStrategy',
'HYWRCA02': '2',
'CHRLNCUN': '2'
};
CREATE TABLE route (
routeid uuid PRIMARY KEY,
allowdynamicstickyness boolean,
businesskey uuid,
createdby text,
createdtimestamp timestamp,
datapartitionkeyselectorref text,
deletedby text,
deletedtimestamp timestamp,
envcontext text,
lockedbyuser text,
partner text,
routelocationlatitudeselector double,
routelocationlongitudeselector double,
routelocationmaxdistanceselector double,
routename text,
sequence int,
serviceidentifier text,
stalenessinmins int,
status text,
stickykeyselector text,
tags set<text>,
type text,
updatedby text,
updatedtimestamp timestamp,
versionmapnameref text,
versionselector text
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='ALL' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
read_repair_chance=0.100000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
compaction={'class': 'LeveledCompactionStrategy'} AND
compression={'sstable_compression': 'SnappyCompressor'};
ありがとう。