<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ch717828的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ch717828</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ch717828]]></copyright><item><title><![CDATA[API和ABI的区别]]></title><link>https://blog.csdn.net/ch717828/article/details/107644707</link><guid>https://blog.csdn.net/ch717828/article/details/107644707</guid><author>ch717828</author><pubDate>Tue, 28 Jul 2020 20:41:29 +0800</pubDate><description><![CDATA[API （应用程序接口）： 定义了源代码和库之间的接口
ABI（应用二进制接口） ：定义了一组编译应用程序所需要遵循的规则。比如寄存器如何使用、堆栈如何使用等等
API兼容： 代码可以在相互兼容的API系统中编译
ABI兼容： 编译好的代码可以在相互兼容的ABI系统中运行

...]]></description><category></category></item><item><title><![CDATA[CPU个数、CPU物理核数、CPU逻辑核数、vCPU数之间的区别]]></title><link>https://blog.csdn.net/ch717828/article/details/107324952</link><guid>https://blog.csdn.net/ch717828/article/details/107324952</guid><author>ch717828</author><pubDate>Mon, 13 Jul 2020 20:55:56 +0800</pubDate><description><![CDATA[CPU个数： 看得见摸得找的CPU个数，插在主版上面的。在linux系统下面的/proc/cpuinfo文件的条目中，有多少个不同的physical id就有多少个物理CPU。
CPU物理核： 一个CPU可能有多个核。在linux系统下面的/proc/cpuinfo文件的条目中，可以看具体有多少个cpu cores，就表示一个CPU有多少个CPU物理核
CPU逻辑核（CPU超线程）：用Intel的超线程技术(HT)将物理核虚拟而成的逻辑处理单元。在linux系统下面的/proc/cpuinfo文件的条目中，]]></description><category></category></item><item><title><![CDATA[Kubernetes为所有默认的ServiceAccount授权]]></title><link>https://blog.csdn.net/ch717828/article/details/106223056</link><guid>https://blog.csdn.net/ch717828/article/details/106223056</guid><author>ch717828</author><pubDate>Tue, 19 May 2020 21:08:16 +0800</pubDate><description><![CDATA[环境准备：
创建一个私有的命名空间 mynamespace，创建一个pod，让这个pod使用默认的service account
#cat mynamespace.yaml
apiVersion: v1
kind: Namespace
metadata:
  name: mynamespace


#cat example-pod3.yaml
apiVersion: v1
kind: Pod
metadata:
  name: test-default-verbs
  namespace: mynamesp]]></description><category></category></item><item><title><![CDATA[go依赖包安装报错：unrecognized import path golang.org/x/crypto/ssh/terminal]]></title><link>https://blog.csdn.net/ch717828/article/details/106149456</link><guid>https://blog.csdn.net/ch717828/article/details/106149456</guid><author>ch717828</author><pubDate>Fri, 15 May 2020 20:59:10 +0800</pubDate><description><![CDATA[使用 godep报错
