`
longzhun
  • 浏览: 361217 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

cassandra日常维护之nodetool cleanup

 
阅读更多

nodetool cleanup 官方的解释是:cassandra在扩容一个节点到新集群的时候,有些数据会复制一份到新节点,然后属于新节点的数据仍然存在那些老节点上。它自己不会主动的去删除。所以在每次扩容之后,你需要在每个老节点上执行cleanup操作。

根据实践:
cleanup操作在执行过程中可能会生成一些临时文件,并且导致IO利用率少许上升,机器负载少许增加,
cleanup是单线程操作,整体上影响不大,不需要关闭压缩。
cleanup是单机行为,也不需要限制节点stream传输。
只要不是业务特别繁忙的时间,尽可放心的逐节点执行。
在执行cleanup之后,节点数据明显减少。

cleanup在扩容之后随时可以执行。也可以指定只cleanup某个keyspace或者columnFamily

nodetool -h 192.168.1.1 [keyspace [cfnames]]

分享到:
评论

相关推荐

    CassandraNT:Cassandra Nodetool 解决方案

    Cassandra 节点工具扩展CassandraNodetool 扩展是一种以最少的配置从 Cassandra 数据库收集指标的解决方案。 该解决方案利用 nodetool 工具从 Cassandra 收集指标。 以下是当前收集的指标:指标小路类别名称指标类型...

    Cassandra 监控脚本

    Linux系统下 1.Python脚本监控cassandra集群节点状态,发送告警邮件; 2.shell 脚本修复异常; 3.crontab 设置定时任务定时执行。

    nosql cassandra学习教程

    Cassandra是一个混合型的非关系的数据库,类似于Google的BigTable。其主要功能比Dynomite(分布式的Key-Value存储系统)更丰富,但支持度却不如文档存储MongoDB(介于关系数据库和非关系数据库之间的开源产品,是非...

    cassandra 实战

    cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战cassandra 实战...

    cassandra安装使用教程

    1、cassandra的安装、维护使用 2、java操作cassandra实例 3、cql使用详解

    DevCenter cassandra客户端

    DevCenter cassandra客户端 DevCenter cassandra客户端 DevCenter cassandra客户端

    Cassandra(apache-cassandra-4.0.1-bin.tar.gz)

    Cassandra(apache-cassandra-4.0.1-bin.tar.gz)是一套开源分布式NoSQL数据库系统。它最初由Facebook开发,用于储存收件箱等简单格式数据,集GoogleBigTable的数据模型与Amazon Dynamo的完全分布式的架构于一身...

    Cassandra(apache-cassandra-3.11.11-bin.tar.gz)

    Cassandra(apache-cassandra-3.11.11-bin.tar.gz)是一套开源分布式NoSQL数据库系统。它最初由Facebook开发,用于储存收件箱等简单格式数据,集GoogleBigTable的数据模型与Amazon Dynamo的完全分布式的架构于一身...

    Cassandra

    The rising popularity of Apache Cassandra rests on its ability to handle very large data sets that include hundreds of terabytes -- and that's why this distributed database has been chosen by ...

    Learning Apache Cassandra - Second Edition

    The book starts by explaining the new features implemented in Cassandra 3.x and get you set up with Cassandra. Then you'll walk through data modeling in Cassandra and the rich feature set available to...

    Apache Cassandra

    Cassandra的主要特点就是它不是一个数据库,而是由一堆数据库节点共同构成的一个分布式网络服务,对Cassandra 的一个写操作,会被复制到其他节点上去,对Cassandra的读操作,也会被路由到某个节点上面去读取。...

    Mastering.Apache.Cassandra.2nd.Edition.1784392618

    Title: Mastering Apache Cassandra, 2nd Edition Author: Nishant Neeraj Length: 322 pages Edition: 2 Language: English Publisher: Packt Publishing Publication Date: 2015-02-27 ISBN-10: 1784392618 ISBN-...

    Cassandra.3.x.High.Availability.2nd.Edition.1786462109

    Set up multiple data centers to enable failover, load balancing, and geographic distribution Add capacity to your cluster with zero downtime Take advantage of high availability features in the native ...

    Cassandra文档

    Cassandra文档

    CassandraJson:查询Cassandra并以Json格式返回结果

    这是一个简单的Eclipse项目,将显示如何将使用Datastax的Java驱动程序进行的Cassandra查询转换为Json格式。 这对于进行某种导入或ETL很有用。 基本上,查询Cassandra并以Json格式返回结果。 入门 对于此示例,我有...

    cassandra介绍

    cassandra介绍

    Learning_Apache_Cassandra

    Learning_Apache_Cassandra .pdf

    spring boot与cassandra集成,使用JPA方式。

    spring boot与cassandra集成,使用JPA方式。

Global site tag (gtag.js) - Google Analytics