Skip to content

Commit

Permalink
deploy: 2d44ada
Browse files Browse the repository at this point in the history
  • Loading branch information
day-dreams committed Feb 14, 2024
1 parent 3a7336d commit 3785c60
Show file tree
Hide file tree
Showing 40 changed files with 1,079 additions and 99 deletions.
4 changes: 2 additions & 2 deletions 2021/02/18/golang-sql/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -210,7 +210,7 @@ <h2 id="sql-builder"><a href="#sql-builder" class="headerlink" title="sql builde
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
4 changes: 2 additions & 2 deletions 2021/02/18/init-commit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -199,7 +199,7 @@ <h1 class="posttitle" itemprop="name headline">
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
4 changes: 2 additions & 2 deletions 2021/02/18/key-list/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -235,7 +235,7 @@ <h2 id="QQ"><a href="#QQ" class="headerlink" title="QQ"></a>QQ</h2><h2 id="微
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
4 changes: 2 additions & 2 deletions 2021/02/18/mysql-innodb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -430,7 +430,7 @@ <h2 id="备份与恢复"><a href="#备份与恢复" class="headerlink" title="
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
4 changes: 2 additions & 2 deletions 2021/02/18/rpc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -214,7 +214,7 @@ <h2 id="rpc应该包含哪些范畴"><a href="#rpc应该包含哪些范畴" clas
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
10 changes: 6 additions & 4 deletions 2021/02/18/这个主题挺好看呀/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="123func demo()&amp;#123;&amp;#125; 12+ xyz- blog demo demo SF SDF $f(x)&#x3D;x+1$">
<meta name="description" content="123func demo()&amp;#123;&amp;#125; 12+ xyz- blog demo demo SF SDF $f(x)&#x3D;x+1$">
<meta property="og:type" content="article">
<meta property="og:title" content="这个主题挺好看呀">
<meta property="og:url" content="http://example.com/2021/02/18/%E8%BF%99%E4%B8%AA%E4%B8%BB%E9%A2%98%E6%8C%BA%E5%A5%BD%E7%9C%8B%E5%91%80/index.html">
<meta property="og:site_name" content="day-dreams">
<meta property="og:description" content="123func demo()&amp;#123;&amp;#125; 12+ xyz- blog demo demo SF SDF $f(x)&#x3D;x+1$">
<meta property="og:description" content="123func demo()&amp;#123;&amp;#125; 12+ xyz- blog demo demo SF SDF $f(x)&#x3D;x+1$">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2021-02-18T22:19:55.000Z">
<meta property="article:modified_time" content="2021-02-18T22:19:55.000Z">
Expand Down Expand Up @@ -50,7 +50,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -145,7 +145,9 @@ <h1 class="posttitle" itemprop="name headline">

<div class="content" itemprop="articleBody">
<figure class="highlight golang"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">func</span> <span class="title">demo</span><span class="params">()</span></span>&#123;</span><br><span class="line"></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<figure class="highlight diff"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="addition">+ xyz</span></span><br><span class="line"><span class="deletion">- blog</span></span><br></pre></td></tr></table></figure>

<ul>
<li><p>demo</p>
</li>
Expand Down Expand Up @@ -216,7 +218,7 @@ <h1 class="posttitle" itemprop="name headline">
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
4 changes: 2 additions & 2 deletions 2021/03/07/my-leetcode/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -219,7 +219,7 @@ <h1 id="我的leetcode全集"><a href="#我的leetcode全集" class="headerlink"
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -207,7 +207,7 @@ <h1 class="posttitle" itemprop="name headline">
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
6 changes: 4 additions & 2 deletions 2021/03/07/微服务-分布式链路追踪/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -168,7 +168,9 @@ <h2 id="更加详细的数据:-Logging"><a href="#更加详细的数据:-Log
<p>难点在于后续的数据存储,需要支持冷热分离、业务隔离、复杂计算、全局搜索等重要的特性。</p>
<h2 id="方便可用的demo教程"><a href="#方便可用的demo教程" class="headerlink" title="方便可用的demo教程"></a>方便可用的demo教程</h2><p>不得不说,docker万岁。照着 <a target="_blank" rel="noopener" href="https://www.jaegertracing.io/docs/1.22/getting-started/">jaeger tracing</a>,很快就可以完成链路调用的可视化。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 14250:14250 -p 9411:9411 jaegertracing/all-in-one:1.22</span><br></pre></td></tr></table></figure>

