prop. 150 updates

This commit is contained in:
zzz
2019-05-02 17:15:09 +00:00
parent eaafef242f
commit 5face8fd50

View File

@@ -74,10 +74,8 @@ Definitions
- Source: Identifies the originator of the message - Source: Identifies the originator of the message
- Destination: Identifies the recipient of the message - Destination: Identifies the recipient of the message
- Term: See Raft - Terms: See Raft. Initialized to 0, increases monotonically
- Last Log Term: See Raft - Indexes: See Raft. Initialized to 0, increases monotonically
- Last Log Index: See Raft
- Commit Index: See Raft
@@ -104,7 +102,7 @@ Message type: 1 byte
Last Log Term: 8 byte integer Last Log Term: 8 byte integer
Last Log Index: 8 byte integer Last Log Index: 8 byte integer
Commit Index: 8 byte integer Commit Index: 8 byte integer
Log size: 4 byte integer Log size: In bytes, 4 byte integer
{% endhighlight %} {% endhighlight %}
@@ -126,20 +124,49 @@ Term: 8 byte integer
{% endhighlight %} {% endhighlight %}
======================== ======
Log Value Type Number
======================== ======
Application 1
Configuration 2
ClusterServer 3
LogPack 4
SnapshotSyncRequest 5
======================== ======
Log Contents Log Contents
```````````` ````````````
Application
~~~~~~~~~~~
TBD, probably JSON. TBD, probably JSON.
Configuration
~~~~~~~~~~~~~
ClusterServer
~~~~~~~~~~~~~
LogPack
~~~~~~~
SnapshotSyncRequest
~~~~~~~~~~~
Responses Responses
--------- ---------
The response is 26 bytes, as follows. The response is 26 bytes, as follows.
All values are big-endian. All values are unsigned big-endian.
.. raw:: html .. raw:: html
@@ -149,8 +176,8 @@ Message type: 1 byte
Source: 4 byte integer Source: 4 byte integer
Destination: 4 byte integer Destination: 4 byte integer
Term: 8 byte integer Term: 8 byte integer
Next Index: 8 byte integer Next Index: Initialized to leader last log index + 1, 8 byte integer
Is Accepted: 1 byte Is Accepted: 1 if accepted, 0 if not accepted (1 byte)
{% endhighlight %} {% endhighlight %}