QoS 命令列表,命令大全

QoS 命令列表、命令大全。
QoS 命令说明telnet 用法示例http 用法示例
cd设定服务上下文,cd 之后所有的命令都是针对该服务cd org.demo.DemoServicehttp://localhost:22222/cd?service=org.demo.DemoService
count展示服务或方法调用次数。暂时只支持 dubbo 协议,不支持 triple 协议;RpcStatus 实现依赖 Active/Limit Filter,需改造count org.demo.DemoService

count org.demo.DemoService methodName
http://localhost:22222/count?service=org.demo.DemoService&method=methodName
disableDetailProfiler关闭 RPC 调用 profiler 工具(细粒度版本)disableDetailProfilerhttp://localhost:22222/disableDetailProfiler
disableRouterSnapshot关闭 RPC 请求 Router 路由结果跟踪disableRouterSnapshothttp://localhost:22222/disableRouterSnapshot
disableSimpleProfiler关闭 RPC 调用 profiler 工具(粗粒度版)disableSimpleProfilerhttp://localhost:22222/disableSimpleProfiler
enableDetailProfiler开启 RPC 调用 profiler 工具(细粒度版本)enableDetailProfilerhttp://localhost:22222/enableDetailProfiler
enableRouterSnapshot开启 RPC 请求 Router 路由结果跟踪,有助于跟踪路由规则执行是否符合预期enableRouterSnapshot org.demo.DemoServicehttp://localhost:22222/enableRouterSnapshot?service=org.demo.DemoService
enableSimpleProfiler开启 RPC 调用 profiler 工具(粗粒度版)enableSimpleProfilerhttp://localhost:22222/enableSimpleProfiler
getAddress查看某个服务的有效 ip 地址列表getAddress org.demo.DemoServicehttp://localhost:22222/getAddress?service=org.demo.DemoService
getConfigdump 当前应用的有效配置getConfighttp://localhost:22222/getConfig
getEnabledRouterSnapshot查看当前 “启用 Router 路由结果跟踪” 的服务列表getEnabledRouterSnapshothttp://localhost:22222/getEnabledRouterSnapshot
getRecentRouterSnapshot查看最近 32 条 “Router 路由结果跟踪” 数据getRecentRouterSnapshothttp://localhost:22222/getRecentRouterSnapshot
gracefulShutdown从注册中心下线当前 ip 实例注册的所有服务,与offline的区别是,该命令会同时通过 tcp 连接告知所有消费方停止调用此实例。

如要恢复,请执行 online 上线所有服务
gracefulShutdownhttp://localhost:22222/gracefulShutdown
help帮助命令helphttp://localhost:22222/help
invoke调用某个 RPC 服务invoke org.demo.DemoService.methodName(1234, “abcd”, {“prop”:“value”})?
live检查当前进程/服务是否存活,可配置为 kubernetes livenesslivehttp://localhost:22222/live
loggerInfo查看当前日志 logger 配置loggerInfohttp://localhost:22222/loggerInfo
ls查看当前所有服务列表lshttp://localhost:22222/ls
metrics查看 metrics 指标,需开启metrics 统计才能看到数据。什么粒度?metricshttp://localhost:22222/metrics
metrics_default查看 metrics 指标 ,需开启metrics 统计才能看到数据。什么粒度?metrics_defaulthttp://localhost:22222/metrics_default
offline从注册中心下线某个或多个服务(包含应用级和接口级地址)offline

offline org.demo.DemoService
http://localhost:22222/offline

http://localhost:22222/offline?service=org.demo.DemoService
offlineApp从注册中心下线某个或多个服务(仅应用级)offlineApp

offlineApp org.demo.DemoService
http://localhost:22222/offlineApp?service=org.demo.DemoService
offlineInterface从注册中心下线某个或多个服务(仅接口级)offlineInterface

offlineInterface org.demo.DemoService
http://localhost:22222/offlineInterface?service=org.demo.DemoService
online将一个或多个服务注册到注册中心(包含应用级和接口级地址)online

online org.demo.DemoService
http://localhost:22222/online?service=org.demo.DemoService
onlineApp将一个或多个服务注册到注册中心(仅应用级)onlineApp

onlineApp org.demo.DemoService
http://localhost:22222/onlineApp?service=org.demo.DemoService
onlineInterface将一个或多个服务注册到注册中心(仅接口级)onlineInterface

onlineInterface org.demo.DemoService
http://localhost:22222/onlineInterface?service=org.demo.DemoService
ps查看当前进程信息,包括监听的端口等pshttp://localhost:22222/ps
publishMetadata发布或更新当前应用Metadata数据(可用于手动更新应用级服务发现元数据)。publishMetadata 10 表示延迟 10s 发布。在3.3.0之前版本的命令为 publish-metadatapublishMetadata

publishMetadata 10
http://localhost:22222/publishMetadata
pwd查看当前服务上下文,与 cd 配合使用pwdhttp://localhost:22222/pwd
quit退出当前 telnet 命令quit
ready检查当前进程/服务是否准备就绪对外服务,可配置为 kubernetes readinessreadyhttp://localhost:22222/ready
select调用方法?和invoke的关系??http://localhost:22222/?
serializeCheckStatus检查当前在序列化白名单中的类列表serializeCheckStatushttp://localhost:22222/serializeCheckStatus
serializeWarnedClasses检查当前在序列化警告名单中的类列表serializeWarnedClasseshttp://localhost:22222/serializeWarnedClasses
setProfilerWarnPercent控制序列化报警频率(仅限在警告名单中的类)setProfilerWarnPercent 0.75http://localhost:22222/setProfilerWarnPercent?k=0.75
shutdown尝试关闭当前 Dubbo 应用(销毁所有资源,重启前无法恢复)shutdownhttp://localhost:22222/shutdown
startup检查当前进程/服务是否已经正常启动,可配置为 kubernetes startupstartuphttp://localhost:22222/startup
switchLogLevel动态调整日志级别switchLogLevel debughttp://localhost:22222/switchLogLevel?k=debug
switchLogger切换日志logger组件。可用 logger 组件,可通过 loggerInfo 查看(切换前请务必确保应用已经加入相关组件依赖)switchLogger log4j2http://localhost:22222/switchLogger?k=log4j2
version查看当前使用的 Dubbo 框架版本versionhttp://localhost:22222/version

最后修改 April 3, 2024: Update doc (#2950) (2f31c0eeae0)