![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
中间件
岁月呀
往事如风随风散
展开
-
mongodb常用命令
1、查看WiredTiger内部缓存占用db.runCommand( { serverStatus: 1 } ).wiredTiger.cache["bytes currently in the cache"]2、运行时修改mongodb可缓存数据db.adminCommand({setParameter: 1, wiredTigerEngineRuntimeConfig: "cache_size=2G"})3、查看存储引擎db.serverStatus();4、查看数据库show d原创 2021-06-03 01:18:57 · 434 阅读 · 0 评论 -
redis cluster基本命令
下面是cluster 的一些常用命令cluster info 查看集群信息cluster keyslot key 查看某个key在哪个slot槽cluster nodes 查看集群节点信息,slot槽区间段分布 1) CLUSTER <subcommand> arg arg ... arg. Subcommands are: 2) ADDSLOTS <slot> [slot ...] -- Assign slots to current node. 3) BU.原创 2020-08-07 09:49:35 · 446 阅读 · 0 评论