Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

422 total results found

pt-table-sync

MySQL Tools

Usage Print Diff pt-table-sync \ --print \ --chunk-size=1000 \ h=master_host,P=3306,u=root,p=123456,D=mydb,t=mytable \ h=slave_host,P=3306,u=root,p=123456 Execute Diff pt-table-sync \ --execute \ --chunk-size=1000 \ h=master_host,P=3306,u=root,...

mysql
pt-table
database

Latency

Linux Networking

Time Cost curl -o /dev/null -s -w" time_namelookup: %{time_namelookup}s\n\ time_connect: %{time_connect}s\n\ time_appconnect: %{time_appconnect}s\n\ time_pretransfer: %{time_pretransfer}s\n\ time_starttransfer: %{time_starttransfer}s\n\ ...

operating-system
linux
networking
latency
curl

SLS

Aliyun Console

Request URI '/' 分析语法* | select * where request_uri like '/%' and length(request_uri) = 1 扫描模式* | where request_uri like '/%' and length(request_uri) = 1

aliyun
csp
sls

Localhost/127/UnixSocket

MySQL Troubleshooting

question这是 MySQL 客户端的默认行为!当你在配置文件中指定 host=localhost 时,MySQL 客户端会自动尝试使用 Unix socket 连接,但如果 Unix socket 不可用或连接失败,它就会回退到 TCP 连接,并将 localhost 解析为 127.0.0.1。

database
mysql
troubleshooting

Replica

MySQL Quick Start

Grant User CREATE USER 'repl'@'%' IDENTIFIED BY '123'; GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'repl'@'%'; Set Replica CHANGE REPLICATION SOURCE TO SOURCE_HOST='192.168.x.x', SOURCE_PORT=3306, SOURCE_USER='foo', SOURCE_PASSWORD='foo', ...

CDN Setup

Volcengine

内容分发网络 内容分发网络 -> 域名管理 -> 新增域名 设置加速域名,注意记录添加证书。 新增源站,如果是阿里云 OSS,需要添加私有桶的 AccessKey。 修改本地 Host 测试 CDN 是否能正常访问。 测试通过后再修改域名的 CNAME 指向。

csp
volcengine
cdn

CDN

CSP Cost

95 峰值 火山 当 95 峰值为 2000 Mbps,原价费用为 34200 折扣后为 14000 左右,单价为 7元/Mbps 带宽区间 (Mbps) 单价 (元/Mbps/月) 0 – 1,000(含) 18.00 1,001 – 10,000(含) 17.10 10,001 – 20,000(含) 16.20 > 20,000 15.60 阿里云 0 – 500 Mbps 的单价是 18元/Mbps/月,就是折扣没有火山大。 流量区间 单价 (元/Mbps/天) ...

cdn
cost
csp

TSM-SSH

ESXi

启用 TSM-SSH 提示使用后出于安全考虑可再次关闭 在 ESXi 的管理后台开启 TSM-SSH: 主机 -> 操作 -> 服务 -> 启用安全外壳 主机 -> 管理 -> 服务 找到名为 TSM-SSH 的服务项 点击它并选择启动 ✅ 启动后,ESXi 就会开放 22 端口。 esxcli system time get esxcli system version get

server-infra
esxi
tsm-ssh

NTP Server

ESXi

背景 ESXi Server 没有外网访问功能,需要通过内其它机节点的 NTP Server 同步时间。 测试外网vmkping 8.8.8.8 安装 NTP Server apt install chrony -y vim /etc/chrony/chrony.conf 检查是否有外网源: pool ntp.ubuntu.com iburst maxsources 4 pool 0.ubuntu.pool.ntp.org iburst maxsources 1 pool 1.ubuntu....

server-infra
esxi
net

growpart

Linux Storage

阿里云扩容云盘 扩展硬盘 lsblk -f /dev/sda2 直接是 ext4 文件系统并挂载在根目录 /(非 LVM)。 NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS loop0 squashfs 4.0 0 100% /snap/core20/2599 loo...

growpart
linux
storage

fio

Disk

fio(flexible I/O tester) is a tool that will spawn a number of threads or processes doing a particular type of I/O action as specified by the user. The typical use of fio is to write a job file matching the I/O load one wants to simulate. dd Seq dd if=/dev/ze...

hardware
disk
fio

Multiple Remotes

OpenVPN

Configuration proto tcp-client # 服务器地址和端口 remote xxx xxx remote xxx xxx # remote 建立连接的超时时间 connect-timeout 5 # 保持连接的心跳 keepalive 10 60 参数 生效阶段 功能 是否重连 keepalive 已连接后 心跳检测、保持连接活跃,断开后自动重连 是 connect-timeout 连接建立阶段 尝试连接服务器的超时 否(仅切换 remote) keepal...

networking
openvpn

conntrack

Linux

conntrack usage conntrack -L | awk '{print $5}' | cut -d= -f2 | sort | uniq -c | sort -nr | head

netfilter-persistent

Linux

Installation apt-get install -y netfilter-persistent apt-get install -y iptables-persistent Usage netfilter-persistent save

networking
linux
iptables