V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  wqlin  ›  全部回复第 4 页 / 共 14 页
回复总数  270
1  2  3  4  5  6  7  8  9  10 ... 14  
❮ ❯
有点好奇这种高可用怎么做?分布式复制,一致性协议吗
2018 年 6 月 14 日
回复了 Allianzcortex 创建的主题 › 职场话题 › 回看这两年,真的是唏嘘不已
没怎么看懂...表达下关心
2018 年 6 月 4 日
回复了 streamo 创建的主题 › 程序员 › 实现 Raft 时遇到的一个细节问题,求指点
@streamo #4 不记得是不是只有这里涉及了 blank no-op,但是思想是相同的,就是新的 leader 上任后可以自己 propose 一个 command 帮助 commit,SO 的这个问题 https://stackoverflow.com/questions/37210615/raft-term-condition-to-commit-an-entry 有提到:
>
What this means in practice is when a leader is elected, it typically commits a no-op entry to force a commit in its current term. The leader doesn't increase its commitIndex until the no-op entry is stored on a majority of servers.
>
而且找到一个 Raft 实现,详见: https://github.com/yahoo/gondola,专门分出了一个 blank command:
>
Note blank commands (command 3) are written into the log after a leader election. This is due to a Raft requirement that entries are not considered committed unless the last committed entry is of the current term. Applications need to ignore these blank commands.
>

活锁是否重要取决于应用程序,如果能保证 client 会不同的 propose,那么不处理也没事。但是通常情况下都无法保证,所以一般使用 blank command 帮助 commit
2018 年 6 月 4 日
回复了 streamo 创建的主题 › 程序员 › 实现 Raft 时遇到的一个细节问题,求指点
@streamo #2 找到了,在 raft thesis 中 6.4 Processing read-only queries more efficiently 中提到了:
>
If the leader has not yet marked an entry from its current term committed, it waits until it
has done so. The Leader Completeness Property guarantees that a leader has all committed
entries, but at the start of its term, it may not know which those are. To find out, it needs to
commit an entry from its term. Raft handles this by having each leader commit a blank no-op
entry into the log at the start of its term. As soon as this no-op entry is committed, the leader ’ s
commit index will be at least as large as any other servers ’ during its term.
>
2018 年 6 月 4 日
回复了 streamo 创建的主题 › 程序员 › 实现 Raft 时遇到的一个细节问题,求指点
嗯,如果在 term 2 的时候没有 propose 新的日志,那么 server 2 就不能 commit 101-105 这几条日志,所以就可能出现活锁的问题。Raft 作者在论文提到新的 leader 上任后可以提交一个空的日志,帮助 commit,但是一时没找到在哪里...
2018 年 5 月 21 日
回复了 wqlin 创建的主题 › 编程 › 写完了今年(2018)的 6.824 lab 了
@lsmgeb89 #9 嗯,是啊
2018 年 5 月 21 日
回复了 wqlin 创建的主题 › 编程 › 写完了今年(2018)的 6.824 lab 了
@lsmgeb89 😂我用了快小半年了
2018 年 5 月 21 日
回复了 wqlin 创建的主题 › 编程 › 写完了今年(2018)的 6.824 lab 了
@c0pper 断断续续写的,lab 2 用了快两个月,后面两个也用了两个月
2018 年 5 月 21 日
回复了 wqlin 创建的主题 › 编程 › 写完了今年(2018)的 6.824 lab 了
@all4win 没有,不过有测试文件
2018 年 5 月 21 日
回复了 wqlin 创建的主题 › 编程 › 写完了今年(2018)的 6.824 lab 了
@c0pper lab2 是 lab3 和 lab4 的基础,后面写 3 和 4 都回来改 2 的代码。。
2018 年 5 月 20 日
回复了 binbinyouliiii 创建的主题 › 编程 › Javaer 应该学习哪门语言“性价比高”
补全语言知识?我觉得不如视野再开阔点,系统学习下编程语言:静态语言,动态语言,函数式,面向对象,强类型,弱类型...可以搜搜 programming lanaguage。只有一两门语言感觉没有质变
2018 年 5 月 19 日
回复了 wqlin 创建的主题 › Go 编程语言 › 如何 debug 超过 8192 个活跃的 goroutine
@rcmerci 好的,谢谢
2018 年 5 月 19 日
回复了 wqlin 创建的主题 › Go 编程语言 › 如何 debug 超过 8192 个活跃的 goroutine
@mengzhuo 了解
2018 年 5 月 19 日
回复了 wqlin 创建的主题 › Go 编程语言 › 如何 debug 超过 8192 个活跃的 goroutine
@janxin #4 了解,我去试试
2018 年 5 月 19 日
回复了 wqlin 创建的主题 › Go 编程语言 › 如何 debug 超过 8192 个活跃的 goroutine
@susecjh #1 怎么打 log,现在我只用 runtime.NumGoroutine() 打印出活跃的 goroutine 数量。从日志可以看到本来只有几百个的,然后不知道怎么的突然开始增大,一直增加到 8192 个。可以打印出更详细的信息吗
贡献一层
2018 年 3 月 26 日
回复了 supermao 创建的主题 › 程序员 › JavaScript EventEmitter
@supermao 哈哈
2018 年 3 月 26 日
回复了 supermao 创建的主题 › 程序员 › JavaScript EventEmitter
@supermao 还以为是 russ cos 本人
2018 年 3 月 26 日
回复了 supermao 创建的主题 › 程序员 › JavaScript EventEmitter
楼主这头像...
2018 年 3 月 9 日
回复了 tuzhenyu 创建的主题 › 程序员 › 有美团的老哥可以帮忙把简历直推到组里吗?
1  2  3  4  5  6  7  8  9  10 ... 14  
❮ ❯
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1860 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 15:51 · PVG 23:51 · LAX 07:51 · JFK 10:51
♥ Do have faith in what you're doing.