Implementation of Raft Consensus Algorithm in php
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Connections
Messages
Node 0
Node 1
Node 2
Node 3
Node 4
States
.DebugLog.txt.swp
DebugLog.txt
LICENSE.md
Node.php
NodeList.php
NodeProperties.php
NodeStart.php
README.md
TestCases.php
Tester.php

README.md

Raft-php

Implementation of Raft Consensus Algorithm in php

Authors:

Khawaja Waqee Khalid, Tahir Azim

Instructions:

Run basic test cases by navigating to the download directory and running command

php TestCases.php [port]

Although node closing has been implemented but due to unreliability of php sockets, sometimes the closing fails and new connections cannot be made on that port. Therefore you should always change port by increments of 50 or more each time the tests are run.

Due to this unreliabilty you may also observe that the test gets stuck or keeps sending the same data with no reply which means that some port failed to get closed and is thus not allowing a reconnection, in that case also you should exit the console and try again with port incremented by 50.

Disclaimer

Note that this is a prototype, research implementation and the authors take no responsibility for any damages incurred from the use or misuse of this code.