- 博客(12)
- 资源 (13)
- 收藏
- 关注
原创 windows anaconda python3.6.5 pytorch-cpuonly安装
1创建conda虚拟环境:conda create -n pytorch python==3.6.52、配置源,这样会快conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/conda config --add channels https://mirr...
2020-04-03 11:22:39
727
原创 Apache 2.0许可证
这个是对于未持久化的log的处理方式,首先是unstable的结构,包括snapshot的指针,Entry的切片,unstable位置的偏移量,最后是type unstable struct { // the incoming unstable snapshot, if any. snapshot *pb.Snapshot // all entries that have not ye...
2020-03-31 19:59:59
2333
原创 Trie树
type Trie struct { isKey bool childrenNode [26]*Trie}/** Initialize your data structure here. */func Constructor() Trie { var Tnode Trie Tnode.isKey = false for i:=0;i<26;...
2020-03-21 14:45:27
137
原创 [etcd]raftpd confchange.go
______________________看前须知_________________在状态改变的程序中需要使用如下接口定义。首先有2个ConfChange,一个是ConfChange,另外一个是ConfChangeV2,这两个接口需要统一化,但是在proto中定义有差异,所以后面的go文件对这两个接口统一化写了一些函数来处理。所以这里要看清楚这两个接口到底有哪些不一样的地方。messa...
2020-03-20 17:23:53
344
原创 [etcd]raftpd confstate.go
_________________看前须知__________________message ConfState { // The voters in the incoming config. (If the configuration is not joint, // then the outgoing config is empty). repeated uint64 voters...
2020-03-20 15:57:50
174
原创 [etcd]raftpd protobuf
Raft中的序列化是借助于Proto buff来实现的,这个文件夹就定义了需要序列化的几个数据结构,Proto buff(https://github.com/protocolbuffers/protobuf/releases/tag/v3.7.1)是序列化和结构化数据的方法,常用于用于通信协议,数据存储,实现跨平台的数据结构转换。Raft中的序列化数据结构在raftpb/raft.proto...
2020-03-20 15:19:40
288
原创 [etcd]Raft模块(一)(readme)
Raft是一种协议,节点群集可以使用该协议维护复制的状态机。通过使用复制的日志,状态机保持同步。有关Raft的更多详细信息,请参见DiegoOngaro和JohnOusterhout撰写的“寻找可理解的共识算法”(https://raft.github.io/raft.pdf)。(这个论文在之前的博客翻译了一遍,基本上讲了raft的原理)该Raft库稳定且功能齐全。截至2016年,它是**...
2020-03-19 22:30:53
324
1
原创 [etcd] Raft理论学习(五)(客户端交互)
8 Client interactionThis section describes how clients interact with Raft, including how clients find the cluster leader and how Raft supports linearizable semantics [10]. These issues apply to all ...
2020-03-19 22:11:13
307
原创 [etcd] Raft理论学习(四)(日志压缩)
7 Log compactionRaft’s log grows during normal operation to incorporate more client requests, but in a practical system, it cannot grow without bound. As the log grows longer, it occupies more space...
2020-03-19 22:06:50
724
原创 [etcd] Raft理论学习(三)(集群成员和配置变化)
6 Cluster membership changesUp until now we have assumed that the cluster configuration (the set of servers participating in the consensusalgorithm) is fixed. In practice, it will occasionally be n...
2020-03-19 21:56:32
606
1
Saber入门简易教程
2010-03-19
dsp上的TDS510和560的USB驱动程序
2011-03-23
matlab中用GUI实现串口实时显示波形
2011-03-16
360routedecode.7z
2020-02-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人