<figure class="highlight golang"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">package</span> main</span><br><span class="line"></span><br><span class="line"><span class="keyword">import</span> (</span><br><span class="line"> <span class="string">&quot;context&quot;</span></span><br><span class="line"> <span class="string">&quot;github.com/davecgh/go-spew/spew&quot;</span></span><br><span class="line"> <span class="string">&quot;github.com/opentracing/opentracing-go&quot;</span></span><br><span class="line"> <span class="string">&quot;github.com/opentracing/opentracing-go/log&quot;</span></span><br><span class="line"> <span class="string">&quot;github.com/uber/jaeger-client-go&quot;</span></span><br><span class="line"> <span class="string">&quot;github.com/uber/jaeger-client-go/config&quot;</span></span><br><span class="line"> <span class="string">&quot;time&quot;</span></span><br><span class="line">)</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">func</span> <span class="title">busyness</span><span class="params">(ctx context.Context, count <span class="keyword">int64</span>)</span></span> &#123;</span><br><span class="line"> span, ctx := opentracing.StartSpanFromContext(ctx, spew.Sprint(<span class="string">&quot;demo/step%v&quot;</span>, count))</span><br><span class="line"> <span class="keyword">defer</span> span.Finish()</span><br><span class="line"> span.LogFields(log.String(<span class="string">&quot;msg&quot;</span>, spew.Sprintf(<span class="string">&quot;busyness %v&quot;</span>, count)))</span><br><span class="line"> time.Sleep(time.Millisecond * time.Duration(count) * <span class="number">100</span>)</span><br><span class="line"> <span class="keyword">if</span> count == <span class="number">0</span> &#123;</span><br><span class="line"> <span class="keyword">return</span></span><br><span class="line"> &#125;</span><br><span class="line"> busyness(ctx, count<span class="number">-1</span>)</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">func</span> <span class="title">main</span><span class="params">()</span></span> &#123;</span><br><span class="line"></span><br><span class="line"> tracer, closer, err := config.Configuration&#123;</span><br><span class="line"> ServiceName: <span class="string">&quot;daydreamstest&quot;</span>,</span><br><span class="line"> &#125;.NewTracer(</span><br><span class="line"> config.Sampler(jaeger.NewConstSampler(<span class="literal">true</span>)), <span class="comment">// 采样策略</span></span><br><span class="line"> )</span><br><span class="line"> <span class="keyword">if</span> err != <span class="literal">nil</span> &#123;</span><br><span class="line"> <span class="built_in">panic</span>(err)</span><br><span class="line"> &#125;</span><br><span class="line"> <span class="keyword">defer</span> closer.Close()</span><br><span class="line"> opentracing.SetGlobalTracer(tracer)</span><br><span class="line"></span><br><span class="line"> ctx := context.TODO()</span><br><span class="line"> span := opentracing.StartSpan(<span class="string">&quot;demo&quot;</span>)</span><br><span class="line"> ctx = opentracing.ContextWithSpan(ctx, span)</span><br><span class="line"> busyness(ctx, <span class="number">5</span>)</span><br><span class="line">&#125;</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<p><img src="/pics/jaeger-demo.png" alt="jaeger demo"></p>

</div>
Expand Down Expand Up @@ -229,7 +231,7 @@ <h2 id="方便可用的demo教程"><a href="#方便可用的demo教程" class="h
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
4 changes: 2 additions & 2 deletions 2021/04/11/redis-persistance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -261,7 +261,7 @@ <h2 id="官方文档怎么说"><a href="#官方文档怎么说" class="headerlin
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<!-- rss -->


<meta name="generator" content="Hexo 5.3.0"></head>
<meta name="generator" content="Hexo 5.4.2"></head>

<body class="max-width mx-auto px3 ltr">

Expand Down Expand Up @@ -205,7 +205,7 @@ <h1 class="posttitle" itemprop="name headline">
Copyright &copy;


2021-2022
2021-2024
day-dreams
</div>
<div class="footer-right">
Expand Down
Loading

0 comments on commit 3785c60

Please sign in to comment.