-
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.
Merge pull request #4 from s12f/improve_sequencer
- Loading branch information
Showing
9 changed files
with
179 additions
and
80 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
.vim | ||
.vscode |
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
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
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,5 @@ | ||
CONSTANTS | ||
None = None | ||
INVARIANT Inv | ||
SPECIFICATION Spec | ||
CONSTRAINT Constraint |
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,18 @@ | ||
---- MODULE MCSequencer ---- | ||
|
||
EXTENDS TLC | ||
|
||
CONSTANT None | ||
|
||
VARIABLES states, history, storage, nextRid | ||
|
||
Servers ≜ {"s1", "s2", "s3"} | ||
BatchSize ≜ 3 | ||
|
||
INSTANCE Sequencer | ||
|
||
Constraint ≜ | ||
∧ nextRid < 7 | ||
∧ storage < 7 | ||
|
||
==== |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
## TODO | ||
# Sequencer | ||
|
||
- [ ] Improve: linearizable Point | ||
This is a distributed sequence generator implement | ||
by the assumption that all servers have a bounded clock skew. | ||
|
||
Files: | ||
+ [Sequencer.tla](./Sequencer.tla): the specification of the Sequencer | ||
+ [MCSequencer.tla](./MCSequencer.tla): Model Checking for Sequencer | ||
|
||
Features: | ||
+ Linearizability | ||
+ Cached sequences for better performance |