Skip to content

Commit

Permalink
Adjust the probabilities based on empirical data to achieve less unev…
Browse files Browse the repository at this point in the history
…en coverage of the action space.

Signed-off-by: Markus Alexander Kuppe <[email protected]>
  • Loading branch information
lemmy committed Oct 10, 2024
1 parent ebdea19 commit 854d077
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tla/consensus/SIMccfraft.tla
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ SIMInitReconfigurationVars ==
\* Start with any subset of servers in the active configuration.
\/ CCF!InitReconfigurationVars

R ==
1..IF "R" \in DOMAIN IOEnv THEN atoi(IOEnv.R) ELSE 100
LOCAL R ==
1..IF "R" \in DOMAIN IOEnv THEN atoi(IOEnv.R) ELSE 10

SIMClientRequest(i) ==
/\ 1 = RandomElement(R)
/\ CCF!ClientRequest(i)

Q ==
1..IF "Q" \in DOMAIN IOEnv THEN atoi(IOEnv.Q) ELSE 100
LOCAL Q ==
1..IF "Q" \in DOMAIN IOEnv THEN atoi(IOEnv.Q) ELSE 10

SIMCheckQuorum(i) ==
/\ 1 = RandomElement(Q)
/\ CCF!CheckQuorum(i)

C ==
1..IF "C" \in DOMAIN IOEnv THEN atoi(IOEnv.C) ELSE 100
LOCAL C ==
1..IF "C" \in DOMAIN IOEnv THEN atoi(IOEnv.C) ELSE 10

SIMChangeConfigurationInt(i, newConfiguration) ==
/\ 1 = RandomElement(C)
/\ CCF!ChangeConfigurationInt(i, newConfiguration)

T ==
1..IF "T" \in DOMAIN IOEnv THEN atoi(IOEnv.T) ELSE 100
LOCAL T ==
1..IF "T" \in DOMAIN IOEnv THEN atoi(IOEnv.T) ELSE 1000

SIMTimeout(i) ==
/\ \/ 1 = RandomElement(T)
Expand Down

0 comments on commit 854d077

Please sign in to comment.