zyfforlinux

专注linux内核,系统编程,C++服务器端编程,golang ,python/bash脚本编程,DevOps,分布式...

GFS论文笔记

GFS的设计目标 分布式文件系统的共同设计目标: 性能 可伸缩性 可靠性 可用性 GFS根据自己情况重新设计的目标: 组件失效是常态事件,而不是意外事件,因此要有持续的监控、错误侦测、灾难冗余、自动恢复等机制 不能以管理大文件的方式来管理小文件,所以IO操作和Block的尺寸都需要重新考虑 ...

2019-05-30 12:28:35

阅读数 41

评论数 0

Tip of the Week #74: Delegating and Inheriting Constructors

Tip of the Week #74: Delegating and Inheriting Constructors Originally posted as totw/74 on 2014-04-21 By Bradley White (bww@google.com) “Delegating...

2019-03-07 10:50:01

阅读数 71

评论数 0

Envoy源码分析之ThreadLocal

ThreadLocal整体结构 Envoy中严重依赖ThreadLocal,为了避免加锁Envoy会尽可能在单一线程中完成所有的事件,但是多个线程之间难免会有一些数据需要共享,还有可能需要读写,为了避免加锁Envoy将一些需要在线程之间共享的数据放在ThreadLocal中,当ThreadLoca...

2019-02-01 09:45:23

阅读数 262

评论数 0

Envoy源码分析之Dispatcher

Dispatcher 在Envoy的代码中Dispatcher是随处可见的,可以说在Envoy中有着举足轻重的地位,一个Dispatcher就是一个EventLoop,其承担了任务队列、网络事件处理、定时器、信号处理等核心功能。在Envoy threading model这篇文章所提到的Event...

2018-11-02 10:09:08

阅读数 276

评论数 0

6.824: Distributed Systems 课程讲义3

什么是一致性? 分布式系统中,数据通常会通过复制进行冗余,当应用程序并发访问这些数据的时候,如果保证访问的数据是一致的。如果一个应用程序写入了新的数据,那么之后来访问数据的应用能否看到新增的数据呢? 这就是一致性问题了,通常一致性有几种类型: 弱一致性 读的时候可能会返回老数据,不保证能访问到...

2018-10-29 14:25:26

阅读数 123

评论数 0

Tip of the Week #65: Putting Things in their Place

Tip of the Week #65: Putting Things in their Place Originally posted as totw/65 on 2013-12-12 By Hyrum Wright (hyrum@hyrumwright.org) “Let me ’splai...

2018-10-21 21:29:55

阅读数 88

评论数 0

Tip of the Week #64: Raw String Literals

Tip of the Week #64: Raw String Literals Originally published as totw/64 on 2013-12-09 By Titus Winters (titus@google.com) Updated 2017-10-23 Quickl...

2018-10-21 16:20:38

阅读数 65

评论数 0

Tip of the Week #61: Default Member Initializers

Tip of the Week #61: Default Member Initializers Originally posted as Totw #61 on Nov 12, 2013 by Michael Chastain (mec.desktop@gmail.com) Updated O...

2018-10-21 15:47:33

阅读数 57

评论数 0

Tip of the Week #59: Joining Tuples

Tip of the Week #59: Joining Tuples Originally published as totw/59 on 2013-10-21 By Greg Miller (jgm@google.com) Updated 2018-01-24 “Now join your ...

2018-10-21 15:14:40

阅读数 41

评论数 0

Tip of the Week #55: Name Counting and unique_ptr

Tip of the Week #55: Name Counting and unique_ptr Originally published as totw/55 on 2013-09-12 by Titus Winters (titus@google.com) Updated 2017-10-...

2018-10-21 14:23:56

阅读数 37

评论数 0

Tip of the Week #49: Argument-Dependent Lookup

Tip of the Week #49: Argument-Dependent Lookup Originally posted as totw/49 on 2013-07-14 “…whatever disappearing trail of its legalistic argle-barg...

2018-10-21 10:11:14

阅读数 42

评论数 0

Tip of the Week #24: Copies, Abbrv

Tip of the Week #24: Copies, Abbrv Originally posted as TotW #24 on Nov 26, 2012 by Titus Winters, (titus@google.com) and Chandler Carruth (chandler...

2018-10-19 16:12:16

阅读数 76

评论数 0

日志采集中的关键技术分析

概述 日志从最初面向人类演变到现在的面向机器发生了巨大的变化。最初的日志主要的消费者是软件工程师,他们通过读取日志来排查问题,如今,大量机器日夜处理日志数据以生成可读性的报告以此来帮助人类做出决策。在这个转变的过程中,日志采集Agent在其中扮演着重要的角色。 作为一个日志采集的Agent简单来看...

2018-10-08 12:43:44

阅读数 292

评论数 1

Tip of the Week #11: Return Policy

Tip of the Week #11: Return Policy Originally posted as TotW #11 on August 16, 2012 by Paul S. R. Chisholm (p.s.r.chisholm@google.com) Frod...

2018-07-01 15:18:12

阅读数 156

评论数 0

Tip of the Week #42: Prefer Factory Functions to Initializer Methods

Tip of the Week #42: Prefer Factory Functions to Initializer Methods Originally posted as totw/42 on 2013-05-10 By Geoffrey Romer (gromer@goog...

2018-04-02 22:02:07

阅读数 180

评论数 1

Tip of the Week #36: New Join API

Tip of the Week #36: New Join API Originally published as totw/36 on 2013-03-21 By Greg Miller (jgm@google.com) Updated 2018-01-24 “I go...

2018-04-02 22:01:17

阅读数 130

评论数 0

Tip of the Week #10: Splitting Strings, not Hairs

Tip of the Week #10: Splitting Strings, not Hairs Originally published as totw/10 on 2012-08-16 By Greg Miller (jgm@google.com) Updated 201...

2018-04-02 22:00:19

阅读数 155

评论数 0

Tip of the Week #3: String Concatenation and operator+ vs. StrCat()

Tip of the Week #3: String Concatenation and operator+ vs. StrCat() Originally published as totw/3 on 2012-05-11 Updated 2017-09-18; revised 2...

2018-04-02 21:58:57

阅读数 124

评论数 0

Tip of the Week #1: string_view

Tip of the Week #1: string_view Originally published as totw/1 on 2012-04-20 By Michael Chastain (mec.desktop@gmail.com) Updated 2017-09-18 W...

2018-04-02 21:48:34

阅读数 219

评论数 0

如何mock系统调用

背景​   Linux下开发存储系统、网络库的时候会用到一系列Linux的系统调用,每一个系统调用都有一些出错的场景,有些场景很极端,比如内存使用达到上限、磁盘写满等,如果对其进行测试的话,很难去构造这样的一个场景,这个时候集成测试就显得力不存心了,只能靠单元测试来覆盖这些场景。现在的问题就是如何...

2017-09-16 18:00:16

阅读数 710

评论数 1

提示
确定要删除当前文章?
取消 删除