$godep restore
godep: [WARNING]: godep should only be used inside a valid go package directory and
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.
godep: [WARNING]:	Current Directory: /root/go/k8s-controll]]></description><category></category></item><item><title><![CDATA[go get 安装 k8s.io/code-generator 报错]]></title><link>https://blog.csdn.net/ch717828/article/details/106008698</link><guid>https://blog.csdn.net/ch717828/article/details/106008698</guid><author>ch717828</author><pubDate>Fri, 08 May 2020 22:59:49 +0800</pubDate><description><![CDATA[go get 安装 k8s.io/code-generator 报错 cannot find package
通过如下方式解决:
git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys
git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net
git clone https://github.com/golang]]></description><category></category></item><item><title><![CDATA[docker pull报错：Timeout exceeded while awaiting headers解决思路]]></title><link>https://blog.csdn.net/ch717828/article/details/105906420</link><guid>https://blog.csdn.net/ch717828/article/details/105906420</guid><author>ch717828</author><pubDate>Sun, 03 May 2020 17:49:54 +0800</pubDate><description><![CDATA[问题
使用fluntd的时候，docker pull镜像失败，原因是镜像在墙外
$docker pull k8s.gcr.io/fluentd-elasticsearch:1.20
Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connecti...]]></description><category></category></item><item><title><![CDATA[Kubernetes报错:MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable]]></title><link>https://blog.csdn.net/ch717828/article/details/105601567</link><guid>https://blog.csdn.net/ch717828/article/details/105601567</guid><author>ch717828</author><pubDate>Sat, 18 Apr 2020 17:14:11 +0800</pubDate><description><![CDATA[报错信息
MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
原因
原因：这个问题的本质原因是，两个相同的Deployment（一个已部署，一个要部署），但它们选择器不同。
场景复现
例：
app.yaml
apiVersion: apps/v1                              ...]]></description><category></category></item><item><title><![CDATA[k8s：worke节点启动后，node处于NotReady状态]]></title><link>https://blog.csdn.net/ch717828/article/details/105318828</link><guid>https://blog.csdn.net/ch717828/article/details/105318828</guid><author>ch717828</author><pubDate>Sat, 04 Apr 2020 22:37:10 +0800</pubDate><description><![CDATA[通过kubeadm join 方式，添加一个node到kubernetes集群后，发现节点的状态是NotReady
#kubectl get nodes
NAME                   STATUS     ROLES    AGE    VERSION
bd011088191033.na610   Ready      master   10h    v1.18.0
bd01108...]]></description><category></category></item><item><title><![CDATA[Mount Namespace 与父进程隔离失效]]></title><link>https://blog.csdn.net/ch717828/article/details/105042329</link><guid>https://blog.csdn.net/ch717828/article/details/105042329</guid><author>ch717828</author><pubDate>Mon, 23 Mar 2020 13:25:15 +0800</pubDate><description><![CDATA[问题

]]></description><category></category></item><item><title><![CDATA[计算机为什么要使用原码、反码、补码]]></title><link>https://blog.csdn.net/ch717828/article/details/103315407</link><guid>https://blog.csdn.net/ch717828/article/details/103315407</guid><author>ch717828</author><pubDate>Fri, 29 Nov 2019 17:53:02 +0800</pubDate><description><![CDATA[1. 什么是原码、反码、补码
先看一个例子: +1和-1的原码、反码、补码的表示
[+1] = [00000001]原 = [00000001]反 = [00000001]补
[-1] = [10000001]原 = [11111110]反 = [11111111]补

原码、反码、补码的计算方式如下：
原码：原码就是符号位加上真值的绝对值, 即用第一位表示符号, 其余位表示值。
反码：正数的反码...]]></description><category></category></item><item><title><![CDATA[前端实现http请求重试功能]]></title><link>https://blog.csdn.net/ch717828/article/details/103281602</link><guid>https://blog.csdn.net/ch717828/article/details/103281602</guid><author>ch717828</author><pubDate>Wed, 27 Nov 2019 19:10:15 +0800</pubDate><description><![CDATA[需求情况比较简单： 需要在前端实现一个重试的功能，如果一个请求访问出错（不管是后端服务出错还是网络出错，亦或者是请求的结果不符合预期）均可进行自动重试
直接上代码，代码直接复制到xx.html文件即可运行
&lt;!DOCTYPE html&gt;

&lt;html&gt;

&lt;script src="https://unpkg.com/axios/dist/axios.min.js"&g...]]></description><category></category></item><item><title><![CDATA[SQL使用了索引，为什么还是很慢]]></title><link>https://blog.csdn.net/ch717828/article/details/103207238</link><guid>https://blog.csdn.net/ch717828/article/details/103207238</guid><author>ch717828</author><pubDate>Fri, 22 Nov 2019 20:51:31 +0800</pubDate><description><![CDATA[数据库的查询性能一直是性能优化的重灾区。近期看了丁奇老师的分享“为什么SQL语言使用了索引，但却还是慢查询？”，收获颇丰，以此做个记录
0 准备
创建一张测试表，设置主键索引(id)和普通索引(a) ，如下：
CREATE TABLE `t` (
  `id` int(11) NOT NULL,
  `a` int(11) DEFAULT NULL,
  `b` int(11) DEFAULT N...]]></description><category></category></item><item><title><![CDATA[如何找出打满磁盘的进程]]></title><link>https://blog.csdn.net/ch717828/article/details/103037541</link><guid>https://blog.csdn.net/ch717828/article/details/103037541</guid><author>ch717828</author><pubDate>Tue, 12 Nov 2019 20:08:43 +0800</pubDate><description><![CDATA[集群机器的磁盘经常会被某些进程打满

磁盘空间被打满，其他进程无法继续写入
磁盘的读写通道被打满，其他进程因为读写缓慢而影响性能

问题1: 磁盘空间被打满
1.1. 检查机器磁盘使用
主要是使用df命令来查看磁盘空间的使用，如下图所示：

