More than code

More Than Code
The efficiency of your iteration of reading, practicing and thinking decides your understanding of the world.
未分类

mit6.824 lab4 设计思路

Raft-KV 这里写一下lab4 shardkv的思路吧,感觉如果不好好想一下设计细节的话写代码的时候就很容易乱套 目标就是完成所有的part,所以后面的选做部分也要实现(其实感觉不实现那我们的代码就太玩具了) 每个shard不能干扰其他的shard,比如一个shard正在等待数据,他是不能干扰其他shard完成正常操作的。所以我们分别维护每个shard的状态。每个shard有自己的map 去重表,可以放在shard外面也可以放在shard里面,我这里就选择放在shard里面 有一个定时向shardctrler去…

2022年2月20日 0条评论 861点热度 0人点赞 sheep 阅读全文
paper

Raft notes

1 通过算法分解(leader选举,日志复制和安全)和减少状态机的状态来提升Raft的可理解性 Raft独特的特性 强leader: 日志只从leader发送给其他的服务器 leader选举: 使用随机计时器来选举领导人,在解决冲突的时候更加简单 成员关系调整: 使用共同一致(Joint Consensus)的方法来处理集群成员变化的问题,处于调整过程中的两种不同配置的集群中大多数会有重叠,让我们可以在集群变化的时候保证可用性 2 Replicated state machine 在一组服务器上的状态机具有相同状态…

2022年2月10日 0条评论 518点热度 0人点赞 sheep 阅读全文
paper

MapReduce notes

通过functional model和用户指定的map和reduce操作,我们可以很容易的将这些计算并行化。 通过re-execution作为主要的fault tolerance的手段 2 programming model map接受input pair,并生成一组中间键值对。MapReduce Library会把相同key的键值对的所有value组合在一起,并把他们传给reduce reduce接受一个key以及对应的一组value,他将这一组值合并到一起,并返回给用户 一个计算每个document的单词数的例…

2022年2月8日 0条评论 500点热度 0人点赞 sheep 阅读全文
paper

GFS notes

First pass The design of GFS has been driven by key observations of google application workloads and technological environment 在分布式系统的环境中,component failures are the norm rather than the exception. 当数据快速增长,去管理billions级别的kb大小的文件是unwise的(因为我们需要管理大量的inode,并且读写文件以及…

2022年2月7日 0条评论 455点热度 0人点赞 sheep 阅读全文
其他

How to Read a Paper

How to Read a Paper Just a note for convenience. First pass, get a bird's eye view of the paper Carefully read the title, abstract, and introduction Read the section and sub-section headings, but ignore everything else Read the conclusions Glance over the refe…

2022年2月2日 0条评论 597点热度 0人点赞 sheep 阅读全文
分类
  • ARTS
  • C++
  • CSAPP
  • daily
  • database
  • leetcode
  • linux
  • ml
  • nlp
  • paper
  • rocksdb
  • rust
  • ScummVM
  • tech
  • 其他
  • 周报
  • 未分类
  • 笔记
  • 算法
  • 计算机图形学
归档
  • 2025 年 5 月
  • 2025 年 4 月
  • 2025 年 3 月
  • 2025 年 2 月
  • 2025 年 1 月
  • 2024 年 12 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 8 月
  • 2024 年 7 月
  • 2024 年 6 月
  • 2024 年 5 月
  • 2024 年 4 月
  • 2024 年 3 月
  • 2024 年 2 月
  • 2023 年 12 月
  • 2023 年 11 月
  • 2023 年 9 月
  • 2023 年 7 月
  • 2023 年 6 月
  • 2023 年 5 月
  • 2023 年 4 月
  • 2023 年 2 月
  • 2023 年 1 月
  • 2022 年 9 月
  • 2022 年 7 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 4 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 12 月
  • 2021 年 11 月
  • 2021 年 10 月
  • 2021 年 9 月
  • 2021 年 8 月
  • 2021 年 7 月
  • 2021 年 6 月
  • 2021 年 5 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 1 月
  • 2020 年 12 月

COPYRIGHT © 2021 heavensheep.xyz. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS