dpqvwgr74759 2019-07-30 14:18
浏览 82
已采纳

如何使用Gocql优化Scylla数据库的跨分片查询

I'm using a scylla cluster with 9 nodes and replication factor to be 3. One application opens one connections to it, reading and writing data.

However, I notice in the scylla CQL optimization monitoring dashboard, the percentage for cross shard is very high, around 150%.

Is that normal or how can I optimize it.

  • 写回答

1条回答 默认 最新

  • duanqi5114 2019-07-30 19:04
    关注

    First, there is an issue with this metric, and it was removed in the latest dashboard https://github.com/scylladb/scylla-monitoring/issues/659

    Second, the way to reduce cross-shard messages is using Token Aware drivers, if you can. There are two Token Aware drivers at the moment: Go and Java https://docs.scylladb.com/using-scylla/scylla_drivers/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?