<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[疾风先生的博客]]></title><description><![CDATA[Stay focused,Keep shipping]]></description><link>https://blog.csdn.net/wind_602</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; wind_602]]></copyright><item><title><![CDATA[pscp基于putty实现文件传输]]></title><link>https://blog.csdn.net/wind_602/article/details/129404298</link><guid>https://blog.csdn.net/wind_602/article/details/129404298</guid><author>wind_602</author><pubDate>Wed, 08 Mar 2023 15:28:56 +0800</pubDate><description><![CDATA[pscp使用]]></description><category></category></item><item><title><![CDATA[个人linux开发环境配置]]></title><link>https://blog.csdn.net/wind_602/article/details/129403754</link><guid>https://blog.csdn.net/wind_602/article/details/129403754</guid><author>wind_602</author><pubDate>Wed, 08 Mar 2023 15:09:27 +0800</pubDate><description><![CDATA[linux基础环境配置]]></description><category></category></item><item><title><![CDATA[Go逃逸分析参考文章]]></title><link>https://blog.csdn.net/wind_602/article/details/126362104</link><guid>https://blog.csdn.net/wind_602/article/details/126362104</guid><author>wind_602</author><pubDate>Tue, 16 Aug 2022 11:11:18 +0800</pubDate><description><![CDATA[Go内存逃逸笔记]]></description><category></category></item><item><title><![CDATA[ES操作文档记录]]></title><link>https://blog.csdn.net/wind_602/article/details/125490517</link><guid>https://blog.csdn.net/wind_602/article/details/125490517</guid><author>wind_602</author><pubDate>Mon, 27 Jun 2022 19:51:00 +0800</pubDate><description><![CDATA[ES操作文档工作记录]]></description><category></category></item><item><title><![CDATA[shell笔记之压测与数据统计]]></title><link>https://blog.csdn.net/wind_602/article/details/124709746</link><guid>https://blog.csdn.net/wind_602/article/details/124709746</guid><author>wind_602</author><pubDate>Wed, 11 May 2022 14:37:12 +0800</pubDate><description><![CDATA[go压测
#!/usr/bin/env bash

split="_"

for count in 100 200 400 800; do
  for rate in 40 60 80 100; do
    bench_name="$count$split$rate"
    rm -rf $bench_name
    mkdir -p $bench_name
    logDir["$index"]="$bench_name"
    let "index=$index+1"
    ## cpu 指]]></description><category></category></item><item><title><![CDATA[nginx核心参数配置]]></title><link>https://blog.csdn.net/wind_602/article/details/123683430</link><guid>https://blog.csdn.net/wind_602/article/details/123683430</guid><author>wind_602</author><pubDate>Wed, 23 Mar 2022 13:22:11 +0800</pubDate><description><![CDATA[accept_mutex

## 官网参考:
http://nginx.org/en/docs/ngx_core_module.html#accept_mutex

Syntax:	accept_mutex on | off;
Default:	accept_mutex off;
Context:	events

If accept_mutex is enabled, worker processes will accept new connections by turn. Otherwise, all .]]></description><category></category></item><item><title><![CDATA[快速替换指定的文本信息]]></title><link>https://blog.csdn.net/wind_602/article/details/123602361</link><guid>https://blog.csdn.net/wind_602/article/details/123602361</guid><author>wind_602</author><pubDate>Sat, 19 Mar 2022 20:51:15 +0800</pubDate><description><![CDATA[下载对应的图片并重命名图片资源名称

## replace.sh
#!/bin/bash
index=1
cp $1 temp.md
declare -A newmap
for uri in $(cat temp.md | egrep "img.*http" | awk -F " " '{print $3}' | awk -F "\"" '{print $2}')
do
	echo "$uri"
	#echo $index
	f=$index.${uri##https*.}
	echo $f
	last_.]]></description><category></category></item><item><title><![CDATA[Raft算法（上篇）]]></title><link>https://blog.csdn.net/wind_602/article/details/116458669</link><guid>https://blog.csdn.net/wind_602/article/details/116458669</guid><author>wind_602</author><pubDate>Thu, 06 May 2021 17:41:11 +0800</pubDate><description><![CDATA[Raft算法
Raft简述
Raft概要
基于Multi-Paxos算法的基础上做了一些限制与简化,Raft算法属于强一致性模型的共识算法模型,在集群服务节点中仅有一个leader节点服务来负责所有请求的写入操作.Raft算法主要解决服务节点之间的leader选举,各个服务节点之间的日志同步以及服务节点成员中leader节点服务发生宕机时如何变更来达成最终的共识问题.从本质上是属于强leader模型,一切以leader为准的方式来实现各个服务节点一系列值的共识以及节点之间日志的一致性.
Raft算法三种状态]]></description><category></category></item><item><title><![CDATA[Paxos算法]]></title><link>https://blog.csdn.net/wind_602/article/details/107355189</link><guid>https://blog.csdn.net/wind_602/article/details/107355189</guid><author>wind_602</author><pubDate>Wed, 15 Jul 2020 10:52:15 +0800</pubDate><description><![CDATA[朴素的Paxos算法简述
共识问题描述
假设现在有三个服务节点能够进行提案操作,那么Paxos的共识算法就是确保上述服务节点之一的提案数据值能够被选中,也就是说达成共识的安全要求需满足以下三个条件:

只有被提案的数据值才具备被选中的资格
最终仅有一个提案值能够被选中
除非提案的数据值最终被选中，否则进程将无法学习到该提案的数据值

考虑三个服务节点都是属于独立部署且需要通过网络进行异步消息通讯,此时建立起一个异步通信且非拜占庭将军问题模型如下:

服务节点以任意的运作速度运行,除非出现宕机或者是重启,如果]]></description><category></category></item><item><title><![CDATA[vim配置]]></title><link>https://blog.csdn.net/wind_602/article/details/106897361</link><guid>https://blog.csdn.net/wind_602/article/details/106897361</guid><author>wind_602</author><pubDate>Mon, 22 Jun 2020 10:41:09 +0800</pubDate><description><![CDATA[linux下的vim个性化配置
" set default encoding
set fenc=utf-8
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936

" set color
colorscheme desert

" set gui font
set guifont=Bitstream\ Vera\ Sans\ Mono\ 10

" use vim to key in
set nocompatible

" set the rows ]]></description><category></category></item><item><title><![CDATA[分布式理论基础]]></title><link>https://blog.csdn.net/wind_602/article/details/106721212</link><guid>https://blog.csdn.net/wind_602/article/details/106721212</guid><author>wind_602</author><pubDate>Fri, 12 Jun 2020 18:06:31 +0800</pubDate><description><![CDATA[CAP定理
网络分区容错(Partition tolerance)

网络连通性


服务节点之间的网络通信正常


在上述可以看到,服务A集群与冗余服务A1与A2节点形成一个对外闭环的集群,同理服务B也构成一个闭环集群.此时发起一个请求操作,需要通过服务A与服务B进行协作,在服务B节点正常运作情况下,这个时候的分布式网络是处于连通状态,服务A与服务B之间能够进行正常网络通信完成数据协作.

网络分区


服务节点之间的网络通信发生中断或者是延迟响应出现短时间的中断.


在上述的图中,一个请求操作需要通过]]></description><category></category></item><item><title><![CDATA[MySQL性能分析命令]]></title><link>https://blog.csdn.net/wind_602/article/details/106555007</link><guid>https://blog.csdn.net/wind_602/article/details/106555007</guid><author>wind_602</author><pubDate>Thu, 04 Jun 2020 19:24:56 +0800</pubDate><description><![CDATA[服务性能简介

三个性能服务请求


如何确认服务器是否达到了性能最佳状态
找出某条sql语句执行慢的原因
诊断被用户描述成“停顿”,“堆积”或者是“卡死”的间歇性疑难故障.


性能定义


为完成某件任务所需要的时间度量,换言之,性能即响应时间,这是一个非常重要的原则.


SQL性能分析


执行分析 - 基于执行时间的分析
等待分析 - 基于等待时间的分析

SQL性能优化
在一定的工作负载下尽可能地降低响应时间,在SQL服务器中定义的吞吐量指标为单位时间内的查询量.

性能优化工具

慢查询日志是]]></description><category></category></item><item><title><![CDATA[分布式共识问题]]></title><link>https://blog.csdn.net/wind_602/article/details/106418016</link><guid>https://blog.csdn.net/wind_602/article/details/106418016</guid><author>wind_602</author><pubDate>Fri, 29 May 2020 09:14:04 +0800</pubDate><description><![CDATA[在讲述分布式的共识问题之前,我们先了解下什么是拜占庭将军问题, 其次从拜占庭将军问题来认识什么是分布式共识问题,与分布式一致性的区分在哪里?然后推演分布式共识问题产生的原因以及解决共识问题的策略算法有哪些,对应的适用场景有哪些?接下来我们可以带着疑问来逐步揭开上述问题的本质.另外这里要先说明一点,这里讲述的服务节点不可用包含网络超时/服务节点出现故障/网络通信被伪造等情况.
拜占庭将军问题
拜占庭一般性问题

拜占庭军队中的每一个师都有自己的将军,并且由该将军负责指挥作战
现在拜占庭军队中的将军存在一些叛徒]]></description><category></category></item><item><title><![CDATA[分布式网络基础]]></title><link>https://blog.csdn.net/wind_602/article/details/106264261</link><guid>https://blog.csdn.net/wind_602/article/details/106264261</guid><author>wind_602</author><pubDate>Thu, 21 May 2020 17:57:30 +0800</pubDate><description><![CDATA[在分布式服务化架构设计中,服务与服务之间通信均是基于网络底层协议来实现的,于是我们需要对网络相关基础知识有一个基本的认知,这样在我们服务与服务之间进行通信(跨进程通信)过程能够在我们的脑图形成一个基本的数据传输流程以及其中的细节问题,这样对于我们在进行网络问题的排查能够带来一定的帮助.现在开始展开网络基础相关知识的阐述.
网络基础知识
通信协议
什么是协议
协议是计算机与计算机之间通过网络通信时事先达成的一种“约定”,这种“约定”使那些由不同的厂商设备,不同的CPU以及不同的操作系统组成的计算机之间,只要遵]]></description><category></category></item><item><title><![CDATA[分布式架构设计概要总结]]></title><link>https://blog.csdn.net/wind_602/article/details/106145887</link><guid>https://blog.csdn.net/wind_602/article/details/106145887</guid><author>wind_602</author><pubDate>Fri, 15 May 2020 17:09:09 +0800</pubDate><description><![CDATA[分布式架构概要总结
构建分布式的原因
业务架构的演进

