evtimer_newevtimer_new(base, callback, NULL)用来做定时器,即当达到一定时间后调用回调函数callback,用evtimer_add激活定时器。例如:my_node->ev_expect_ping =
evtimer_new(my_node->base,expected_leader_ping_period
,(void*)my_node);
evti...
随着业务线和项目增加,使用rsync命令方式发布代码已经无法满足需求。所以想搞一套代码发布平台。【需求收集】1.年前开发了一个版本,当时只是和前端PHP团队沟通过。开发完发现后端需求和前端的需求有出入。所以这个版本给废掉了。2.春节后,跟各业务线Leader重新沟通了一下需..
分类:
其他好文 时间:
2015-03-11 15:12:41
阅读次数:
669
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro...
分类:
其他好文 时间:
2015-03-10 21:24:16
阅读次数:
139
工作几年,服务的公司有的打卡是发工资的唯一依据,有的公司不打卡但部门leader还是定了默认时间,大多数公司似乎离开打卡机就无法运转了。作为一名coder,我的很多核心代码是夜里在家写的,而不是在闹哄哄的开放办公室里。上班真的需要打卡吗?...
分类:
微信 时间:
2015-03-10 10:25:34
阅读次数:
281
原文出处:http://rdc.taobao.com/blog/cs/?p=162本文主要介绍zookeeper中zookeeper Server leader的选举,zookeeper在选举leader的时候采用了paxos算法(主要是fast paxos),这里主要介绍其中两种:LeaderEl...
分类:
编程语言 时间:
2015-03-05 12:24:17
阅读次数:
252
服务器使用事务日志来持久化事务。在接受一个提案之前,服务器(Follower和Leader)需要将提案中的事务持久化到事务日志中。事务日志是服务器本地磁盘的一个文件。事务按顺序附加到这个文件。服务器时不时的会关闭当前文件,创建一个新文件来滚动(Roll Over)日志。...
分类:
其他好文 时间:
2015-03-03 09:58:59
阅读次数:
171
Apache Curator Leader Election...
分类:
Web程序 时间:
2015-02-27 17:09:21
阅读次数:
217
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l...
分类:
其他好文 时间:
2015-02-27 13:42:44
阅读次数:
167
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l...
分类:
其他好文 时间:
2015-02-23 14:19:34
阅读次数:
165
Amakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem with Hanzo Hattori, the best ninja and the love of Nakururu. After he...
分类:
其他好文 时间:
2015-02-18 15:21:45
阅读次数:
323