摘要: 可用于生产的版本配置已经添加好并且已经测试过功能。 针对客户端IP对单个域名的分钟级访问。 ingress-nginx cm配置文件 添加下面的配置,主要作用是把xforwardfor的客户端真实IP地址传给remote_address,脚本中的限频就是根据这个客户端的真实IP地址来的,添加set- 阅读全文
posted @ 2026-01-19 09:19 Gshelldon 阅读(28) 评论(0) 推荐(0)
摘要: root@tpl-ops:~# cat /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: ens160: dhcp4: false 阅读全文
posted @ 2025-11-21 13:47 Gshelldon 阅读(17) 评论(0) 推荐(0)
摘要: wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb percona- 阅读全文
posted @ 2025-07-02 09:13 Gshelldon 阅读(90) 评论(0) 推荐(0)
摘要: 主要是记录编译部分 # 镜像很小,打包好之后只有600多M webdevops/php-nginx:8.1-alpine php -v 8.1 install-swoole.sh #!/bin/bash apk update apk add --no-cache autoconf gcc g++ a 阅读全文
posted @ 2025-02-12 13:44 Gshelldon 阅读(244) 评论(0) 推荐(0)
摘要: nginx中间人代理实现七层https代理后端https cat alijms.esb.com.conf server { listen 443 ssl; server_name alijms.esb.com; ssl_certificate certs/esb.com.pem; ssl_certi 阅读全文
posted @ 2024-12-17 11:55 Gshelldon 阅读(78) 评论(0) 推荐(0)
摘要: postgres 读书笔记 第1章 预写日志 预写日志在客户端写入数据的时候首先写入预写日志中,从原理上来说因为是顺序写性能会更好。 预写日志的配置。 在编译安装的时候可以指定--with-wal-segsize=size修改默认的预写日志文件大小。 wal_level=replica fsync= 阅读全文
posted @ 2024-11-19 16:27 Gshelldon 阅读(108) 评论(0) 推荐(0)
摘要: 基于l 版本。 1、osd 状态 ceph -s active:PG 处于活动状态,正在处理读写请求。 clean:PG 中的所有对象都是最新的,所有副本都已同步,没有缺失或未完成的操作。 scrubbing:PG 正在进行数据校验过程,确保所有数据都是一致的。Scrubbing 是定期的检查,以防 阅读全文
posted @ 2024-10-08 14:54 Gshelldon 阅读(319) 评论(0) 推荐(0)
摘要: 架构 4层代理配置 stream { upstream backend { server 10.4.7.30:80; } server { listen 80; proxy_pass backend; proxy_connect_timeout 1s; proxy_protocol on ; # 主 阅读全文
posted @ 2024-09-14 10:20 Gshelldon 阅读(533) 评论(0) 推荐(0)
摘要: gzip /etc/yum.repos.d/* # base curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-7-anon.repo cat>/etc/y 阅读全文
posted @ 2024-07-15 16:01 Gshelldon 阅读(993) 评论(0) 推荐(0)
摘要: 背景:k8s集群是使用的calico IPIP模式的网络。 1、通过sar查看异常的网口 # 没秒统计一次,按ctrl + c结束 sar -n DEV 1 上一个步骤能看到是哪个网络接口的流量异常。 然后根据获取到的网口名称。过滤查找到是哪个pod IP在过滤出pod route -n | gre 阅读全文
posted @ 2024-07-12 17:19 Gshelldon 阅读(46) 评论(0) 推荐(0)