摘要:
net.ipv4.tcp_synccookies=1 开启sync缓存 net.ipv4.tcp_tw_reuse=1 开启重用 ,允许TIME_WAIT sockets 重新用于新的tcp连接 net.ipv4.tcp_max_sync_backlog=8192 sync队列长度 net.core 阅读全文
摘要:
配置文件my.cnf vim my.cnf #my.cnf [client] port = 3306 socket = /tmp/mysql3306.sock [mysql] prompt="\\u@\\h [\\d]>" #pager="less -i -n -S" #tee=/opt/mysql 阅读全文
摘要:
硬件配置信息 检查项 操作命令 服务器名称 hostname 服务器型号 dmidecode |grep "Product Name" CPU cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 内存 cat /proc/meminfo 磁盘 阅读全文
摘要:
mysqladmin extended-status(可以使用ext代替)。 加上参数-r(--relative),就可以看到各个指标的差值,配合参数-i(--sleep)就可以指定刷新的频率,那么就有如下命令: mysqladmin -uroot -pmysql123 ext -i 5 | awk 阅读全文
摘要:
1、什么原因可能导致主从同步延时,怎么判断,怎么处理? 主从同步延时的原因:(1)从库的硬件配置没有主库好 (2)网络抖动导致IO线程复制延时(3)主库对没有索引的大表的列进行删除或者修改操作,主库上存在大事务怎么判断主从延时:(1)通过show slave status命令查看seconds_be 阅读全文
摘要:
mysql> select * from tx1+ + + +| id | c1 | c2 |+ + + +| 1 | aaa | aaa2 || 2 | bbb2 | bbb2 || 3 | ccc5 | ccc2 || 4 | ddd | ddd4 || 8 | hhh | hhhh8 |+ + 阅读全文
摘要:
centos启动过程中卡住了 1、重启服务器,在选择内核界面使用上下箭头移动 2、选择内核并按“e” 3、移动光标到红色区域找到改行 4 修改如下 这里要删除掉rhgb quiet,如下图 吧ro改成rw 最后面添加init=/bin/bash 5、使用“ctrl + x” 来重启服务器就可以了,重 阅读全文
摘要:
[root@k8-master ~]# cat deployment1.yaml apiVersion: apps/v1kind: Deploymentmetadata: name: nginx-deployment labels: app: nginxspec: replicas: 2 selec 阅读全文
摘要:
参考链接:https://kubernetes.io/zh/docs/concepts/overview/working-with-objects/labels/ [root@k8-node ~]# cat dep_lab.yaml apiVersion: apps/v1kind: Deployme 阅读全文