首页   快速返回

aerospike命令行工具asinfo使用     所属分类 aerospike
根据原文翻译整理
Aerospike Information Tool (asinfo)
https://www.aerospike.com/docs/tools/asinfo/


asinfo is a command-line utility that provides an interface to Aerospike's cluster command and control functions. 
This includes the ability to change server configuration parameters while the Aerospike is running.

命令行工具, 可以运行时修改配置参数

/usr/bin/asinfo

-h		IP Address or FQDN of the target Aerospike server. DEFAULT localhost
-p		Service port of the target Aerospike server. DEFAULT 3000
-t		TLS name of host to verify for TLS connection.
-U		Aerospike user name.
-P		Aerospike user password.
-v		Command to send to the target server. If not provided returns a default set of results. See Commands section below.

asinfo -v "namespaces"
requested value  namespaces
value is test;bar


可以使用 Telnet 代替 asinfo 


telnet 127.0.0.1 3003
namespaces
test;bar

注意端口号 Telnet 端口为 3003


常用命令
namespaces
sets  
get-config:context=namespace;id=ns1
set-config:context=namespace;id=ns1;default-ttl=30D
set-config:context=namespace;id=namespaceName;set=setname;set-disable-eviction=true
mesh
node
cluster-name
udf-list
bins
statistics
build
get-config
logs
#IP address and server port for this node
service 
#List of addresses of neighbor cluster nodes to advertise for Application to connect.
services
status
truncate:namespace=namespaceName;set=setName


hist-dump:ns=ns1;hist=ttl

ns1:ttl=100,75516,0,0,0,0,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,5,0,0,0,0,0,13,1,0,0,15,0,1,0,0,0,23,7,0,0,0,0,0,0,8,0,209;

HISTOGRAM is ttl
NUM_BUCKETS is 100


Info Command Reference
https://www.aerospike.com/docs/reference/info/index.html

上一篇     下一篇
2018年度最让人尴尬的新闻

史上最牛逼的幸福公式

aerospike数据保留配置

中国近现代人生22个失误

java程序员情书

往后余生,最懂你的人,是税务