Advanced Search
Search Results
422 total results found
pt-table-sync
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,...
Latency
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\ ...
SLS
Request URI '/' 分析语法* | select * where request_uri like '/%' and length(request_uri) = 1 扫描模式* | where request_uri like '/%' and length(request_uri) = 1
Localhost/127/UnixSocket
question这是 MySQL 客户端的默认行为!当你在配置文件中指定 host=localhost 时,MySQL 客户端会自动尝试使用 Unix socket 连接,但如果 Unix socket 不可用或连接失败,它就会回退到 TCP 连接,并将 localhost 解析为 127.0.0.1。
Replica
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
内容分发网络 内容分发网络 -> 域名管理 -> 新增域名 设置加速域名,注意记录添加证书。 新增源站,如果是阿里云 OSS,需要添加私有桶的 AccessKey。 修改本地 Host 测试 CDN 是否能正常访问。 测试通过后再修改域名的 CNAME 指向。
CDN
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/天) ...
TSM-SSH
启用 TSM-SSH 提示使用后出于安全考虑可再次关闭 在 ESXi 的管理后台开启 TSM-SSH: 主机 -> 操作 -> 服务 -> 启用安全外壳 主机 -> 管理 -> 服务 找到名为 TSM-SSH 的服务项 点击它并选择启动 ✅ 启动后,ESXi 就会开放 22 端口。 esxcli system time get esxcli system version get
NTP Server
背景 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....
growpart
阿里云扩容云盘 扩展硬盘 lsblk -f /dev/sda2 直接是 ext4 文件系统并挂载在根目录 /(非 LVM)。 NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS loop0 squashfs 4.0 0 100% /snap/core20/2599 loo...
fio
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...
Multiple Remotes
Configuration proto tcp-client # 服务器地址和端口 remote xxx xxx remote xxx xxx # remote 建立连接的超时时间 connect-timeout 5 # 保持连接的心跳 keepalive 10 60 参数 生效阶段 功能 是否重连 keepalive 已连接后 心跳检测、保持连接活跃,断开后自动重连 是 connect-timeout 连接建立阶段 尝试连接服务器的超时 否(仅切换 remote) keepal...
conntrack
conntrack usage conntrack -L | awk '{print $5}' | cut -d= -f2 | sort | uniq -c | sort -nr | head
netfilter-persistent
Installation apt-get install -y netfilter-persistent apt-get install -y iptables-persistent Usage netfilter-persistent save