-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
829 lines (444 loc) · 22.6 KB
/
index.html
File metadata and controls
829 lines (444 loc) · 22.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
<meta charset="utf-8">
<title>LBD's Blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="大数据与分布式">
<meta property="og:type" content="website">
<meta property="og:title" content="LBD's Blog">
<meta property="og:url" content="http://linbingdong.com/index.html">
<meta property="og:site_name" content="LBD's Blog">
<meta property="og:description" content="大数据与分布式">
<meta property="og:locale" content="zh-CN">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="LBD's Blog">
<meta name="twitter:description" content="大数据与分布式">
<link rel="alternate" href="/atom.xml" title="LBD's Blog" type="application/atom+xml">
<link rel="icon" href="/css/images/mylogo.jpg">
<link rel="apple-touch-icon" href="/css/images/mylogo.jpg">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<style type="text/css">
@font-face{font-family:futura-pt; src:url("css/fonts/FuturaPTBold.otf") format("woff");font-weight:500;font-style:normal;}
@font-face{font-family:futura-pt-light; src:url("css/fonts/FuturaPTBook.otf") format("woff");font-weight:lighter;font-style:normal;}
@font-face{font-family:futura-pt-italic; src:url("css/fonts/FuturaPTBookOblique.otf") format("woff");font-weight:400;font-style:italic;}
}
</style>
<link rel="stylesheet" href="/css/style.css">
<script src="/js/jquery-3.1.1.min.js"></script>
<script src="/js/bootstrap.js"></script>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/home.css">
<link rel="stylesheet" href="/css/header-post.css">
<link rel="stylesheet" href="/css/vdonate.css">
</head>
</html>
<body>
<div id="container">
<div id="wrap">
<header>
<div id="allheader" class="navbar navbar-default navbar-static-top" role="navigation">
<div class="navbar-inner">
<div class="container">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" style="
margin-top: 0px;">
<img width="62px" height="62px" alt="Hike News" src="/css/images/mylogo.jpg">
</a>
<div class="navbar-collapse collapse">
<ul class="hnav navbar-nav">
<li> <a class="main-nav-link" href="/">首页</a> </li>
<li> <a class="main-nav-link" href="/archives">归档</a> </li>
<li> <a class="main-nav-link" href="/categories">分类</a> </li>
<li> <a class="main-nav-link" href="/tags">标签</a> </li>
<li> <a class="main-nav-link" href="/about">关于</a> </li>
<li><div id="search-form-wrap">
<form class="search-form">
<input type="text" class="ins-search-input search-form-input" placeholder>
<button type="submit" class="search-form-submit"></button>
</form>
<div class="ins-search">
<div class="ins-search-mask"></div>
<div class="ins-search-container">
<div class="ins-input-wrapper">
<input type="text" class="ins-search-input" placeholder="请输入关键词...">
<span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
</div>
<div class="ins-section-wrapper">
<div class="ins-section-container"></div>
</div>
</div>
</div>
<script>
(function (window) {
var INSIGHT_CONFIG = {
TRANSLATION: {
POSTS: '文章',
PAGES: '页面',
CATEGORIES: '分类',
TAGS: '标签',
UNTITLED: '(无标题)',
},
ROOT_URL: '/',
CONTENT_URL: '/content.json',
};
window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="/js/insight.js"></script>
</div></li>
</ul></div>
</div>
</div>
</div>
</header>
<div id="content" class="outer">
<section id="main" style="float:none;">
<article id="post-Golang小记" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2019/05/18/Golang小记/">Golang小记</a>
</h1>
</header>
<div class="article-meta">
<a href="/2019/05/18/Golang小记/" class="article-date">
<time datetime="2019-05-18T06:22:24.897Z" itemprop="datePublished">2019-05-18</time>
</a>
<a class="article-category-link" href="/categories/Golang/">Golang</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>记录go语言使用中的一些注意事项。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-分布式系统的问题" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2018/04/18/分布式系统的问题/">分布式系统的问题</a>
</h1>
</header>
<div class="article-meta">
<a href="/2018/04/18/分布式系统的问题/" class="article-date">
<time datetime="2018-04-17T16:00:00.000Z" itemprop="datePublished">2018-04-18</time>
</a>
<a class="article-category-link" href="/categories/分布式系统/">分布式系统</a>
</div>
<div class="article-entry" itemprop="articleBody">
<blockquote>
<p>本文内容翻译自《Designing Data-Intensive Applications》一书的第8章。</p>
</blockquote>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-PhxPaxos源码分析——Paxos算法实现" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/11/21/PhxPaxos源码分析——Paxos算法实现/">PhxPaxos源码分析——Paxos算法实现</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/11/21/PhxPaxos源码分析——Paxos算法实现/" class="article-date">
<time datetime="2017-11-20T16:00:00.000Z" itemprop="datePublished">2017-11-21</time>
</a>
<a class="article-category-link" href="/categories/源码分析/">源码分析</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>这篇主要来分析Paxos算法实现的部分,我想这应该也是读者最感兴趣的。在看这篇文章之前,如果之前对Paxos算法没有了解的童鞋可以看下这篇文章:<a href="http://linbingdong.com/2017/04/17/分布式系列文章——Paxos算法原理与推导/">Paxos算法原理与推导</a>,相信了解Paxos算法后再来通过源码看算法实现应该会很酸爽。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-PhxPaxos源码分析——网络" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/11/20/PhxPaxos源码分析——网络/">PhxPaxos源码分析——网络</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/11/20/PhxPaxos源码分析——网络/" class="article-date">
<time datetime="2017-11-19T16:00:00.000Z" itemprop="datePublished">2017-11-20</time>
</a>
<a class="article-category-link" href="/categories/源码分析/">源码分析</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>了解分布式系统的童鞋肯定听过Paxos算法的大名。Paxos算法以晦涩难懂著称,其工程实现更难。目前,号称在工程上实现了Paxos算法的应该只有Google、阿里和腾讯。然而,只有腾讯的微信团队真正将代码开源出来,他们将Paxos算法的实现封装成了一个Paxos库,大家可以基于该库实现自己想要的功能,比如用于master选举,或者甚至利用它来实现一个分布式KV数据库等。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-设计模式-适配器模式" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/11/11/设计模式-适配器模式/">设计模式-适配器模式</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/11/11/设计模式-适配器模式/" class="article-date">
<time datetime="2017-11-10T16:00:00.000Z" itemprop="datePublished">2017-11-11</time>
</a>
<a class="article-category-link" href="/categories/设计模式/">设计模式</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>本文介绍适配器模式。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-分布式系列文章——Paxos算法原理与推导" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/04/17/分布式系列文章——Paxos算法原理与推导/">分布式系列文章——Paxos算法原理与推导</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/04/17/分布式系列文章——Paxos算法原理与推导/" class="article-date">
<time datetime="2017-04-16T16:00:00.000Z" itemprop="datePublished">2017-04-17</time>
</a>
<a class="article-category-link" href="/categories/分布式一致性算法/">分布式一致性算法</a><a class="article-category-link" href="/categories/分布式一致性算法/Paxos/">Paxos</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>Paxos算法在分布式领域具有非常重要的地位。但是Paxos算法有两个比较明显的缺点:1.难以理解 2.工程实现更难。</p>
<p>网上有很多讲解Paxos算法的文章,但是质量参差不齐。看了很多关于Paxos的资料后发现,学习Paxos最好的资料是论文《Paxos Made Simple》,其次是中、英文版维基百科对Paxos的介绍。本文试图带大家一步步揭开Paxos神秘的面纱。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-深入理解HashMap" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/04/16/深入理解HashMap/">深入理解HashMap</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/04/16/深入理解HashMap/" class="article-date">
<time datetime="2017-04-16T12:47:53.000Z" itemprop="datePublished">2017-04-16</time>
</a>
<a class="article-category-link" href="/categories/Java/">Java</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>JDK1.7和JDK1.8中HashMap的实现不尽相同,JDK1.8中做了一些优化,比如当链表多长时转化成红黑树,提高插入和查找的效率;扩容时不再重新哈希。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-生产者消费者模式" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/04/14/生产者消费者模式/">生产者消费者模式</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/04/14/生产者消费者模式/" class="article-date">
<time datetime="2017-04-14T08:16:06.000Z" itemprop="datePublished">2017-04-14</time>
</a>
<a class="article-category-link" href="/categories/Java/">Java</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>在并发编程中使用生产者和消费者模式能够解决绝大多数并发问题。该模式通过平衡生产线程和消费线程的工作能力来提高程序的整体处理数据的速度。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-程序员必读书单" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/04/14/程序员必读书单/">程序员必读书单</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/04/14/程序员必读书单/" class="article-date">
<time datetime="2017-04-14T08:15:36.000Z" itemprop="datePublished">2017-04-14</time>
</a>
<a class="article-category-link" href="/categories/学习资料/">学习资料</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p><a href="http://zh.lucida.me/" target="_blank" rel="noopener">Lucida</a>大神这篇文章写得非常详细,<a href="http://zh.lucida.me/blog/developer-reading-list/#cracking_the_coding_interview" target="_blank" rel="noopener">点此查看</a>。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<article id="post-tmpfs" class="article article-type-post" itemscope itemprop="blogPost">
<div id="articleInner" class="article-inner">
<header class="article-header">
<h1 class="thumb" itemprop="name">
<a class="article-title" href="/2017/04/11/tmpfs/">tmpfs</a>
</h1>
</header>
<div class="article-meta">
<a href="/2017/04/11/tmpfs/" class="article-date">
<time datetime="2017-04-11T06:03:33.000Z" itemprop="datePublished">2017-04-11</time>
</a>
<a class="article-category-link" href="/categories/Linux/">Linux</a>
</div>
<div class="article-entry" itemprop="articleBody">
<p>tmpfs是一种基于内存的文件系统,它和虚拟磁盘ramdisk比较类似像,但不完全相同。和ramdisk一样,tmpfs可以使用内存,但它也可以使用swap分区来存储。而且传统的ramdisk是个块设备,要用mkfs格式化才能使用;而tmpfs是一个文件系统,并不是块设备,不需要格式化。tmpfs是最好的基于内存的文件系统。</p>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<!-- Table of Contents -->
<nav id="page-nav">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><span class="space">…</span><a class="page-number" href="/page/5/">5</a><a class="extend next" rel="next" href="/page/2/">下一页 »</a>
</nav>
</section>
</div>
<div align="center" style="margin-top: 30px;"><hr class="hr" style="margin:0px; height:3px;"></div>
<footer id="footer">
<div class="container">
<div class="row">
<p id="copyRightEn">Copyright © 2016 - 2019 LBD's Blog All Rights Reserved.</p>
<p class="busuanzi_uv">
访客数 : <span id="busuanzi_value_site_uv"></span> |
访问量 : <span id="busuanzi_value_site_pv"></span>
</p>
</div>
</div>
</footer>
<!-- min height -->
<script>
var wrapdiv = document.getElementById("wrap");
var contentdiv = document.getElementById("content");
var allheader = document.getElementById("allheader");
wrapdiv.style.minHeight = document.body.offsetHeight + "px";
if (allheader != null) {
contentdiv.style.minHeight = document.body.offsetHeight - allheader.offsetHeight - document.getElementById("footer").offsetHeight + "px";
} else {
contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("footer").offsetHeight + "px";
}
</script>
</div>
<!-- <nav id="mobile-nav">
<a href="/" class="mobile-nav-link">Home</a>
<a href="/archives" class="mobile-nav-link">Archives</a>
<a href="/categories" class="mobile-nav-link">Categories</a>
<a href="/tags" class="mobile-nav-link">Tags</a>
<a href="/about" class="mobile-nav-link">About</a>
</nav> -->
<!-- mathjax config similar to math.stackexchange -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
}
});
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i=0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script src="/js/scripts.js"></script>
<script src="/js/home.js"></script>
<div style="display: none;">
<script src="https://s95.cnzz.com/z_stat.php?id=1260716016&web_id=1260716016" language="JavaScript"></script>
</div>
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="myModalLabel">设置</h2>
</div>
<hr style="margin-top:0px; margin-bottom:0px; width:80%; border-top: 3px solid #000;">
<hr style="margin-top:2px; margin-bottom:0px; width:80%; border-top: 1px solid #000;">
<div class="modal-body">
<div style="margin:6px;">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" onclick="javascript:setFontSize();" aria-expanded="true" aria-controls="collapseOne">
正文字号大小
</a>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
您已调整页面字体大小
</div>
</div>
<div style="margin:6px;">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" onclick="javascript:setBackground();" aria-expanded="true" aria-controls="collapseTwo">
夜间护眼模式
</a>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
<div class="panel-body">
夜间模式已经开启,再次单击按钮即可关闭
</div>
</div>
<div>
<a data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="true" aria-controls="collapseThree"> 关 于 </a>
</div>
<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
<div class="panel-body">
LBD's Blog
</div>
<div class="panel-body">
Copyright © 2019 LBD All Rights Reserved.
</div>
</div>
</div>
<hr style="margin-top:0px; margin-bottom:0px; width:80%; border-top: 1px solid #000;">
<hr style="margin-top:2px; margin-bottom:0px; width:80%; border-top: 3px solid #000;">
<div class="modal-footer">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
</div>
</div>
</div>
<a id="rocket" href="#top" class=""></a>
<script type="text/javascript" src="/js/totop.js?v=1.0.0" async=""></script>
</body>
</html>