jbd2导致系统IO使用率高问题 收到IO占用高告警系统信息:Linux version 2.6.32-696.18.7.1.el6.ucloud.x86_64 (root@59c188f3c79d)(gcc version 4.4.6 20120305(Red Hat 4.4.6-5) (GCC) ) #1 SMP Fri Jan 5 16:48:58 CST 20181、到机器上看到io使用率忽高,同时iow...
k8s基础概念和常用操作 1、基本概念搞清楚master, node, pod,controller(deployoment,ReplicaSet,DaemonSet,StatefulSet,Job),service概念,在此基础上先学会通过kubernetes命令行客户端 kubectl管理应用。(1)get#login master node,list nodes in cluster$ kubect...
DNS解析 1、DNS解析$ nslookup www.baidu.comServer: 172.17.1.235Address: 172.17.1.235#53 #port 53, local DNS172.17.1.235Non-authoritative answer:www.baidu.com canonical name = www.a.shifen.com...
linux内核学习 最近加入了公司内部linux内核兴趣小组,决定单独开启一篇博客记录成长。以下是倪朋飞老师性能优化课程推荐的几本书,决定最近开始新一轮研读。计算机体系结构书籍:《深入理解计算机系统》Linux 编程书籍:《Linux 程序设计》和《UNIX 环境高级编程》Linux 内核书籍:《深入 Linux 内核架构》性能优化书籍:《性能之巅:洞悉系统、企业与云计算》...
kafka分区,副本,倾斜及日常操作 Topic Summary:Replication 3Number of Partitions 15Sum of partition offsets 0Total number of Brokers 13Number of Brokers for Topic 10Preferred Replicas % 100Brokers Skewe...
nginx http超时重试幂等问题 nginx做反向代理时,作为负载均衡器,对执行失败的任务默认会调度到其他节点执行。默认设置:proxy_next_upstream error timeout #发生网络错误以及超时,才会在其他服务器重试$ proxy_next_upstream error timeout http_500 #500时重试$ proxy_next_upstream error timeout http...
ls -lh文件大小比du -sh大 ls -lh文件大小比du -sh小的情况参考https://blog.csdn.net/wangtingting_100/article/details/80913868du显示的是文件占block大小,通常1byte的文件,du大小是4bytes,这个是可以理解的,可偏偏ls -lh的结果比du -sh的要大。ls显示的是文件的逻辑大小,du显示的是磁盘占用情况,逻辑占用大于磁盘本身...
ETCD ETCD是一个分布式,一致的kew-value存储,主要用于共享配置和服务发现。通过Raft一致性算法管理日志复制,保证强一致性。Reference:https://raft.github.io/ http://thesecretlivesofdata.com/raft/...
python之连接Mysql实现增删改查 Python2.7使用MySQLdb接口连接Mysql,Python3改用了pymysql通用方法是:import pymysql#连接数据库database = pymysql.connect(host="XXXXXXXXXX.mysql.rds.aliyuncs.com",user="xxxxxx_rw",passwd="xxxxxxxxxx",...
go macos环境配置(超级简单) 之前老听同事讲要学go(压根没有在意),直到知道很多开源项目(docker,etcd,kubernetes)都是go的实现。1、$ brew install go #默认源安装2、$ go version #查看版本go version go1.12.1 darwin/amd643、$ vim .bash_profile #修改环境变量export GOPATH=/Users...
nginx防御DDos攻击 DDos攻击通过向目标网站发送大量的数据包,从而耗尽目标网站资源,导致不能响应正常的业务请求而达到攻击目的。通过分析请求来源,如果发现这些ip或者UA大多来源同一个或同一个网段的ip,可以通过修改nginx配置规则进行拦截。场景:某个地址遭受来自海外的攻击目标:禁止http://xxx.xxx.com/location/homepage/?tag=xxxx 海外访问1、#登陆海外接...
kafka笔记 1、kafka基本概念kafka是一个支持离线和在线的、分布式、可分区、可复制消息队列。producer1,producer2-----(topic)----->kafka cluster-----(topic)----->consumer1,consumer2client与server通过TCP协议通信2、producerproducer通过topic将消息发送...
Python面向对象基础 1. classclass Person: '人的基类' perCount=0 def __init__(self, name, gender, age): self.name=name self.gender=gender self.age=age Person.perCount +=1 ...
Python基础笔记 #Python特性,强类型(即强制要求变量类型),dynamic,capital sensitive,隐士类型(不需要声明)and objective.#compile with python3common libs# -*- coding: utf-8 -*-import osimport sysimport urllibimport jsonimport reimpo...
cenos 更新yum源为aliyun源 1、#查看已有源$ ls -a /etc/yum.repos.d/. .. CentOS-Base.repo CentOS-Debuginfo.repo CentOS-fasttrack.repo CentOS-Media.repo CentOS-Vault.repo epel.repo yz.repo2、#备份已有的源$mv /etc/yum.repos.d ...
Mac上安装mysql 1、$brew install mysql #源安装2、$ brew services listxcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcru...
dubbo service telnet command 1、$ telnet 10.10.10.10 20881 #10.10.10.10 dubbo service provider's ipor $ telnet localhost 20881Trying 10.10.10.10...Connected to 10.10.10.10.Escape character is '^]'.2、press ENTER3、ls servic...
buffer 与cache 的理解 buffer 与cache :通过 $ man freeBuffers Memory used by kernel buffers (Buffers in /proc/meminfo)cache Memory used by the page cache and slabs (Cached and SReclaimable in /proc/meminfo)buff/cache ...