-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
21 lines (21 loc) · 8.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="utf-8"><meta name="X-UA-Compatible" content="IE=edge"><title> 小e的笔记</title><meta name="description" content="A Blog Powered By Hexo"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="short icon" href="/favicon.png"><link rel="stylesheet" href="/css/apollo.css"><link rel="search" type="application/opensearchdescription+xml" href="http://hongweiyi.com/atom.xml" title="小e的笔记"></head><body><div class="wrap"><header><a href="/" class="logo-link"><img src="/favicon.png"></a><ul class="nav nav-list"><li class="nav-list-item"><a href="/" target="_self" class="nav-list-link active">BLOG</a></li><li class="nav-list-item"><a href="/tags" target="_self" class="nav-list-link">TAGS</a></li><li class="nav-list-item"><a href="http://weibo.com/1674333040" target="_blank" class="nav-list-link">WEIBO</a></li><li class="nav-list-item"><a href="https://twitter.com/hongwei89" target="_blank" class="nav-list-link">TWITTER</a></li></ul></header><section class="container"><ul class="home post-list"><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/01/btrace-practice/" class="post-title-link">BTrace 使用实践</a></h2><div class="post-info"><div class="post-time">Jan 13, 2016 <a class="post-tag-link" href="/tags/BTrace/">BTrace</a> <a class="post-tag-link" href="/tags/Java/">Java</a></div></div><div class="post-content"><p>最近在做性能优化项目时,发现 RPC 框架调用极个别请求在路由过程非常耗时。对于这种极个别的问题要定位起来还是比较棘手的,如果性能问题可以稳定复现的还可以一步步打点缩小范围,但我这个是千分之一的出现概率,需要大规模日志打点才能够准确找到耗时的地方。如何搞呢,只能网上找找有没有更好的办法了,在网上看资料时,突然看到毕玄的文章提到可以用 btrace 定位这样的问题,现学现卖了一把。</p></div><a href="/2016/01/btrace-practice/" class="read-more">...more</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2016/01/a-summary-of-2015/" class="post-title-link">2015 年小结</a></h2><div class="post-info"><div class="post-time">Jan 4, 2016 <a class="post-tag-link" href="/tags/总结/">总结</a></div></div><div class="post-content"><p><img src="/images/2016/01/2015-summary.jpg" alt="image"></p>
<p>2015 年过去了,去年状态如上图所示,朋友看图后均说去年是拉风的一年。但如果仔细看过这个场景的人会发现,谈吉他的人是一个没有双眼的奴隶,被绳索绑在战车前,当听到战鼓响起时,便如打了鸡血般跳起来,姿态夸张的谈着那喷火的吉他。如他一样,今年的我并不拉风,倒是如瞎了一般感觉到了迷茫。</p></div><a href="/2016/01/a-summary-of-2015/" class="read-more">...more</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/12/SSH/" class="post-title-link">SSH 资料</a></h2><div class="post-info"><div class="post-time">Dec 30, 2015 <a class="post-tag-link" href="/tags/SSH/">SSH</a></div></div><div class="post-content"><h2 id="1-_原理">1. 原理</h2><h3 id="1-1_SSH_原理">1.1 SSH 原理</h3><ol>
<li>远程主机收到用户的登录请求,把自己的公钥发给用户</li>
<li>用户使用这个公钥,将登录密码加密后,发送回来</li>
<li>远程主机用自己的私钥,解密登录密码。如果密码正确,就同意用户登录</li>
</ol></div><a href="/2015/12/SSH/" class="read-more">...more</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/10/docker-volume-plugin/" class="post-title-link">Docker 插件 - Volume plugins</a></h2><div class="post-info"><div class="post-time">Oct 14, 2015 <a class="post-tag-link" href="/tags/Docker/">Docker</a> <a class="post-tag-link" href="/tags/Docker-plugins/">Docker plugins</a> <a class="post-tag-link" href="/tags/Docker-volume/">Docker volume</a></div></div><div class="post-content"><h2 id="Docker_插件是什么">Docker 插件是什么</h2><p>docker 插件是 docker 提供出来的扩展机制,目前 docker 支持 volume 和 network 两种插件,由于 network 插件比较复杂而且没有好的开源项目,这里主要介绍 volume 插件。</p>
<p>插件是一个独立的进程和 docker daemon 运行在同一台 host 上,通过 Plugin Discovery 的机制进行插件发现,插件有几个要求:</p>
<ul>
<li>插件名要求是小写</li>
<li>插件可以运行在容器内也可以运行在容器外,不过现阶段建议运行在容器外</li>
</ul></div><a href="/2015/10/docker-volume-plugin/" class="read-more">...more</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/10/docker-compose-pratice/" class="post-title-link">Docker Compose 最佳实践</a></h2><div class="post-info"><div class="post-time">Oct 8, 2015 <a class="post-tag-link" href="/tags/Docker/">Docker</a> <a class="post-tag-link" href="/tags/Docker-Compose/">Docker Compose</a></div></div><div class="post-content"></div><a href="/2015/10/docker-compose-pratice/" class="read-more">...more</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/09/remoting-practice/" class="post-title-link">Java 网络编程最佳实践</a></h2><div class="post-info"><div class="post-time">Sep 10, 2015 <a class="post-tag-link" href="/tags/Java/">Java</a> <a class="post-tag-link" href="/tags/Network/">Network</a></div></div><div class="post-content"><h2 id="1-_通信层">1. 通信层</h2><ul>
<li>直接使用最成熟的网络框架,如 Netty</li>
<li>单连接 & 连接复用 & 长连接<ul>
<li>建议提前设计心跳机制</li>
<li>集群较小,长连接无需开启心跳</li>
<li>如果网络情况比较复杂,建议开启心跳。如有防火墙,会将连接清掉且不会向客户端发送 RST 信令,导致长连接变成一个脏连接</li>
</ul>
</li>
</ul></div><a href="/2015/09/remoting-practice/" class="read-more">...more</a></article></li><li class="post-list-item"><article class="post-block"><h2 class="post-title"><a href="/2015/09/java-source-code-practice/" class="post-title-link">Java 源码阅读 最佳实践</a></h2><div class="post-info"><div class="post-time">Sep 1, 2015 <a class="post-tag-link" href="/tags/Java/">Java</a> <a class="post-tag-link" href="/tags/源码/">源码</a></div></div><div class="post-content"><h2 id="1-_原则">1. 原则</h2><h3 id="原则1:了解使用">原则1:了解使用</h3><p>仔细查看使用文档和说明,写较为详细的 demo 程序。</p>
<h3 id="原则2:了解全局">原则2:了解全局</h3><p>了解该产品解决了哪些问题,并了解其周边产品及优缺点。</p>
<h3 id="原则3:了解原理">原则3:了解原理</h3><p>查看其内部架构文档,如果有了周边产品的了解,可以从周边产品推算出其实现基本原理。不过当对其它产品了解比较深刻的时候,这个原则很容易就可以达到了。</p></div><a href="/2015/09/java-source-code-practice/" class="read-more">...more</a></article></li></ul></section><footer><div class="paginator"><a href="/page/2/" class="next">NEXT</a></div><div class="copyright"><p>© 2011 - 2016 <a href="http://hongweiyi.com">Hongwei Yi</a>, powered by <a href="https://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/pinggod/hexo-theme-apollo" target="_blank">hexo-theme-apollo</a>.</p></div></footer></div><script async src="//cdn.bootcss.com/mathjax/2.6.1/MathJax.js?config=TeX-MML-AM_CHTML"></script><script>(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;e=o.createElement(i);r=o.getElementsByTagName(i)[0];e.src='//www.google-analytics.com/analytics.js';r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));ga('create',"UA-66911097-1",'auto');ga('send','pageview');</script></body></html>