Cassandra nodetool详解

2024-06-02 16:58
文章标签 详解 cassandra nodetool

本文主要是介绍Cassandra nodetool详解,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

 

Cassandra自带一个nodetool工具,安装目录/bin/nodetool

 

nodetool help:帮助信息

[cassandra@node3 bin]$ ./nodetool help
usage: nodetool [(-p <port> | --port <port>)] [(-h <host> | --host <host>)][(-pwf <passwordFilePath> | --password-file <passwordFilePath>)][(-pw <password> | --password <password>)][(-u <username> | --username <username>)] <command> [<args>]The most commonly used nodetool commands are:assassinate                  强制删除节点bootstrap                    Monitor/manage node's bootstrap processcleanup                      触发不再属于某个节点的键的立即清除。默认情况下,清除所有键空间(常规合并过程最终总会删除这些数据)clearsnapshot                清楚快照compact                      对一个或多个表强制(主)压缩,或对给定的SSTables强制用户定义的压缩compactionhistory            打印压缩的历史信息compactionstats              打印压缩的统计信息decommission                 退服节点,让该节点不再提供服务(退服节点执行)describecluster              打印集群信息describering                 Shows the token ranges info of a given keyspacedisableautocompaction        为给定的键空间和表关闭自动压缩disablebackup                禁用增量备份disablebinary                Disable native transport (binary protocol)disablegossip                Disable gossip (effectively marking the node down)disablehandoff               禁止存储和传递提示移交disablehintsfordc            禁止向数据中心传输提示移交disablethrift                Disable thrift serverdrain                        停止监听来自客户端和其他节点的命令。刷新所有表enableautocompaction         为给定的键空间和表启用自动压缩enablebackup                 开启增量备份enablebinary                 Reenable native transport (binary protocol)enablegossip                 Reenable gossipenablehandoff                重新启用当前节点上存储和传递提示移交enablehintsfordc             为以前禁用的数据中心开启提示移交enablethrift                 Reenable thrift serverfailuredetector              Shows the failure detector information for the clusterflush                        刷新memtable到sstable。flush keyspace [table]garbagecollect               Remove deleted data from one or more tablesgcstats                      Print GC Statisticsgetcompactionthreshold       查看表的合并阈值getcompactionthroughput      查看系统中压缩/合并的吞吐量上限 MB/sgetconcurrentcompactors      Get the number of concurrent compactors in the system.getendpoints                 Print the end points that owns the keygetinterdcstreamthroughput   Print the Mb/s throughput cap for inter-datacenter streaming in the systemgetlogginglevels             打印日志级别getsstables                  Print the sstable filenames that own the keygetstreamthroughput          Print the Mb/s throughput cap for streaming in the systemgettimeout                   Print the timeout of the given type in msgettraceprobability          Print the current trace probability valuegossipinfo                   打印这个节点通过gossip向其他节点传递的参数help                         打印帮助信息info                         打印节点信息invalidatecountercache       清除计数器缓存invalidatekeycache           清除键缓存invalidaterowcache           清除行缓存join                         Join the ringlistsnapshots                显示快照move                         重新分配token。 move +节点开始令牌  netstats                     Print network information on provided host (connecting node by default)pausehandoff                 暂停提示移交传输进程proxyhistograms              显示了读请求、写请求和区间请求的延迟。在这里所请求的节点作为协调器。rangekeysample               Shows the sampled keys held across all keyspacesrebuild                      从其他节点重建数据rebuild_index                重建二级索引,与修复一样,CPU和I/O开销很大refresh                      在不重启的情况下将新放置的SSTables加载到系统中 refreshsizeestimates         Refresh system.size_estimatesreloadlocalschema            Reload local node schema from system tablesreloadtriggers               Reload trigger classesrelocatesstables             Relocates sstables to the correct diskremovenode                   移除节点repair                       通过逆熵修复表replaybatchlog               Kick off batchlog replay and wait for finishresetlocalschema             Reset node's local schema and resyncresumehandoff                Resume提示移交传输进程ring                         查看token环信息scrub                        Scrub (rebuild sstables for) one or more tablessetcachecapacity             设置全局键、行和计数器缓存容量(以MB为单位)setcachekeystosave           覆盖为保持缓存元素所配置的设置,即一个文件中要保持多少个键缓存和行缓存setcompactionthreshold       设置合并阈值的最小和最大值setcompactionthroughput      为系统中的压缩/合并设吞吐量上限MB/s,或设置0以禁用节流setconcurrentcompactors      Set number of concurrent compactors in the system.sethintedhandoffthrottlekb   控制提示传送时使用的带宽setinterdcstreamthroughput   Set the Mb/s throughput cap for inter-datacenter streaming in the system, or 0 to disable throttlingsetlogginglevel              动态设置日志级别setstreamthroughput          Set the Mb/s throughput cap for streaming in the system, or 0 to disable throttlingsettimeout                   Set the specified timeout in ms, or 0 to disable timeoutsettraceprobability          设置将任何给定请求跟踪到值的概率。0为禁用,1为所有请求启用,0为默认值snapshot                     创建快照status                       打印集群信息statusbackup                 查看增量备份状态statusbinary                 Status of native transport (binary protocol)statusgossip                 打印gossip状态statushandoff                打印当前节点提交移交状态statusthrift                 打印thrift服务状态stop                         Stop compactionstopdaemon                   Stop cassandra daemontablehistograms              打印给定表的统计直方图tablestats                   打印表统计信息toppartitions                Sample and print the most active partitions for a given column familytpstats                      打印线程池统计信息truncatehints                截断本地节点上的所有提示移交,或截断指定端点的提示移交.upgradesstables              升级操作之后运行,将存储的数据文件转换为最新的格式。verify                       Verify (check data checksum for) one or more tablesversion                      打印cassandra版本viewbuildstatus              Show progress of a materialized view buildgetmaxhintwindow        4.0新增,打印最大的提示移交窗口handoffwindow          打印当前提示移交的切换窗口
    setmaxhintwindow	         设置指定的最大提示窗口

 

See 'nodetool help <command>' for more information on a specific command.

这篇关于Cassandra nodetool详解的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1024550

相关文章

Python使用Tenacity一行代码实现自动重试详解

《Python使用Tenacity一行代码实现自动重试详解》tenacity是一个专为Python设计的通用重试库,它的核心理念就是用简单、清晰的方式,为任何可能失败的操作添加重试能力,下面我们就来看... 目录一切始于一个简单的 API 调用Tenacity 入门:一行代码实现优雅重试精细控制:让重试按我

Python标准库之数据压缩和存档的应用详解

《Python标准库之数据压缩和存档的应用详解》在数据处理与存储领域,压缩和存档是提升效率的关键技术,Python标准库提供了一套完整的工具链,下面小编就来和大家简单介绍一下吧... 目录一、核心模块架构与设计哲学二、关键模块深度解析1.tarfile:专业级归档工具2.zipfile:跨平台归档首选3.

idea的终端(Terminal)cmd的命令换成linux的命令详解

《idea的终端(Terminal)cmd的命令换成linux的命令详解》本文介绍IDEA配置Git的步骤:安装Git、修改终端设置并重启IDEA,强调顺序,作为个人经验分享,希望提供参考并支持脚本之... 目录一编程、设置前二、前置条件三、android设置四、设置后总结一、php设置前二、前置条件

python中列表应用和扩展性实用详解

《python中列表应用和扩展性实用详解》文章介绍了Python列表的核心特性:有序数据集合,用[]定义,元素类型可不同,支持迭代、循环、切片,可执行增删改查、排序、推导式及嵌套操作,是常用的数据处理... 目录1、列表定义2、格式3、列表是可迭代对象4、列表的常见操作总结1、列表定义是处理一组有序项目的

python使用try函数详解

《python使用try函数详解》Pythontry语句用于异常处理,支持捕获特定/多种异常、else/final子句确保资源释放,结合with语句自动清理,可自定义异常及嵌套结构,灵活应对错误场景... 目录try 函数的基本语法捕获特定异常捕获多个异常使用 else 子句使用 finally 子句捕获所

C++11范围for初始化列表auto decltype详解

《C++11范围for初始化列表autodecltype详解》C++11引入auto类型推导、decltype类型推断、统一列表初始化、范围for循环及智能指针,提升代码简洁性、类型安全与资源管理效... 目录C++11新特性1. 自动类型推导auto1.1 基本语法2. decltype3. 列表初始化3

SQL Server 中的 WITH (NOLOCK) 示例详解

《SQLServer中的WITH(NOLOCK)示例详解》SQLServer中的WITH(NOLOCK)是一种表提示,等同于READUNCOMMITTED隔离级别,允许查询在不获取共享锁的情... 目录SQL Server 中的 WITH (NOLOCK) 详解一、WITH (NOLOCK) 的本质二、工作

springboot自定义注解RateLimiter限流注解技术文档详解

《springboot自定义注解RateLimiter限流注解技术文档详解》文章介绍了限流技术的概念、作用及实现方式,通过SpringAOP拦截方法、缓存存储计数器,结合注解、枚举、异常类等核心组件,... 目录什么是限流系统架构核心组件详解1. 限流注解 (@RateLimiter)2. 限流类型枚举 (

Java Thread中join方法使用举例详解

《JavaThread中join方法使用举例详解》JavaThread中join()方法主要是让调用改方法的thread完成run方法里面的东西后,在执行join()方法后面的代码,这篇文章主要介绍... 目录前言1.join()方法的定义和作用2.join()方法的三个重载版本3.join()方法的工作原

Spring AI使用tool Calling和MCP的示例详解

《SpringAI使用toolCalling和MCP的示例详解》SpringAI1.0.0.M6引入ToolCalling与MCP协议,提升AI与工具交互的扩展性与标准化,支持信息检索、行动执行等... 目录深入探索 Spring AI聊天接口示例Function CallingMCPSTDIOSSE结束语