Skip to content

Commit

Permalink
Merge pull request #233 from Fantom-foundation/rapol/scenarios/b5
Browse files Browse the repository at this point in the history
B5 (ValsBlackout)
  • Loading branch information
rpl-ffl committed Sep 4, 2024
2 parents 045b60b + d2e901c commit c32f0fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 36 deletions.
11 changes: 6 additions & 5 deletions RT.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def enableB1 = true
def enableB2 = true
def enableB3 = true
def enableB4 = false
def enableB5 = false
def enableB5 = true
def enableC1 = false


Expand Down Expand Up @@ -212,13 +212,14 @@ pipeline {
}

steps {
build/norma run --label b5 -o . release_testing/b5.ValsBlackout.yml
build/norma run --label b5 -o . scenarios/release_testing/b5.ValsBlackout.yml
}

post {
success {
dir('./norma_data_b5_latest') {
archiveArtifacts artifacts: '**'
always {
script {
def artifacts = ["*.yml", "*.csv", "*.log", "*.html"]
uploadArtifacts(artifacts)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,61 +1,42 @@
# Scenario B5: over 2/3 of validators stop then restart after 5 minutes
# - Set up: start 4 validators, 2 RPC nodes and 2 observers
# - Set up: start 6 validators, 2 RPC nodes and 2 observers
# - Test: process transactions for 5 minutes, then stop 3 validators. Restart the validators again after another 5 minutes passed.
# - Validation: what would happen?

name: B5
duration: 610 # 10 minute sim: 5 minutes > stop 3 validators > 5 minutes further > start the stopped 3 validators > 10 seconds grace period

# backward compatibility, to be removed.
num_validators: 4
name: B5.ValsBlackout
duration: 900 # 15 minute sim: 5 minutes > stop 3 validators > 5 minutes further > start the stopped 3 validators > 5 minutes

nodes:
- name: full-validator
- name: static-validator
instances: 2
timer:
start: 0
end: 610
client:
imagename: main
type: validator

- name: crashing-validator
instances: 3
instances: 4
start: 1
timer:
start: 0
end: 300
start: 600
end: 610
300: end
600: start
client:
imagename: main
type: validator

- name: RPC
- name: rpc
instances: 2
timer:
start: 0
end: 610
client:
imagename: main
type: RPC
type: rpc

- name: observer
instances: 2
timer:
start: 0
end: 610
client:
imagename: main
type: observer

# In the network there is a single application producing constant load.
applications:
- name: load
type: counter
start: 1 # start time
end: 609 # termination time
end: 899 # termination time
users: 20 # number of users / accounts generating txs
rate:
constant: 100 # Tx/s

validate: true # what happen?

0 comments on commit c32f0fe

Please sign in to comment.