Skip to content

Commit

Permalink
wb | even better error reporting when incompatible genesis file format
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Apr 16, 2024
1 parent 9e352e3 commit 0ed0ddb
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions nix/workbench/backend/supervisor-conf.nix
Expand Up @@ -120,24 +120,25 @@ let
startretries = 0;
# Seconds it needs to stay running to consider the start successful
# In cases with a big genesis file, like the "value" profile with ~600
# mega, if this file has an error the node can fail after the 5 seconds
# we use as default for the other programs and the error will be catched
# later by the healthcheck service with a misleading message.
# We found with our reference machines (c5.2xlarge, 16 MB and 8 cores),
# when running the "value" profile, that with 50 seconds at least one
# node was assummed successful (its socket was created). So to the
# default 5 we add 45 seconds when the UTxO size is the one of the
# "value" profile and seconds proportionaly to this for the others.
### derived.utxo_generated
### - fast: 18000 (Default of 5s is OK)
### - ci-test: 18000 (Default of 5s is OK)
### - default: 43200 (Default of 5s is OK)
### - plutus: 61200 (Default of 5s is OK)
### - forge-stress-pre: 72000
### - forge-stress-large: 144000
### - value: 1536000 (30s more needed)
### - chainsync-early-alonzo: 31104000
startsecs = 5 + (profileData.derived.utxo_generated / (1536000 / 50));
# mega, if this file has a format error the node can fail after the 5
# seconds we use as default for the other "program"s and the error will
# be caught later by the healthcheck service with a misleading message.
# We found with our AWS reference machines (c5.2xlarge, 16 MB and 8
# cores), when running the "value" profile, that with 50 seconds at
# least one node was assumed successful (its socket was created). So to
# the default 5 we add 50 seconds when the UTxO set size is the one of
# the "value" profile and seconds proportionally to this for the others.
# Not directly related to "genesis.extra_future_offset" or
# "derived.genesis_future_offset".
### derived.dataset_measure
### - fast: 0 (Default of 5s is OK)
### - ci-test: 0 (Default of 5s is OK)
### - default: 0 (Default of 5s is OK)
### - plutus: 0 (Default of 5s is OK)
### - forge-stress-pre: 5000000
### - forge-stress-large: 11300000
### - value: 5000000 (50s more needed)
startsecs = 5 + (profileData.derived.dataset_measure / (5000000 / 50));
})
nodeSpecs))
//
Expand Down

0 comments on commit 0ed0ddb

Please sign in to comment.