Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
6e6233e1
Commit
6e6233e1
authored
Feb 18, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
edb2fec5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
go/neo/master.go
go/neo/master.go
+12
-11
No files found.
go/neo/master.go
View file @
6e6233e1
...
@@ -22,24 +22,25 @@ package neo
...
@@ -22,24 +22,25 @@ package neo
// Master organization
// Master organization
//
//
// Master is the node tha oversees how whole cluster works, ... XXX
// Master is the node that oversees and manages how whole NEO cluster works.
// It is organized as follows:
// It accepts incoming connections, assigns node ID to incoming peers,
// maintains node and partition tables and broadcasts updates of those tables to
// all connected nodes. It drives cluster through recovery -> verify -> serve
// cycle. It also manages commits initiated by clients and notifies clients
// about changes committed by another client.
//
//
// - main task that controls whole logic of master working. It spawns
// Master is organized as follows:
// subtasks to implement that logic and communicate with the subtask via channels. XXX
//
// - main task that controls whole logic of master working. It spawns subtasks
// to implement that logic and communicates with the subtasks via channels.
// Main is the only mutator of nodeTab, partTab, etc.
// Main is the only mutator of nodeTab, partTab, etc.
//
//
// - accept task that accepts incoming connections and hands them over to main
// - accept task that accepts incoming connections and hands them over to main
// via nodeComeq.
// via nodeComeq.
//
//
// - per peer workers are spawned that interact with main via channels
// - per peer workers are spawned and interact with main via channels.
// - δnodeTab, δpartTab updates are proxied to peer by another per-peer task
//
// XXX
//
//
// XXX
// - δnodeTab, δpartTab updates are proxied to peer by another per-peer "notify" task.
// master manages node and partition tables and broadcast their updates
// to all connected nodes.
import
(
import
(
"context"
"context"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment