透明代理与Docker共存

缘起 因为一些众所周知的原因,这里不能把本文的前因后果说清楚。相信懂者自然懂,不懂的人,也大概率没必要继续看下去。 之前配置透明代理的时候,有两...

June 1, 2020

使用Wireshark完成OpenWrt抓包

最近家里添置了不少物联网设备。现在不少的物联网设备为了方便,都采用配网协议,让用户将Wi-Fi的SSID和密码直接配置上去。这样设备就可以自...

January 4, 2020

MySQL常用的权限操作

添加用户 SQL指令如下: CREATE USER '用户名'@'主机' IDENTIFIED BY '密码'; 例如,要创建在所有主机登录、密...

December 18, 2019

IPVS connection timeout issue

Issue When TCP session is idle for more than 15 mins (900 secs), IPVS connection times out and gets cleared from the connection table. There are two different timeouts — one for IPVS and another one for TCP. Default IPVS timeout value: ipvsadm -l --timeout Timeout (tcp tcpfin udp): 900 120 300 Default TCP timeout value: tcp_keepalive_time = 7200 (seconds) tcp_keepalive_intvl = 75 (seconds) tcp_keepalive_probes = 9 (number of probes) When IPVS timesout, it clears the connection from the table....

September 15, 2018

让LVS更持久

原文转载自 Lvs Persistence 综述 今天遇到了一个问题,客户端psql在连接Greenplum时,静置一段时间后(大约15分钟),随便敲一条select * from x...

September 15, 2018

如何删除repo不为none但tag为none的镜像

在docker中,一个镜像的所有标记(TAG)都被删除,而镜像仍然还在时,我们称之为dangling状态。这种镜像,在通过docker ima...

March 14, 2018