Linux中df命令的输出清单的第1列是代表文件系统对应的设备文件的路径名（一般是硬盘上的分区）；第2列是文件系统的类型；第3，4，5列给出分区总大小、已使用...]]></description><category></category></item><item><title><![CDATA[Linux查看文件/文件夹大小]]></title><link>https://blog.csdn.net/ch717828/article/details/102584585</link><guid>https://blog.csdn.net/ch717828/article/details/102584585</guid><author>ch717828</author><pubDate>Wed, 16 Oct 2019 14:13:36 +0800</pubDate><description><![CDATA[1. 查看目录大小
du -h --max-depth=1
2. 查看文件大小
du -sh *

]]></description><category></category></item><item><title><![CDATA[顺序IO和随机IO]]></title><link>https://blog.csdn.net/ch717828/article/details/100574371</link><guid>https://blog.csdn.net/ch717828/article/details/100574371</guid><author>ch717828</author><pubDate>Sun, 29 Sep 2019 10:17:59 +0800</pubDate><description><![CDATA[Mysql索引的数据结构

]]></description><category></category></item><item><title><![CDATA[查看一批ip的网段]]></title><link>https://blog.csdn.net/ch717828/article/details/90700730</link><guid>https://blog.csdn.net/ch717828/article/details/90700730</guid><author>ch717828</author><pubDate>Thu, 30 May 2019 17:01:50 +0800</pubDate><description><![CDATA[通过ipcalc命令，该命令可以计算一个ip地址的网段
$ipcalc -n 192.168.1.1/24
NETWORK=192.168.1.0

把要计算的网段放到一个文件a里，通过如下命令
cat a | xargs -i ipcalc -n {}/22 | sort |uniq -c

就能得到网段信息（22表示子网掩码的位数）

...]]></description><category></category></item><item><title><![CDATA[javascript如何处理字符串中的\u]]></title><link>https://blog.csdn.net/ch717828/article/details/89878680</link><guid>https://blog.csdn.net/ch717828/article/details/89878680</guid><author>ch717828</author><pubDate>Mon, 06 May 2019 11:22:12 +0800</pubDate><description><![CDATA[问题： 字符串在页面显示的时候，有\u，如：Tesla\u8fc1\u79fb ，想要显示它的原文
let a = 'Tesla\u8fc1\u79fb'
//显示 Tesla迁移
alert(  unescape(text.replace(/\\/g,'%')) ) 


...]]></description><category></category></item><item><title><![CDATA[Linux找出inode满的目录并删除]]></title><link>https://blog.csdn.net/ch717828/article/details/89053286</link><guid>https://blog.csdn.net/ch717828/article/details/89053286</guid><author>ch717828</author><pubDate>Sat, 06 Apr 2019 11:12:50 +0800</pubDate><description><![CDATA[df -i 找出inode满的目录


发现是/dump/1下面的目录满了

cd /dump/1 通过 shell找出具体的目录并删除

for i in /dump/1/*; do echo $i; find $i |wc -l|sort -nr; done

]]></description><category></category></item><item><title><![CDATA[Javascript防止按钮多次点击的节流函数throttle]]></title><link>https://blog.csdn.net/ch717828/article/details/84317178</link><guid>https://blog.csdn.net/ch717828/article/details/84317178</guid><author>ch717828</author><pubDate>Wed, 21 Nov 2018 13:04:03 +0800</pubDate><description><![CDATA[问题：
一个按钮点击后执行的异步操作，返回时间不一定，可能会导致多次重复点击。 例：

&amp;lt;!DOCTYPE html&amp;gt;

&amp;lt;html&amp;gt;
&amp;lt;body &amp;gt;  
	&amp;lt;button  onclick=&quot;test()&quot; &amp;gt;点击&amp;lt;/button&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;script&amp;gt;
function test]]></description><category></category></item><item><title><![CDATA[Webpack中的query: { presets: ['es2015','react']  }]]></title><link>https://blog.csdn.net/ch717828/article/details/83755868</link><guid>https://blog.csdn.net/ch717828/article/details/83755868</guid><author>ch717828</author><pubDate>Mon, 05 Nov 2018 20:12:15 +0800</pubDate><description><![CDATA[问题
最近检查配置的时候，发现在webpack中有一段配置
  module: {
    loaders: [{
      test: /\.jsx?$/,
      exclude: /node_modules/,
      loader: 'babel',
      query: {
        presets: ['es2015','react']
      }
    }]...]]></description><category></category></item></channel></rss>