Skip to content

Commit

Permalink
flag (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding authored Oct 28, 2024
1 parent 4aef14d commit 806db47
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 12 deletions.
11 changes: 6 additions & 5 deletions indexer/backup_full_node_ap_northeast_1.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ module "backup_full_node_ap_northeast_1" {
IsIndexerFullNode = true
}

container_chain_home = var.full_node_container_chain_home
container_p2p_persistent_peers = join(",", var.full_node_container_p2p_persistent_peers)
container_kafka_conn_str = aws_msk_cluster.main.bootstrap_brokers
container_non_validating_full_node = true
full_node_send_off_chain_messages = false
container_chain_home = var.full_node_container_chain_home
container_p2p_persistent_peers = join(",", var.full_node_container_p2p_persistent_peers)
container_optimistic_execution_enabled = var.full_node_container_optimistic_execution_enabled
container_kafka_conn_str = aws_msk_cluster.main.bootstrap_brokers
container_non_validating_full_node = true
full_node_send_off_chain_messages = false

datadog_api_key = var.datadog_api_key
dd_site = var.dd_site
Expand Down
9 changes: 5 additions & 4 deletions indexer/full_node_ap_northeast_1.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ module "full_node_ap_northeast_1" {
IsIndexerFullNode = true
}

container_chain_home = var.full_node_container_chain_home
container_p2p_persistent_peers = join(",", var.full_node_container_p2p_persistent_peers)
container_kafka_conn_str = aws_msk_cluster.main.bootstrap_brokers
container_non_validating_full_node = true
container_chain_home = var.full_node_container_chain_home
container_p2p_persistent_peers = join(",", var.full_node_container_p2p_persistent_peers)
container_optimistic_execution_enabled = var.full_node_container_optimistic_execution_enabled
container_kafka_conn_str = aws_msk_cluster.main.bootstrap_brokers
container_non_validating_full_node = true

datadog_api_key = var.datadog_api_key
dd_site = var.dd_site
Expand Down
7 changes: 4 additions & 3 deletions indexer/snapshot_full_node_ap_northeast_1.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ module "full_node_snapshot_ap_northeast_1" {
IsIndexerFullNode = true
}

container_chain_home = var.snapshot_full_node_container_chain_home
container_p2p_persistent_peers = join(",", var.full_node_container_p2p_persistent_peers)
container_non_validating_full_node = true
container_chain_home = var.snapshot_full_node_container_chain_home
container_p2p_persistent_peers = join(",", var.full_node_container_p2p_persistent_peers)
container_optimistic_execution_enabled = var.full_node_container_optimistic_execution_enabled
container_non_validating_full_node = true

datadog_api_key = var.datadog_api_key
dd_site = var.dd_site
Expand Down
6 changes: 6 additions & 0 deletions indexer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ variable "full_node_container_p2p_persistent_peers" {
description = "Persistent peers of the full-node, comma-separated list of <node_key>@<ip address>"
}

variable "full_node_container_optimistic_execution_enabled" {
type = bool
description = "Whether --optimistic-execution-enabled set to true"
default = false
}

variable "full_node_ecr_repository_name" {
type = string
description = "ECR repo for full-node image"
Expand Down
1 change: 1 addition & 0 deletions modules/validator/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ resource "aws_ecs_task_definition" "main" {
"--indexer-send-offchain-data=${tostring(var.full_node_send_off_chain_messages)}",
] : [],
"--p2p.persistent_peers", var.container_p2p_persistent_peers,
"--optimistic-execution-enabled=${tostring(var.container_optimistic_execution_enabled)}",
"--p2p.seed_mode=${tostring(var.container_seed_mode)}",
# Reference https://github.com/tendermint/tendermint/issues/9480 for why it's a dash and not
# an underscore.
Expand Down
5 changes: 5 additions & 0 deletions modules/validator/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ variable "container_p2p_persistent_peers" {
description = "List of persistent peers that validator node should connect to; comma-separated."
}

variable "container_optimistic_execution_enabled" {
type = bool
description = "Whether --optimistic-execution-enabled set to true for this node."
}

variable "container_kafka_conn_str" {
type = string
description = "Kafka connection string used by the node to send messages to the Indexer. This value should only be set for nodes connected to an Indexer."
Expand Down

0 comments on commit 806db47

Please sign in to comment.