在上图简单以时间线为准，粗略描述了我们系统架构随着业务的需求考量以及业务的发展，系统承担的并发量也将逐步提升，这就要求我们的系统架构需要开始思考如何利用现有的资源来解决。
我们目前急需处理并发请求的服务.而思考的方向可以从我们已有的计算机知识体系中找到答案。比如：

对于并发问题，我们知道处理共享资源可以通过加锁的方式来保证我们的线程安全，那么在有限的资源下又要如何提升我们的并发量，于是我们很容易想到hashmap是如何处理线程安全的，对此我们就会考虑]]></description><category></category></item><item><title><![CDATA[深入分析Netty高性能特性]]></title><link>https://blog.csdn.net/wind_602/article/details/105994470</link><guid>https://blog.csdn.net/wind_602/article/details/105994470</guid><author>wind_602</author><pubDate>Fri, 08 May 2020 13:38:00 +0800</pubDate><description><![CDATA[C10K与C10M问题
C10K&amp;C10M解决方案

C10K问题

关于C10K的问题,在先前的epoll技术分析文章已经有讲述过,C10K是属于一个优化问题,即要让单个web服务支撑1w的并发连接,关于C10K的性能与可伸缩性问题,摘录C100M的博文并加入自己的理解:

采用线程连接架构TBA模型,也就是1个客户端连接对应1个线程,那么对于内核而言,假设这个时候需要10k个连接,那么...]]></description><category></category></item><item><title><![CDATA[Netty事件流程分析补充]]></title><link>https://blog.csdn.net/wind_602/article/details/105808241</link><guid>https://blog.csdn.net/wind_602/article/details/105808241</guid><author>wind_602</author><pubDate>Tue, 28 Apr 2020 10:46:52 +0800</pubDate><description><![CDATA[pipeline责任链流程分析
责任链创建流程

入口程序

// 责任链的创建是在Channel的初始化的时候进行的
// AbstractChannel.java
protected AbstractChannel(Channel parent) {
  // 如果当前为服务端的channel，则parent=null
  this.parent = parent;
  // 创建channe...]]></description><category></category></item><item><title><![CDATA[深入Netty事件流程分析]]></title><link>https://blog.csdn.net/wind_602/article/details/105714685</link><guid>https://blog.csdn.net/wind_602/article/details/105714685</guid><author>wind_602</author><pubDate>Thu, 23 Apr 2020 18:50:23 +0800</pubDate><description><![CDATA[Netty框架核心内容
丰富的Buffer数据结构
Netty在NIO的ByteBuffer基础上自定义一套自己的Buffer API,其实现的Buffer API具备以下特性:

如果需要可以自定义自己的buffer类型
内建composite buffer类型实现零拷贝机制(无需在内存实现数据复制)
可以支持动态扩容,类似于StringBuffer
不需要像NIO的Buffer需要每次调用fl...]]></description><category></category></item><item><title><![CDATA[深入Netty组件分析]]></title><link>https://blog.csdn.net/wind_602/article/details/105552726</link><guid>https://blog.csdn.net/wind_602/article/details/105552726</guid><author>wind_602</author><pubDate>Thu, 16 Apr 2020 10:54:16 +0800</pubDate><description><![CDATA[讲述netty之前,先看下netty的一个整体结构如下:

从上述可以看出,netty核心部分主要有基于可扩展性的事件驱动设计模型实现,通用的通信API(支持的网络协议比较丰富)以及基于ByteBuffer实现的零拷贝机制,同时从web的安全性考虑,netty支持SSL/TLS完整协议.
分析Netty的原理之前,我们先看看netty的核心组件有哪些.
Netty核心组件

netty一个简单示例...]]></description><category></category></item><item><title><![CDATA[IO事件驱动设计实现]]></title><link>https://blog.csdn.net/wind_602/article/details/105430487</link><guid>https://blog.csdn.net/wind_602/article/details/105430487</guid><author>wind_602</author><pubDate>Fri, 10 Apr 2020 12:21:46 +0800</pubDate><description><![CDATA[事件驱动架构EDA
EDA组件

事件源/发起器(event emitters): 负责轮询检测事件状态的变化
解复用器(Demultiplexer): 等待从事件源上获取就绪事件的集合,并将就绪事件通过转发器分发给响应就绪事件的处理器进行回调处理
事件处理引擎(event handlers): 响应就绪事件发生的处理程序,由开发人员在应用程序上进行定义并针对就绪事件发生的状态进行注册绑定
事件队...]]></description><category></category></item></channel></rss>