Skip to content

Commit 7da0b9d

Browse files
committed
Improve the Replication section
1 parent 5b61dd2 commit 7da0b9d

22 files changed

+718
-241
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@startuml
2+
3+
skinparam map {
4+
HyperlinkColor #0077FF
5+
FontColor #313131
6+
BorderColor #313131
7+
BackgroundColor transparent
8+
}
9+
10+
json "**IPROTO_BALLOT body**" as ballot {
11+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_IS_RO_CFG]]": "MP_BOOL",
12+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_VCLOCK]]": "MP_MAP",
13+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_GC_VCLOCK]]": "MP_MAP",
14+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_IS_RO]]": "MP_BOOL",
15+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_IS_ANON]]": "MP_BOOL",
16+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_IS_BOOTED]]": "MP_BOOL",
17+
"(Optional) [[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_BALLOT_CAN_LEAD]]": "MP_BOOL"
18+
}
19+
20+
@enduml
Lines changed: 30 additions & 0 deletions
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@startuml
2+
3+
skinparam map {
4+
HyperlinkColor #0077FF
5+
FontColor #313131
6+
BorderColor #313131
7+
BackgroundColor transparent
8+
}
9+
10+
json "**Heartbeat message from master**" as heartbeat_request {
11+
"Size": "MP_UINT",
12+
"Header": {
13+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_REQUEST_TYPE]]": "0",
14+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_REPLICA_ID]]": "2",
15+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_TIMESTAMP]]": "MP_DOUBLE"
16+
}
17+
}
18+
19+
json "**Response from replica**" as heartbeat_response {
20+
"Size": "MP_UINT",
21+
"Header": {
22+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_REQUEST_TYPE]]": "IPROTO_OK",
23+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_REPLICA_ID]]": "2"
24+
},
25+
"Body": {
26+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_VCLOCK]]": "{1, 6}"
27+
}
28+
}
29+
30+
@enduml
Lines changed: 40 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@startuml
2+
3+
skinparam map {
4+
HyperlinkColor #0077FF
5+
FontColor #313131
6+
BorderColor #313131
7+
BackgroundColor transparent
8+
}
9+
10+
json "**IPROTO_JOIN**" as join_request {
11+
"Size": "MP_UINT",
12+
"Header": {
13+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_REQUEST_TYPE]]": "IPROTO_JOIN",
14+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_SYNC]]": "MP_UINT"
15+
},
16+
"Body": {
17+
"[[https://tarantool.io/en/doc/latest/dev_guide/internals/iproto/keys IPROTO_INSTANCE_UUID]]": "MP_UUID of this instance"
18+
}
19+
}
20+
21+
@enduml

0 commit comments

Comments
 (0)