摘要:部署otter,启动node的时候一直报错: 2023-03-21 10:39:24.615 [main-SendThread(10.224.250.251:8080)] WARN org.apache.zookeeper.ClientCnxn - Session 0x0 for server 12 阅读全文
java.io.IOException: Packet len1213486160 is out of range!
2023-03-21 11:28 by abce, 1131 阅读, 0 推荐, 收藏,Clickhouse集群扩容和收缩
2023-03-17 15:37 by abce, 941 阅读, 0 推荐, 收藏,
摘要:集群节点信息 节点 IP Clickhouse node1 21.198.165.19 Clickhouse node2 21.198.165.20 Clickhouse node3 21.198.165.21 集群配置信息 没有做分片,只是做了副本。 <remote_servers> <!-- 集 阅读全文
MySQL报Got timeout writing communication packets错误
2023-03-12 15:07 by abce, 3200 阅读, 0 推荐, 收藏,
摘要:应用日志显示连接数据库超时,查看MySQL的错误日志,发现大量的如下错误: 2023-02-14T14:19:48.330743+08:00 696688 [Note] [MY-010914] [Server] Aborted connection 696688 to db: 'abce' user 阅读全文
MySQL8中如何估算redo日志的大小
2023-03-12 15:07 by abce, 875 阅读, 0 推荐, 收藏,
摘要:先说公式: mysql> pager grep sequence; show engine innodb status\G select sleep(60); show engine innodb status\G nopager; mysql> select (<second_value> - < 阅读全文
MongoDB找出冗余和未被使用的索引
2023-03-07 14:31 by abce, 89 阅读, 0 推荐, 收藏,
摘要:找出冗余的索引 var ldb = db.adminCommand( { listDatabases: 1 } ); for ( i = 0; i < ldb.databases.length; i++ ) { if ( ldb.databases[i].name != 'admin' && ldb 阅读全文
【MongoDB】移除复制集成员
2023-03-07 09:26 by abce, 268 阅读, 0 推荐, 收藏,
摘要:1.使用rs.remove()(1)关闭mongodb实例先关闭要移除的mongodb实例 db.shutdownServer() (2)连接到复制集的primary节点使用db.hello()查看复制集的信息 > db.hello() { "topologyVersion" : { "proces 阅读全文
Windows系统中卸载文件系统
2023-03-07 09:10 by abce, 138 阅读, 0 推荐, 收藏,
摘要:1.查看挂载的盘符 net use 2.卸载X盘符挂载的文件系统 net use X: /delete 3.其它手动卸载Windows系统中所有已挂载的文件系统 net use * /delete 自动卸载Windows系统中所有已挂载的文件系统 net use * /delete /y 阅读全文
【SQLServer】列出所有login账号
2023-03-03 15:32 by abce, 129 阅读, 0 推荐, 收藏,
摘要:Get the list of all Login Accounts in a SQL Server SELECT name AS Login_Name, type_desc AS Account_Type FROM sys.server_principals WHERE TYPE IN ('U', 阅读全文
【MongoDB】复制集添加新成员
2023-03-01 13:42 by abce, 116 阅读, 0 推荐, 收藏,
摘要:前提条件: 1.一个活跃状态的复制集 2.要增加的新节点 1.启动要添加的mongodb实例 启动过程要指定好复制集名称。 2.确认已有复制集的状态,登录到主节点 3.添加新的成员 rs.add( { host: "mongodb4.example.com:27017", priority: 0, 阅读全文
【MongoDB】复制集转换成单机模式
2023-02-27 20:50 by abce, 995 阅读, 0 推荐, 收藏,
摘要:提醒:1.不建议生产环境使用单机模式2.切换需要停机时间(需要移除复制参数)3.切换前建议关闭应用,避免有写操作生产环境是一个三节点的复制集 [ { "_id" : 0, "name" : "node01:27017", "stateStr" : "PRIMARY" }, { "_id" : 1, 阅读全文