raftex:筏共识算法在ElixirErlang中的实现

时间:2021-05-26 13:33:50
【文件属性】:
文件名称:raftex:筏共识算法在ElixirErlang中的实现
文件大小:107KB
文件格式:ZIP
更新时间:2021-05-26 13:33:50
Elixir 拉夫特克斯 使用分布式有限状态机( gen_fsm )在Elixir / Erlang中实现。 什么是共识/什么是筏? 从: 共识是容错分布式系统中的一个基本问题。 共识涉及多个服务器就价值达成一致。 (…)Raft是一种共识算法,旨在易于理解。 在容错性和性能上与Paxos等效。 不同之处在于它被分解为相对独立的子问题,并且干净地解决了实际系统所需的所有主要部分。 安装 使用git clone git@github.com:my-flow/raftex.git克隆存储库。 使用mix deps.get安装所需的依赖mix deps.get 。 在浏览器中观看模拟 使用mix phoenix.start启动Web服务器 打开Web浏览器并访问URL 在终端上观看模拟 使用iex -S mix启动Elixir的交互式shell。 使用5个分布式节点运行仿真: iex(1)> Raf
【文件预览】:
raftex-master
----mix.exs(818B)
----elixir_buildpack.config(60B)
----priv()
--------static()
----lib()
--------state_machine.ex(511B)
--------server.ex(5KB)
--------raftex.ex(550B)
--------model()
--------helper()
--------candidate.ex(866B)
--------client_request.ex(2KB)
--------election.ex(2KB)
--------distributor.ex(3KB)
--------leader.ex(3KB)
--------follower.ex(404B)
----.travis.yml(118B)
----web()
--------views()
--------i18n.ex(187B)
--------models()
--------controllers()
--------channels()
--------router.ex(677B)
--------templates()
--------views.ex(556B)
----config()
--------locales()
--------test.exs(118B)
--------prod.exs(573B)
--------config.exs(985B)
--------dev.exs(197B)
----LICENSE(1KB)
----test()
--------test_helper.exs(15B)
--------raftex_test.exs(2KB)
----Procfile(92B)
----README.md(1KB)
----.gitignore(53B)

网友评论