上一页 1 2 3 4 5 6 7 8 9 10 ··· 70 下一页
摘要: #创建测试表 create table tbl_pathman_test (id bigint,info text, ctime timestamp without time zone not null); 1. #按天分区,创建30个分区 #插入12条数据,每天一条 insert into tbl 阅读全文
posted @ 2022-05-19 14:04 littlevigra 阅读(76) 评论(2) 推荐(0) 编辑
摘要: 1. https://pganalyze.com/docs/log-insights/server/S5 More generally, often out of memory occurs when operating a combination of too high work_mem toge 阅读全文
posted @ 2022-05-18 14:01 littlevigra 阅读(304) 评论(3) 推荐(0) 编辑
摘要: 1. set work_mem="500MB"; (9条消息) PostgreSQL(三) 内存参数优化和原理(work_mem)内存表 pgfincore插件使用方法_是个好男人呀的博客-CSDN博客_postgresql 内存表 阅读全文
posted @ 2022-05-14 11:41 littlevigra 阅读(58) 评论(0) 推荐(0) 编辑
摘要: http { proxy_headers_hash_bucket_size 1024; types_hash_bucket_size 1024; #server_tokens off; more_clear_headers Server; include mime.types; default_ty 阅读全文
posted @ 2022-04-29 16:52 littlevigra 阅读(5530) 评论(0) 推荐(0) 编辑
摘要: 1. keepalived的原理 在传统的物理网络中,可以通过 keepalived 的 VRRP 协议协商主备状态,其原理是:主设备周期性发送免费 ARP 报文刷新上联交换机的 MAC 表或终端 ARP 表,触发 VIP 迁移到主设备上。 2. 开启组播功能 打开 VPC 组播开关;同时在 kee 阅读全文
posted @ 2022-04-23 11:03 littlevigra 阅读(1985) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash RECORD_TIME=`date '+%Y-%m-%d %H-%M-%S'` #获取现在的负载,如果大于30,记录active的SQL LOAD50=`/usr/bin/w|grep 'load average'|awk -F [':'] '{print $4}'|awk 阅读全文
posted @ 2022-04-22 10:59 littlevigra 阅读(38) 评论(0) 推荐(0) 编辑
摘要: if [ `expr $a \> $b` -eq 0 ];then echo $b is bigger else echo $a is bigger fi [root@tengxunyunslave wallog]# cat /opt/monitor_load1.sh #!/bin/bash REC 阅读全文
posted @ 2022-04-19 11:36 littlevigra 阅读(398) 评论(0) 推荐(0) 编辑
摘要: python3安装后’yum’命令执行会报错,需要修改以下配置: /usr/bin/yum: 将文件第一行改为/usr/bin/python2.7。(2.7.x也改为2.7)/usr/libexec/urlgrabber-ext-down: 将文件第一行改为/usr/bin/python2.7。 参 阅读全文
posted @ 2022-04-14 14:38 littlevigra 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1. etcd使用的是raft协议, raft 协议已经被不少的分布式数据库中使用,定义明确简单,实现方便,对比PAXOS协议(之前写过 raft 和 paxos 相关协议的文字), leader, follower, candidate 三种服务器的状态, 在RAFT 集群中的所有服务器中有体现, 阅读全文
posted @ 2022-04-12 15:40 littlevigra 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1. linux系统1、导dump,cd到tomcat指定的jdk的bin目录下执行 jmap -dump: format=b,file=文件名 pid 2、导jstack, 在jdk的bin目录下执行: jstack pid > a1.txt,间隔几秒在执行一次jstack pid > a2.tx 阅读全文
posted @ 2022-03-31 15:07 littlevigra 阅读(474) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 70 下一页