Huge number of sstables after adding server to existing cluster

痞子三分冷 提交于 2019-12-24 17:29:41

问题


we are running test cassandra cluster of 8 nodes running in single DC using Simple snitch and DateTieredCompactionStrategy Cassandra Version 2.1.3 after adding new node(9th) to the cluster we see that number of sstables on newly joined server roughly equals to sum of all sstables on all servers in the cluster. and that number is huge as tens of thousands of sstables on newly added server.

Q1:is that what we should expect to happen?

Furthermore newly added server seems isn't overloaded, basically there are no pending/scheduled compactions but the number of sstables isn't decreasing.

Q2:what could be the reason of not reducing number of sstables?

Q3:what we need to do to reduce number of sstables per server?

Thanks for your help


回答1:


This is known (unexpected, but not unsurprising) behavior due to the design of DTCS. It will happen, every time, if max_sstable_age_days is below the ttl cutoff. It will also happen when you remove a node from the cluster.

I'm planning on discussing this at C* Summit 2015 if my talk is accepted, and I've proposed an alternative approach to DTCS in https://issues.apache.org/jira/browse/CASSANDRA-9666



来源:https://stackoverflow.com/questions/29431217/huge-number-of-sstables-after-adding-server-to-existing-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!