From aa2acfe7efcf51a080ae89b4fb4283d6b6ccaabf Mon Sep 17 00:00:00 2001 From: Sherry Xiao Date: Wed, 4 May 2022 10:11:56 -0700 Subject: [PATCH] [helm] add config to control ssv2 Closes: #797 --- terraform/helm/fullnode/files/fullnode.yaml | 4 ++++ terraform/helm/fullnode/values.yaml | 1 + terraform/helm/validator/files/configs/fullnode.yaml | 4 ++++ terraform/helm/validator/files/configs/validator.yaml | 4 ++++ terraform/helm/validator/values.yaml | 1 + 5 files changed, 14 insertions(+) diff --git a/terraform/helm/fullnode/files/fullnode.yaml b/terraform/helm/fullnode/files/fullnode.yaml index 4772a2584d8a5..cab509579a18e 100644 --- a/terraform/helm/fullnode/files/fullnode.yaml +++ b/terraform/helm/fullnode/files/fullnode.yaml @@ -6,6 +6,10 @@ base: execution: genesis_file_location: "/opt/aptos/genesis/genesis.blob" +state_sync: + state_sync_driver: + enable_state_sync_v2: {{ .Values.enable_state_sync_v2 }} + full_node_networks: - network_id: "public" discovery_method: "onchain" diff --git a/terraform/helm/fullnode/values.yaml b/terraform/helm/fullnode/values.yaml index 65e9b0c4a6347..6ec1e232a4061 100644 --- a/terraform/helm/fullnode/values.yaml +++ b/terraform/helm/fullnode/values.yaml @@ -13,6 +13,7 @@ fullnode_identity: # If not set, it will generate a random one on startup. fullnode_max_inbound_connections: 1000 +enable_state_sync_v2: true rust_log: info diff --git a/terraform/helm/validator/files/configs/fullnode.yaml b/terraform/helm/validator/files/configs/fullnode.yaml index 2bbde02724715..6400891a8110f 100644 --- a/terraform/helm/validator/files/configs/fullnode.yaml +++ b/terraform/helm/validator/files/configs/fullnode.yaml @@ -18,6 +18,10 @@ execution: genesis_file_location: "" {{- end}} +state_sync: + state_sync_driver: + enable_state_sync_v2: {{ .Values.validator.config.enable_state_sync_v2 }} + storage: backup_service_address: "0.0.0.0:6186" diff --git a/terraform/helm/validator/files/configs/validator.yaml b/terraform/helm/validator/files/configs/validator.yaml index bed875cc79d66..43dc6845a83a6 100644 --- a/terraform/helm/validator/files/configs/validator.yaml +++ b/terraform/helm/validator/files/configs/validator.yaml @@ -31,6 +31,10 @@ consensus: round_initial_timeout_ms: {{ .Values.validator.config.round_initial_timeout_ms }} {{- end }} +state_sync: + state_sync_driver: + enable_state_sync_v2: {{ .Values.validator.config.enable_state_sync_v2 }} + storage: storage_pruner_config: ledger_prune_window: {{ int .Values.validator.config.ledger_prune_window }} diff --git a/terraform/helm/validator/values.yaml b/terraform/helm/validator/values.yaml index 99efb8c8f75ad..f18db20016889 100644 --- a/terraform/helm/validator/values.yaml +++ b/terraform/helm/validator/values.yaml @@ -27,6 +27,7 @@ validator: tolerations: [] affinity: {} config: + enable_state_sync_v2: false provide_genesis: true sync_only: false concurrency_level: 4