Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ type MissionOptions
[<Option('k', "kubeconfig", HelpText = "Kubernetes config file", Required = false, Default = "~/.kube/config")>]
member self.KubeConfig = kubeConfig

[<Option('n', "num-nodes", HelpText = "Number of nodes in config", Required = false, Default = 5)>]
[<Option('n', "num-nodes", HelpText = "Number of nodes in config", Required = false, Default = 3)>]
member self.NumNodes = numNodes

[<Option("debug", HelpText = "Log-partitions to set to 'debug' level")>]
Expand Down
6 changes: 5 additions & 1 deletion src/FSLibrary/MissionBootAndSync.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ open StellarFormation
open StellarStatefulSets

let bootAndSync (context: MissionContext) =
let coreSet = MakeLiveCoreSet "core" (CoreSetOptions.GetDefault context.image)
let coreSet =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes }

context.Execute
[ coreSet ]
Expand Down
6 changes: 5 additions & 1 deletion src/FSLibrary/MissionDatabaseInplaceUpgrade.fs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ let databaseInplaceUpgrade (context: MissionContext) =
let quorumSet = CoreSetQuorum(CoreSetName("core"))

let coreSet =
MakeLiveCoreSet "core" { CoreSetOptions.GetDefault newImage with quorumSet = quorumSet }
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault newImage with
nodeCount = context.numNodes
quorumSet = quorumSet }

let beforeUpgradeCoreSet =
MakeLiveCoreSet
Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionLoadGeneration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let loadGeneration (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
dumpDatabase = false }

Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionLoadGenerationWithSpikes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let loadGenerationWithSpikes (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
dumpDatabase = false }

Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionLoadGenerationWithTxSetLimit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let loadGenerationWithTxSetLimit (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
dumpDatabase = false
updateSorobanCosts = Some(true) }
Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionProtocolUpgradeWithLoad.fs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let protocolUpgradeWithLoad (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
dumpDatabase = false
updateSorobanCosts = Some(true)
Expand Down
6 changes: 5 additions & 1 deletion src/FSLibrary/MissionSimplePayment.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ open StellarFormation
open StellarStatefulSets

let simplePayment (context: MissionContext) =
let coreSet = MakeLiveCoreSet "core" (CoreSetOptions.GetDefault context.image)
let coreSet =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes }

context.Execute
[ coreSet ]
Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionSorobanInvokeHostLoad.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let sorobanInvokeHostLoad (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
emptyDirType = DiskBackedEmptyDir
updateSorobanCosts = Some(true) }
Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionSorobanLoadGeneration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let sorobanLoadGeneration (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
dumpDatabase = false }

Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionUpgradeTxClusters.fs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let upgradeTxClusters (context: MissionContext) =
MakeLiveCoreSet
"core"
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
invariantChecks = AllInvariantsExceptEvents
emptyDirType = DiskBackedEmptyDir
updateSorobanCosts = Some(true) }
Expand Down
1 change: 1 addition & 0 deletions src/FSLibrary/MissionValidatorSetup.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ open StellarCoreHTTP
let validatorSetup (context: MissionContext) =
let opts =
{ CoreSetOptions.GetDefault context.image with
nodeCount = context.numNodes
dbType = Postgres
// Use disk-backed storage like production validators
emptyDirType = DiskBackedEmptyDir
Expand Down
Loading