-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global_discovery_strategy.puml and a description of the global di…
…scovery to udf_discovery_and_communication.rst
- Loading branch information
Showing
3 changed files
with
105 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
doc/design/global_discovery/global_discovery_strategy.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@startuml | ||
'https://plantuml.com/sequence-diagram | ||
|
||
!include ../legend.puml | ||
|
||
box Peer1 | ||
participant "DiscoveryStrategy" as DiscoveryStrategy1 | ||
participant "PeerCommunicator\n(Formation Leader)" as PeerCommunicator1 | ||
end box | ||
|
||
box Peer2 | ||
participant "DiscoveryStrategy" as DiscoveryStrategy2 | ||
participant "PeerCommunicator" as PeerCommunicator2 | ||
end box | ||
|
||
box Peer3 | ||
participant "DiscoveryStrategy" as DiscoveryStrategy3 | ||
participant "PeerCommunicator" as PeerCommunicator3 | ||
end box | ||
|
||
box Peer4 | ||
participant "DiscoveryStrategy" as DiscoveryStrategy4 | ||
participant "PeerCommunicator" as PeerCommunicator4 | ||
end box | ||
par | ||
loop all_peers_are_connected | ||
DiscoveryStrategy1 <- DiscoveryStrategy2: PingMessage | ||
DiscoveryStrategy1 -> PeerCommunicator1: register_peer(Peer2) | ||
ref over PeerCommunicator1, PeerCommunicator4: Global Cluster Formation | ||
DiscoveryStrategy2 -> PeerCommunicator2: are_all_peers_connected() | ||
end | ||
else | ||
loop all_peers_are_connected | ||
DiscoveryStrategy1 <- DiscoveryStrategy3: PingMessage | ||
DiscoveryStrategy1 -> PeerCommunicator1: register_peer(Peer3) | ||
ref over PeerCommunicator1, PeerCommunicator4: Global Cluster Formation | ||
DiscoveryStrategy3 -> PeerCommunicator3: are_all_peers_connected() | ||
end | ||
else | ||
loop all_peers_are_connected | ||
DiscoveryStrategy1 <- DiscoveryStrategy4: PingMessage | ||
DiscoveryStrategy1 -> PeerCommunicator1: register_peer(Peer4) | ||
ref over PeerCommunicator1, PeerCommunicator4: Global Cluster Formation | ||
DiscoveryStrategy4 -> PeerCommunicator4: are_all_peers_connected() | ||
end | ||
end | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters