Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
sharding test scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
senia-psm committed Mar 18, 2024
1 parent 4015507 commit 8d6e780
Show file tree
Hide file tree
Showing 5 changed files with 307 additions and 74 deletions.
48 changes: 48 additions & 0 deletions scenario.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"workers_count": 4,
"steps": [
"StopAllShards",
{
"InvokeAndAwaitWorkersAsync": "Invoke, RestartShardManager, StartShards"
},
"RestartShardManager",
{
"Sleep": {
"secs": 3,
"nanos": 0
}
},
{
"StartShards": 4
},
"WaitForInvokeAndAwaitResult",
"StopAllShards",
"RestartShardManager",
{
"StartShards": 4
},
"RestartShardManager",
{
"InvokeAndAwaitWorkersAsync": "StartShards, RestartShardManager, Invoke"
},
"WaitForInvokeAndAwaitResult",
"StopAllShards",
"RestartShardManager",
{
"StartShards": 4
},
{
"StopShards": 3
},
{
"Sleep": {
"secs": 3,
"nanos": 0
}
},
{
"InvokeAndAwaitWorkersAsync": "StartShards(4), StopShards(3), Invoke"
},
"WaitForInvokeAndAwaitResult"
]
}
20 changes: 20 additions & 0 deletions scenario1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"workers_count": 4,
"steps": [
"StopAllShards",
{
"InvokeAndAwaitWorkersAsync": "Invoke, RestartShardManager, StartShards"
},
"RestartShardManager",
{
"Sleep": {
"secs": 3,
"nanos": 0
}
},
{
"StartShards": 4
},
"WaitForInvokeAndAwaitResult"
]
}
15 changes: 15 additions & 0 deletions scenario2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"workers_count": 4,
"steps": [
"StopAllShards",
"RestartShardManager",
{
"StartShards": 4
},
"RestartShardManager",
{
"InvokeAndAwaitWorkersAsync": "StartShards, RestartShardManager, Invoke"
},
"WaitForInvokeAndAwaitResult"
]
}
23 changes: 23 additions & 0 deletions scenario3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"workers_count": 4,
"steps": [
"StopAllShards",
"RestartShardManager",
{
"StartShards": 4
},
{
"StopShards": 3
},
{
"Sleep": {
"secs": 3,
"nanos": 0
}
},
{
"InvokeAndAwaitWorkersAsync": "StartShards(4), StopShards(3), Invoke"
},
"WaitForInvokeAndAwaitResult"
]
}
Loading

0 comments on commit 8d6e780

Please sign in to comment.