diff --git a/charts/celestia-node/Chart.yaml b/charts/celestia-node/Chart.yaml index 451b15f..5286ade 100644 --- a/charts/celestia-node/Chart.yaml +++ b/charts/celestia-node/Chart.yaml @@ -5,7 +5,7 @@ apiVersion: v2 appVersion: v0.21.2 dependencies: - name: common-celestia-node - version: 0.1.1 + version: 0.1.2 repository: https://celestiaorg.github.io/helm-charts - name: common repository: oci://registry-1.docker.io/bitnamicharts @@ -24,4 +24,4 @@ maintainers: name: celestia-node sources: - https://github.com/celestiaorg/helm-charts -version: 0.11.1 +version: 0.11.2 diff --git a/charts/celestia-node/values.yaml b/charts/celestia-node/values.yaml index 35d599a..a1822f6 100644 --- a/charts/celestia-node/values.yaml +++ b/charts/celestia-node/values.yaml @@ -171,8 +171,9 @@ node: ShutdownTimeout: 2m0s Core: IP: "" - RPCPort: "26657" - GRPCPort: "9090" + Port: "9090" + TLSEnabled: false + XTokenPath: "" State: DefaultKeyName: my_celes_key DefaultBackendName: test diff --git a/common-charts/common-celestia-node/Chart.yaml b/common-charts/common-celestia-node/Chart.yaml index c488fa1..b25b88f 100644 --- a/common-charts/common-celestia-node/Chart.yaml +++ b/common-charts/common-celestia-node/Chart.yaml @@ -15,8 +15,8 @@ type: library # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.1 +version: 0.1.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application and it is recommended to use it with quotes. -appVersion: "0.18.3" \ No newline at end of file +appVersion: "0.21.2" diff --git a/common-charts/common-celestia-node/templates/_bridge_config.toml.tpl b/common-charts/common-celestia-node/templates/_bridge_config.toml.tpl index ce9f3d9..78678fd 100644 --- a/common-charts/common-celestia-node/templates/_bridge_config.toml.tpl +++ b/common-charts/common-celestia-node/templates/_bridge_config.toml.tpl @@ -4,8 +4,9 @@ ShutdownTimeout = "{{ .Values.node.config.bridge.configtoml.Node.ShutdownTimeout }}" [Core] IP = "{{ .Values.node.config.bridge.configtoml.Core.IP }}" - RPCPort = "{{ .Values.node.config.bridge.configtoml.Core.RPCPort }}" - GRPCPort = "{{ .Values.node.config.bridge.configtoml.Core.GRPCPort }}" + Port = "{{ .Values.node.config.bridge.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.bridge.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.bridge.configtoml.Core.XTokenPath }}" [State] DefaultKeyName = "{{ .Values.node.config.bridge.configtoml.State.DefaultKeyName }}" DefaultBackendName = "{{ .Values.node.config.bridge.configtoml.State.DefaultBackendName }}" diff --git a/scripts/Makefile b/scripts/Makefile index 33c2d8d..a19b525 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -15,55 +15,36 @@ UPLOAD_KEYS_SCRIPT := $(SCRIPTS_DIR)/create_new_key_upload_1pass.sh # Function to strip suffix from version strip_suffix = $(shell echo $(1) | sed 's/-.*//') -# Prompt for celestia-app version if not set -prompt_app_version: -ifndef CELESTIA_APP_VERSION - @read -p "Enter celestia-app version [$(DEFAULT_CELESTIA_APP_VERSION)]: " input; \ - if [ -z "$$input" ]; then \ - CELESTIA_APP_VERSION=$(DEFAULT_CELESTIA_APP_VERSION); \ - else \ - CELESTIA_APP_VERSION=$$input; \ - fi; \ - export CELESTIA_APP_VERSION; \ - $(MAKE) $(MAKECMDGOALS) CELESTIA_APP_VERSION=$$CELESTIA_APP_VERSION; \ - exit 0; -endif - -# Prompt for celestia-node version if not set -prompt_node_version: -ifndef CELESTIA_NODE_VERSION - @read -p "Enter celestia-node version [$(DEFAULT_CELESTIA_NODE_VERSION)]: " input; \ - if [ -z "$$input" ]; then \ - CELESTIA_NODE_VERSION=$(DEFAULT_CELESTIA_NODE_VERSION); \ - else \ - CELESTIA_NODE_VERSION=$$input; \ - fi; \ - export CELESTIA_NODE_VERSION; \ - $(MAKE) $(MAKECMDGOALS) CELESTIA_NODE_VERSION=$$CELESTIA_NODE_VERSION; \ - exit 0; -endif +# Check if version is specified +check_version = $(if $(1),,$(error Version not specified. Please provide $(2) as a environment variable.)) # Extract config files for celestia-app .PHONY: extract-app -extract-app: prompt_app_version +extract-app: + $(call check_version,$(CELESTIA_APP_VERSION),CELESTIA_APP_VERSION) @echo "Extracting config files for celestia-app version $(CELESTIA_APP_VERSION)" ./$(EXTRACT_CONFIGS_APP_SCRIPT) $(CELESTIA_APP_VERSION) # Extract config files for celestia-node .PHONY: extract-node -extract-node: prompt_node_version +extract-node: + $(call check_version,$(CELESTIA_NODE_VERSION),CELESTIA_NODE_VERSION) @echo "Extracting config files for celestia-node version $(CELESTIA_NODE_VERSION)" ./$(EXTRACT_CONFIGS_NODE_SCRIPT) $(CELESTIA_NODE_VERSION) # Convert TOML to templated TOML for celestia-app .PHONY: toml-app -toml-app: prompt_app_version +toml-app: + $(call check_version,$(CELESTIA_APP_VERSION),CELESTIA_APP_VERSION) @echo "Converting TOML to templated HELM for celestia-app version $(CELESTIA_APP_VERSION)" + ./$(CONVERT_TOML_TO_TEMPLATE_SCRIPT) $(CONFIG_DIR)/app/$(CELESTIA_APP_VERSION)/app.toml app; \ + ./$(CONVERT_TOML_TO_TEMPLATE_SCRIPT) $(CONFIG_DIR)/app/$(CELESTIA_APP_VERSION)/client.toml app; \ ./$(CONVERT_TOML_TO_TEMPLATE_SCRIPT) $(CONFIG_DIR)/app/$(CELESTIA_APP_VERSION)/config.toml app # Convert TOML to templated TOML for celestia-node .PHONY: toml-node -toml-node: prompt_node_version +toml-node: + $(call check_version,$(CELESTIA_NODE_VERSION),CELESTIA_NODE_VERSION) @echo "Converting TOML to templated HELM for celestia-node version $(CELESTIA_NODE_VERSION)" ./$(CONVERT_TOML_TO_TEMPLATE_SCRIPT) $(CONFIG_DIR)/node/bridge/$(CELESTIA_NODE_VERSION)/config.toml node bridge; \ ./$(CONVERT_TOML_TO_TEMPLATE_SCRIPT) $(CONFIG_DIR)/node/full/$(CELESTIA_NODE_VERSION)/config.toml node full; \ @@ -71,13 +52,17 @@ toml-node: prompt_node_version # Convert TOML to YAML for celestia-app .PHONY: yaml-app -yaml-app: prompt_app_version +yaml-app: + $(call check_version,$(CELESTIA_APP_VERSION),CELESTIA_APP_VERSION) @echo "Converting TOML to YAML for celestia-app version $(CELESTIA_APP_VERSION)" + ./$(CONVERT_TOML_TO_YAML_SCRIPT) $(CONFIG_DIR)/app/$(CELESTIA_APP_VERSION)/app.toml; \ + ./$(CONVERT_TOML_TO_YAML_SCRIPT) $(CONFIG_DIR)/app/$(CELESTIA_APP_VERSION)/client.toml; \ ./$(CONVERT_TOML_TO_YAML_SCRIPT) $(CONFIG_DIR)/app/$(CELESTIA_APP_VERSION)/config.toml # Convert TOML to YAML for celestia-node .PHONY: yaml-node -yaml-node: prompt_node_version +yaml-node: + $(call check_version,$(CELESTIA_NODE_VERSION),CELESTIA_NODE_VERSION) @echo "Converting TOML to YAML for celestia-node version $(CELESTIA_NODE_VERSION)" ./$(CONVERT_TOML_TO_YAML_SCRIPT) $(CONFIG_DIR)/node/bridge/$(CELESTIA_NODE_VERSION)/config.toml; \ ./$(CONVERT_TOML_TO_YAML_SCRIPT) $(CONFIG_DIR)/node/full/$(CELESTIA_NODE_VERSION)/config.toml; \ @@ -91,13 +76,14 @@ generate-docs: # Upload keys to 1Password .PHONY: upload-keys -upload-keys: prompt_node_version +upload-keys: + $(call check_version,$(CELESTIA_NODE_VERSION),CELESTIA_NODE_VERSION) @echo "Uploading keys to 1Password for celestia-node version $(CELESTIA_NODE_VERSION)" ./$(UPLOAD_KEYS_SCRIPT) $(CELESTIA_NODE_VERSION) secret-name vault-name chain # Group targets for celestia-app .PHONY: app -app: extract-app +app: extract-app yaml-app toml-app # Group targets for celestia-node .PHONY: node @@ -111,15 +97,15 @@ all: app node .PHONY: help help: @echo "Usage:" - @echo " make extract-app Extract config files for celestia-app" - @echo " make toml-app Convert TOML to templated HELM for celestia-app" - @echo " make yaml-app Convert TOML to YAML for celestia-app" - @echo " make extract-node Extract config files for celestia-node" - @echo " make toml-node Convert TOML to templated HELM for celestia-node" - @echo " make yaml-node Convert TOML to YAML for celestia-node" - @echo " make generate-docs Generate documentation for Helm charts" - @echo " make upload-keys Upload keys to 1Password for celestia-node" - @echo " make app Run all tasks for celestia-app" - @echo " make node Run all tasks for celestia-node" - @echo " make all Run all tasks for both celestia-app and celestia-node" - @echo " make help Display this help message" + @echo " make extract-app CELESTIA_APP_VERSION= Extract config files for celestia-app" + @echo " make toml-app CELESTIA_APP_VERSION= Convert TOML to templated HELM for celestia-app" + @echo " make yaml-app CELESTIA_APP_VERSION= Convert TOML to YAML for celestia-app" + @echo " make extract-node CELESTIA_NODE_VERSION= Extract config files for celestia-node" + @echo " make toml-node CELESTIA_NODE_VERSION= Convert TOML to templated HELM for celestia-node" + @echo " make yaml-node CELESTIA_NODE_VERSION= Convert TOML to YAML for celestia-node" + @echo " make generate-docs Generate documentation for Helm charts" + @echo " make upload-keys CELESTIA_NODE_VERSION= Upload keys to 1Password for celestia-node" + @echo " make app CELESTIA_APP_VERSION= Run all tasks for celestia-app" + @echo " make node CELESTIA_NODE_VERSION= Run all tasks for celestia-node" + @echo " make all CELESTIA_APP_VERSION= CELESTIA_NODE_VERSION= Run all tasks for both celestia-app and celestia-node" + @echo " make help Display this help message" diff --git a/scripts/config/app/v3.3.0-arabica/app.yaml b/scripts/config/app/v3.3.0-arabica/app.yaml new file mode 100644 index 0000000..642e789 --- /dev/null +++ b/scripts/config/app/v3.3.0-arabica/app.yaml @@ -0,0 +1,63 @@ +minimum_gas_prices: 0.002utia +pruning: default +pruning_keep_recent: "0" +pruning_interval: "0" +halt_height: 0 +halt_time: 0 +min_retain_blocks: 0 +inter_block_cache: true +index_events: [] +iavl_cache_size: 781250 +iavl_disable_fastnode: false +iavl_lazy_loading: false +app_db_backend: "" +telemetry: + service_name: "" + enabled: false + enable_hostname: false + enable_hostname_label: false + enable_service_label: false + prometheus_retention_time: 0 + global_labels: [] +api: + enable: false + swagger: false + address: tcp://0.0.0.0:1317 + max_open_connections: 1000 + rpc_read_timeout: 10 + rpc_write_timeout: 0 + rpc_max_body_bytes: 1000000 + enabled_unsafe_cors: false +rosetta: + enable: false + address: :8080 + blockchain: app + network: network + retries: 3 + offline: false + enable_fee_suggestion: false + gas_to_suggest: 210000 + denom_to_suggest: uatom +grpc: + enable: false + address: 0.0.0.0:9090 + max_recv_msg_size: "20971520" + max_send_msg_size: "2147483647" +grpc_web: + enable: false + address: 0.0.0.0:9091 + enable_unsafe_cors: false +state_sync: + snapshot_interval: 1500 + snapshot_keep_recent: 2 +store: + streamers: [] +streamers: + file: + keys: + - '*' + write_dir: "" + prefix: "" + output_metadata: "true" + stop_node_on_error: "true" + fsync: "false" diff --git a/scripts/config/app/v3.3.0-arabica/client.yaml b/scripts/config/app/v3.3.0-arabica/client.yaml new file mode 100644 index 0000000..7540c6e --- /dev/null +++ b/scripts/config/app/v3.3.0-arabica/client.yaml @@ -0,0 +1,5 @@ +chain_id: celestia +keyring_backend: test +output: text +node: tcp://localhost:26657 +broadcast_mode: sync diff --git a/scripts/config/app/v3.3.0-arabica/config.yaml b/scripts/config/app/v3.3.0-arabica/config.yaml new file mode 100644 index 0000000..0f82041 --- /dev/null +++ b/scripts/config/app/v3.3.0-arabica/config.yaml @@ -0,0 +1,134 @@ +proxy_app: tcp://127.0.0.1:26658 +moniker: app +fast_sync: true +db_backend: goleveldb +db_dir: data +log_level: info +log_format: plain +genesis_file: config/genesis.json +priv_validator_key_file: config/priv_validator_key.json +priv_validator_state_file: data/priv_validator_state.json +priv_validator_laddr: "" +node_key_file: config/node_key.json +abci: socket +filter_peers: false +rpc: + laddr: tcp://127.0.0.1:26657 + cors_allowed_origins: [] + cors_allowed_methods: + - HEAD + - GET + - POST + cors_allowed_headers: + - Origin + - Accept + - Content-Type + - X-Requested-With + - X-Server-Time + grpc_laddr: "" + grpc_max_open_connections: 900 + unsafe: false + max_open_connections: 900 + max_subscription_clients: 100 + max_subscriptions_per_client: 5 + experimental_subscription_buffer_size: 200 + experimental_websocket_write_buffer_size: 200 + experimental_close_on_slow_client: false + timeout_broadcast_tx_commit: 50s + max_body_bytes: 8388608 + max_header_bytes: 1048576 + tls_cert_file: "" + tls_key_file: "" + pprof_laddr: localhost:6060 +p2p: + laddr: tcp://0.0.0.0:26656 + external_address: "" + seeds: "" + persistent_peers: "" + upnp: false + addr_book_file: config/addrbook.json + addr_book_strict: true + max_num_inbound_peers: 40 + max_num_outbound_peers: 10 + unconditional_peer_ids: "" + persistent_peers_max_dial_period: 0s + flush_throttle_timeout: 100ms + max_packet_msg_payload_size: 1024 + send_rate: 10485760 + recv_rate: 10485760 + pex: true + seed_mode: false + private_peer_ids: "" + allow_duplicate_ip: false + handshake_timeout: 20s + dial_timeout: 3s +mempool: + version: v1 + recheck: true + broadcast: true + wal_dir: "" + size: 5000 + max_txs_bytes: 39485440 + cache_size: 10000 + keep_invalid_txs_in_cache: false + max_tx_bytes: 7897088 + max_batch_bytes: 0 + ttl_duration: 1m15s + ttl_num_blocks: 12 + max_gossip_delay: 0s + experimental_max_gossip_connections_to_persistent_peers: 0 + experimental_max_gossip_connections_to_non_persistent_peers: 0 +statesync: + enable: false + rpc_servers: "" + trust_height: 0 + trust_hash: "" + trust_period: 168h0m0s + discovery_time: 15s + temp_dir: "" + chunk_request_timeout: 10s + chunk_fetchers: "4" +fastsync: + version: v0 +consensus: + only_internal_wal: "true" + wal_file: data/cs.wal/wal + timeout_propose: 3.5s + timeout_propose_delta: 500ms + timeout_prevote: 1s + timeout_prevote_delta: 500ms + timeout_precommit: 1s + timeout_precommit_delta: 500ms + timeout_commit: 4.2s + double_sign_check_height: 0 + skip_timeout_commit: false + create_empty_blocks: true + create_empty_blocks_interval: 0s + peer_gossip_sleep_duration: 100ms + peer_query_maj23_sleep_duration: 2s +storage: + discard_abci_responses: true +tx_index: + indexer: "null" + psql_conn: "" +instrumentation: + prometheus: false + prometheus_listen_addr: :26660 + max_open_connections: 3 + namespace: cometbft + trace_push_config: "" + trace_pull_address: "" + trace_type: noop + trace_push_batch_size: 1000 + tracing_tables: mempool_tx,mempool_peer_state,consensus_round_state,consensus_block_parts,consensus_block,consensus_vote,consensus_state,consensus_proposal,peers,pending_bytes,received_bytes,abci + pyroscope_url: "" + pyroscope_trace: false + pyroscope_profile_types: + - cpu + - alloc_objects + - inuse_objects + - goroutines + - mutex_count + - mutex_duration + - block_count + - block_duration diff --git a/scripts/config/app/v3.3.0-arabica/template-app.yaml b/scripts/config/app/v3.3.0-arabica/template-app.yaml new file mode 100644 index 0000000..4bd0522 --- /dev/null +++ b/scripts/config/app/v3.3.0-arabica/template-app.yaml @@ -0,0 +1,63 @@ +minimum-gas-prices = "{{ .Values.app.config.app.minimum_gas_prices }}" +pruning = "{{ .Values.app.config.app.pruning }}" +pruning-keep-recent = "{{ .Values.app.config.app.pruning_keep_recent }}" +pruning-interval = "{{ .Values.app.config.app.pruning_interval }}" +halt-height = {{ printf "%.0f" .Values.app.config.app.halt_height }} +halt-time = {{ printf "%.0f" .Values.app.config.app.halt_time }} +min-retain-blocks = {{ printf "%.0f" .Values.app.config.app.min_retain_blocks }} +inter-block-cache = {{ .Values.app.config.app.inter_block_cache }} +index-events = {{ .Values.app.config.app.index_events }} +iavl-cache-size = {{ printf "%.0f" .Values.app.config.app.iavl_cache_size }} +iavl-disable-fastnode = {{ .Values.app.config.app.iavl_disable_fastnode }} +iavl-lazy-loading = {{ .Values.app.config.app.iavl_lazy_loading }} +app-db-backend = "{{ .Values.app.config.app.app_db_backend }}" +[telemetry] +service-name = "{{ .Values.app.config.app.telemetry.service_name }}" +enabled = {{ .Values.app.config.app.telemetry.enabled }} +enable-hostname = {{ .Values.app.config.app.telemetry.enable_hostname }} +enable-hostname-label = {{ .Values.app.config.app.telemetry.enable_hostname_label }} +enable-service-label = {{ .Values.app.config.app.telemetry.enable_service_label }} +prometheus-retention-time = {{ printf "%.0f" .Values.app.config.app.telemetry.prometheus_retention_time }} +global-labels = {{ .Values.app.config.app.telemetry.global_labels }} +[api] +enable = {{ .Values.app.config.app.api.enable }} +swagger = {{ .Values.app.config.app.api.swagger }} +address = "{{ .Values.app.config.app.api.address }}" +max-open-connections = {{ printf "%.0f" .Values.app.config.app.api.max_open_connections }} +rpc-read-timeout = {{ printf "%.0f" .Values.app.config.app.api.rpc_read_timeout }} +rpc-write-timeout = {{ printf "%.0f" .Values.app.config.app.api.rpc_write_timeout }} +rpc-max-body-bytes = {{ printf "%.0f" .Values.app.config.app.api.rpc_max_body_bytes }} +enabled-unsafe-cors = {{ .Values.app.config.app.api.enabled_unsafe_cors }} +[rosetta] +enable = {{ .Values.app.config.app.rosetta.enable }} +address = "{{ .Values.app.config.app.rosetta.address }}" +blockchain = "{{ .Values.app.config.app.rosetta.blockchain }}" +network = "{{ .Values.app.config.app.rosetta.network }}" +retries = {{ printf "%.0f" .Values.app.config.app.rosetta.retries }} +offline = {{ .Values.app.config.app.rosetta.offline }} +enable-fee-suggestion = {{ .Values.app.config.app.rosetta.enable_fee_suggestion }} +gas-to-suggest = {{ printf "%.0f" .Values.app.config.app.rosetta.gas_to_suggest }} +denom-to-suggest = "{{ .Values.app.config.app.rosetta.denom_to_suggest }}" +[grpc] +enable = {{ .Values.app.config.app.grpc.enable }} +address = "{{ .Values.app.config.app.grpc.address }}" +max-recv-msg-size = "{{ .Values.app.config.app.grpc.max_recv_msg_size }}" +max-send-msg-size = "{{ .Values.app.config.app.grpc.max_send_msg_size }}" +[grpc_web] +enable = {{ .Values.app.config.app.grpc_web.enable }} +address = "{{ .Values.app.config.app.grpc_web.address }}" +enable-unsafe-cors = {{ .Values.app.config.app.grpc_web.enable_unsafe_cors }} +[state_sync] +snapshot-interval = {{ printf "%.0f" .Values.app.config.app.state_sync.snapshot_interval }} +snapshot-keep-recent = {{ printf "%.0f" .Values.app.config.app.state_sync.snapshot_keep_recent }} +[store] +streamers = {{ .Values.app.config.app.store.streamers }} +[streamers] +[streamers.file] +keys = [{{ range $index, $element := .Values.app.config.app.streamers.file.keys }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] +write_dir = "{{ .Values.app.config.app.streamers.file.write_dir }}" +prefix = "{{ .Values.app.config.app.streamers.file.prefix }}" +output-metadata = "{{ .Values.app.config.app.streamers.file.output_metadata }}" +stop-node-on-error = "{{ .Values.app.config.app.streamers.file.stop_node_on_error }}" +fsync = "{{ .Values.app.config.app.streamers.file.fsync }}" + diff --git a/scripts/config/app/v3.3.0-arabica/template-client.yaml b/scripts/config/app/v3.3.0-arabica/template-client.yaml new file mode 100644 index 0000000..c1d8d92 --- /dev/null +++ b/scripts/config/app/v3.3.0-arabica/template-client.yaml @@ -0,0 +1,6 @@ +chain-id = "{{ .Values.app.config.client.chain_id }}" +keyring-backend = "{{ .Values.app.config.client.keyring_backend }}" +output = "{{ .Values.app.config.client.output }}" +node = "{{ .Values.app.config.client.node }}" +broadcast-mode = "{{ .Values.app.config.client.broadcast_mode }}" + diff --git a/scripts/config/app/v3.3.0-arabica/template-config.yaml b/scripts/config/app/v3.3.0-arabica/template-config.yaml new file mode 100644 index 0000000..9bc4e1c --- /dev/null +++ b/scripts/config/app/v3.3.0-arabica/template-config.yaml @@ -0,0 +1,119 @@ +proxy_app = "{{ .Values.app.config.config.proxy_app }}" +moniker = "{{ .Values.app.config.config.moniker }}" +fast_sync = {{ .Values.app.config.config.fast_sync }} +db_backend = "{{ .Values.app.config.config.db_backend }}" +db_dir = "{{ .Values.app.config.config.db_dir }}" +log_level = "{{ .Values.app.config.config.log_level }}" +log_format = "{{ .Values.app.config.config.log_format }}" +genesis_file = "{{ .Values.app.config.config.genesis_file }}" +priv_validator_key_file = "{{ .Values.app.config.config.priv_validator_key_file }}" +priv_validator_state_file = "{{ .Values.app.config.config.priv_validator_state_file }}" +priv_validator_laddr = "{{ .Values.app.config.config.priv_validator_laddr }}" +node_key_file = "{{ .Values.app.config.config.node_key_file }}" +abci = "{{ .Values.app.config.config.abci }}" +filter_peers = {{ .Values.app.config.config.filter_peers }} +[rpc] +laddr = "{{ .Values.app.config.config.rpc.laddr }}" +cors_allowed_origins = {{ .Values.app.config.config.rpc.cors_allowed_origins }} +cors_allowed_methods = [{{ range $index, $element := .Values.app.config.config.rpc.cors_allowed_methods }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] +cors_allowed_headers = [{{ range $index, $element := .Values.app.config.config.rpc.cors_allowed_headers }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] +grpc_laddr = "{{ .Values.app.config.config.rpc.grpc_laddr }}" +grpc_max_open_connections = {{ printf "%.0f" .Values.app.config.config.rpc.grpc_max_open_connections }} +unsafe = {{ .Values.app.config.config.rpc.unsafe }} +max_open_connections = {{ printf "%.0f" .Values.app.config.config.rpc.max_open_connections }} +max_subscription_clients = {{ printf "%.0f" .Values.app.config.config.rpc.max_subscription_clients }} +max_subscriptions_per_client = {{ printf "%.0f" .Values.app.config.config.rpc.max_subscriptions_per_client }} +experimental_subscription_buffer_size = {{ printf "%.0f" .Values.app.config.config.rpc.experimental_subscription_buffer_size }} +experimental_websocket_write_buffer_size = {{ printf "%.0f" .Values.app.config.config.rpc.experimental_websocket_write_buffer_size }} +experimental_close_on_slow_client = {{ .Values.app.config.config.rpc.experimental_close_on_slow_client }} +timeout_broadcast_tx_commit = "{{ .Values.app.config.config.rpc.timeout_broadcast_tx_commit }}" +max_body_bytes = {{ printf "%.0f" .Values.app.config.config.rpc.max_body_bytes }} +max_header_bytes = {{ printf "%.0f" .Values.app.config.config.rpc.max_header_bytes }} +tls_cert_file = "{{ .Values.app.config.config.rpc.tls_cert_file }}" +tls_key_file = "{{ .Values.app.config.config.rpc.tls_key_file }}" +pprof_laddr = "{{ .Values.app.config.config.rpc.pprof_laddr }}" +[p2p] +laddr = "{{ .Values.app.config.config.p2p.laddr }}" +external_address = "{{ .Values.app.config.config.p2p.external_address }}" +seeds = "{{ .Values.app.config.config.p2p.seeds }}" +persistent_peers = "{{ .Values.app.config.config.p2p.persistent_peers }}" +upnp = {{ .Values.app.config.config.p2p.upnp }} +addr_book_file = "{{ .Values.app.config.config.p2p.addr_book_file }}" +addr_book_strict = {{ .Values.app.config.config.p2p.addr_book_strict }} +max_num_inbound_peers = {{ printf "%.0f" .Values.app.config.config.p2p.max_num_inbound_peers }} +max_num_outbound_peers = {{ printf "%.0f" .Values.app.config.config.p2p.max_num_outbound_peers }} +unconditional_peer_ids = "{{ .Values.app.config.config.p2p.unconditional_peer_ids }}" +persistent_peers_max_dial_period = "{{ .Values.app.config.config.p2p.persistent_peers_max_dial_period }}" +flush_throttle_timeout = "{{ .Values.app.config.config.p2p.flush_throttle_timeout }}" +max_packet_msg_payload_size = {{ printf "%.0f" .Values.app.config.config.p2p.max_packet_msg_payload_size }} +send_rate = {{ printf "%.0f" .Values.app.config.config.p2p.send_rate }} +recv_rate = {{ printf "%.0f" .Values.app.config.config.p2p.recv_rate }} +pex = {{ .Values.app.config.config.p2p.pex }} +seed_mode = {{ .Values.app.config.config.p2p.seed_mode }} +private_peer_ids = "{{ .Values.app.config.config.p2p.private_peer_ids }}" +allow_duplicate_ip = {{ .Values.app.config.config.p2p.allow_duplicate_ip }} +handshake_timeout = "{{ .Values.app.config.config.p2p.handshake_timeout }}" +dial_timeout = "{{ .Values.app.config.config.p2p.dial_timeout }}" +[mempool] +version = "{{ .Values.app.config.config.mempool.version }}" +recheck = {{ .Values.app.config.config.mempool.recheck }} +broadcast = {{ .Values.app.config.config.mempool.broadcast }} +wal_dir = "{{ .Values.app.config.config.mempool.wal_dir }}" +size = {{ printf "%.0f" .Values.app.config.config.mempool.size }} +max_txs_bytes = {{ printf "%.0f" .Values.app.config.config.mempool.max_txs_bytes }} +cache_size = {{ printf "%.0f" .Values.app.config.config.mempool.cache_size }} +keep-invalid-txs-in-cache = {{ .Values.app.config.config.mempool.keep_invalid_txs_in_cache }} +max_tx_bytes = {{ printf "%.0f" .Values.app.config.config.mempool.max_tx_bytes }} +max_batch_bytes = {{ printf "%.0f" .Values.app.config.config.mempool.max_batch_bytes }} +ttl-duration = "{{ .Values.app.config.config.mempool.ttl_duration }}" +ttl-num-blocks = {{ printf "%.0f" .Values.app.config.config.mempool.ttl_num_blocks }} +max-gossip-delay = "{{ .Values.app.config.config.mempool.max_gossip_delay }}" +experimental_max_gossip_connections_to_persistent_peers = {{ printf "%.0f" .Values.app.config.config.mempool.experimental_max_gossip_connections_to_persistent_peers }} +experimental_max_gossip_connections_to_non_persistent_peers = {{ printf "%.0f" .Values.app.config.config.mempool.experimental_max_gossip_connections_to_non_persistent_peers }} +[statesync] +enable = {{ .Values.app.config.config.statesync.enable }} +rpc_servers = "{{ .Values.app.config.config.statesync.rpc_servers }}" +trust_height = {{ printf "%.0f" .Values.app.config.config.statesync.trust_height }} +trust_hash = "{{ .Values.app.config.config.statesync.trust_hash }}" +trust_period = "{{ .Values.app.config.config.statesync.trust_period }}" +discovery_time = "{{ .Values.app.config.config.statesync.discovery_time }}" +temp_dir = "{{ .Values.app.config.config.statesync.temp_dir }}" +chunk_request_timeout = "{{ .Values.app.config.config.statesync.chunk_request_timeout }}" +chunk_fetchers = "{{ .Values.app.config.config.statesync.chunk_fetchers }}" +[fastsync] +version = "{{ .Values.app.config.config.fastsync.version }}" +[consensus] +only_internal_wal = "{{ .Values.app.config.config.consensus.only_internal_wal }}" +wal_file = "{{ .Values.app.config.config.consensus.wal_file }}" +timeout_propose = "{{ .Values.app.config.config.consensus.timeout_propose }}" +timeout_propose_delta = "{{ .Values.app.config.config.consensus.timeout_propose_delta }}" +timeout_prevote = "{{ .Values.app.config.config.consensus.timeout_prevote }}" +timeout_prevote_delta = "{{ .Values.app.config.config.consensus.timeout_prevote_delta }}" +timeout_precommit = "{{ .Values.app.config.config.consensus.timeout_precommit }}" +timeout_precommit_delta = "{{ .Values.app.config.config.consensus.timeout_precommit_delta }}" +timeout_commit = "{{ .Values.app.config.config.consensus.timeout_commit }}" +double_sign_check_height = {{ printf "%.0f" .Values.app.config.config.consensus.double_sign_check_height }} +skip_timeout_commit = {{ .Values.app.config.config.consensus.skip_timeout_commit }} +create_empty_blocks = {{ .Values.app.config.config.consensus.create_empty_blocks }} +create_empty_blocks_interval = "{{ .Values.app.config.config.consensus.create_empty_blocks_interval }}" +peer_gossip_sleep_duration = "{{ .Values.app.config.config.consensus.peer_gossip_sleep_duration }}" +peer_query_maj23_sleep_duration = "{{ .Values.app.config.config.consensus.peer_query_maj23_sleep_duration }}" +[storage] +discard_abci_responses = {{ .Values.app.config.config.storage.discard_abci_responses }} +[tx_index] +indexer = "{{ .Values.app.config.config.tx_index.indexer }}" +psql-conn = "{{ .Values.app.config.config.tx_index.psql_conn }}" +[instrumentation] +prometheus = {{ .Values.app.config.config.instrumentation.prometheus }} +prometheus_listen_addr = "{{ .Values.app.config.config.instrumentation.prometheus_listen_addr }}" +max_open_connections = {{ printf "%.0f" .Values.app.config.config.instrumentation.max_open_connections }} +namespace = "{{ .Values.app.config.config.instrumentation.namespace }}" +trace_push_config = "{{ .Values.app.config.config.instrumentation.trace_push_config }}" +trace_pull_address = "{{ .Values.app.config.config.instrumentation.trace_pull_address }}" +trace_type = "{{ .Values.app.config.config.instrumentation.trace_type }}" +trace_push_batch_size = {{ printf "%.0f" .Values.app.config.config.instrumentation.trace_push_batch_size }} +tracing_tables = "{{ .Values.app.config.config.instrumentation.tracing_tables }}" +pyroscope_url = "{{ .Values.app.config.config.instrumentation.pyroscope_url }}" +pyroscope_trace = {{ .Values.app.config.config.instrumentation.pyroscope_trace }} +pyroscope_profile_types = [{{ range $index, $element := .Values.app.config.config.instrumentation.pyroscope_profile_types }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + diff --git a/scripts/config/node/bridge/v0.21.2-arabica/config.yaml b/scripts/config/node/bridge/v0.21.2-arabica/config.yaml new file mode 100644 index 0000000..318c6f8 --- /dev/null +++ b/scripts/config/node/bridge/v0.21.2-arabica/config.yaml @@ -0,0 +1,91 @@ +Node: + StartupTimeout: 2m0s + ShutdownTimeout: 2m0s +Core: + IP: "" + Port: "9090" + TLSEnabled: false + XTokenPath: "" +State: + DefaultKeyName: my_celes_key + DefaultBackendName: test +P2P: + ListenAddresses: + - /ip4/0.0.0.0/udp/2121/quic-v1/webtransport + - /ip6/::/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1 + - /ip6/::/udp/2121/quic-v1 + - /ip4/0.0.0.0/udp/2121/webrtc-direct + - /ip6/::/udp/2121/webrtc-direct + - /ip4/0.0.0.0/tcp/2121 + - /ip6/::/tcp/2121 + AnnounceAddresses: [] + NoAnnounceAddresses: + - /ip4/127.0.0.1/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1/webtransport + - /ip6/::/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1 + - /ip4/127.0.0.1/udp/2121/quic-v1 + - /ip6/::/udp/2121/quic-v1 + - /ip4/0.0.0.0/udp/2121/webrtc-direct + - /ip4/127.0.0.1/udp/2121/webrtc-direct + - /ip6/::/udp/2121/webrtc-direct + - /ip4/0.0.0.0/tcp/2121 + - /ip4/127.0.0.1/tcp/2121 + - /ip6/::/tcp/2121 + MutualPeers: [] + PeerExchange: true + ConnManager: + Low: 800 + High: 1000 + GracePeriod: 1m0s +RPC: + Address: localhost + Port: "26658" + SkipAuth: false +Gateway: + Address: localhost + Port: "26659" + Enabled: false +Share: + BlockStoreCacheSize: 128 + UseShareExchange: true + EDSStoreParams: + RecentBlocksCacheSize: 10 + ShrExEDSParams: + ServerReadTimeout: 5s + ServerWriteTimeout: 1m0s + HandleRequestTimeout: 1m0s + ConcurrencyLimit: 10 + BufferSize: 32768 + ShrExNDParams: + ServerReadTimeout: 5s + ServerWriteTimeout: 1m0s + HandleRequestTimeout: 1m0s + ConcurrencyLimit: 10 + PeerManagerParams: + PoolValidationTimeout: 2m0s + PeerCooldown: 3s + GcInterval: 30s + EnableBlackListing: false + Discovery: + PeersLimit: 5 + AdvertiseInterval: 1h0m0s +Header: + TrustedHash: "" + TrustedPeers: [] + Store: + StoreCacheSize: 4096 + IndexCacheSize: 16384 + WriteBatchSize: 2048 + Syncer: + TrustingPeriod: 336h0m0s + Server: + WriteDeadline: 8s + ReadDeadline: 1m0s + RangeRequestTimeout: 10s + Client: + MaxHeadersPerRangeRequest: 64 + RangeRequestTimeout: 8s +Pruner: + EnableService: false diff --git a/scripts/config/node/bridge/v0.21.2-arabica/template-config.yaml b/scripts/config/node/bridge/v0.21.2-arabica/template-config.yaml new file mode 100644 index 0000000..0bc0ca8 --- /dev/null +++ b/scripts/config/node/bridge/v0.21.2-arabica/template-config.yaml @@ -0,0 +1,72 @@ +[Node] + StartupTimeout = "{{ .Values.node.config.bridge.configtoml.Node.StartupTimeout }}" + ShutdownTimeout = "{{ .Values.node.config.bridge.configtoml.Node.ShutdownTimeout }}" +[Core] + IP = "{{ .Values.node.config.bridge.configtoml.Core.IP }}" + Port = "{{ .Values.node.config.bridge.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.bridge.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.bridge.configtoml.Core.XTokenPath }}" +[State] + DefaultKeyName = "{{ .Values.node.config.bridge.configtoml.State.DefaultKeyName }}" + DefaultBackendName = "{{ .Values.node.config.bridge.configtoml.State.DefaultBackendName }}" +[P2P] + ListenAddresses = [{{ range $index, $element := .Values.node.config.bridge.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + AnnounceAddresses = {{ .Values.node.config.bridge.configtoml.P2P.AnnounceAddresses }} + NoAnnounceAddresses = [{{ range $index, $element := .Values.node.config.bridge.configtoml.P2P.NoAnnounceAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + MutualPeers = {{ .Values.node.config.bridge.configtoml.P2P.MutualPeers }} + PeerExchange = {{ .Values.node.config.bridge.configtoml.P2P.PeerExchange }} + [P2P.ConnManager] + Low = {{ printf "%.0f" .Values.node.config.bridge.configtoml.P2P.ConnManager.Low }} + High = {{ printf "%.0f" .Values.node.config.bridge.configtoml.P2P.ConnManager.High }} + GracePeriod = "{{ .Values.node.config.bridge.configtoml.P2P.ConnManager.GracePeriod }}" +[RPC] + Address = "{{ .Values.node.config.bridge.configtoml.RPC.Address }}" + Port = "{{ .Values.node.config.bridge.configtoml.RPC.Port }}" + SkipAuth = {{ .Values.node.config.bridge.configtoml.RPC.SkipAuth }} +[Gateway] + Address = "{{ .Values.node.config.bridge.configtoml.Gateway.Address }}" + Port = "{{ .Values.node.config.bridge.configtoml.Gateway.Port }}" + Enabled = {{ .Values.node.config.bridge.configtoml.Gateway.Enabled }} +[Share] + BlockStoreCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.BlockStoreCacheSize }} + UseShareExchange = {{ .Values.node.config.bridge.configtoml.Share.UseShareExchange }} + [Share.EDSStoreParams] + RecentBlocksCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.EDSStoreParams.RecentBlocksCacheSize }} + [Share.ShrExEDSParams] + ServerReadTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.ConcurrencyLimit }} + BufferSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.BufferSize }} + [Share.ShrExNDParams] + ServerReadTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExNDParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExNDParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExNDParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.ShrExNDParams.ConcurrencyLimit }} + [Share.PeerManagerParams] + PoolValidationTimeout = "{{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.PoolValidationTimeout }}" + PeerCooldown = "{{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.PeerCooldown }}" + GcInterval = "{{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.GcInterval }}" + EnableBlackListing = {{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.EnableBlackListing }} + [Share.Discovery] + PeersLimit = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.Discovery.PeersLimit }} + AdvertiseInterval = "{{ .Values.node.config.bridge.configtoml.Share.Discovery.AdvertiseInterval }}" +[Header] + TrustedHash = "{{ .Values.node.config.bridge.configtoml.Header.TrustedHash }}" + TrustedPeers = {{ .Values.node.config.bridge.configtoml.Header.TrustedPeers }} + [Header.Store] + StoreCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Store.StoreCacheSize }} + IndexCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Store.IndexCacheSize }} + WriteBatchSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Store.WriteBatchSize }} + [Header.Syncer] + TrustingPeriod = "{{ .Values.node.config.bridge.configtoml.Header.Syncer.TrustingPeriod }}" + [Header.Server] + WriteDeadline = "{{ .Values.node.config.bridge.configtoml.Header.Server.WriteDeadline }}" + ReadDeadline = "{{ .Values.node.config.bridge.configtoml.Header.Server.ReadDeadline }}" + RangeRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Header.Server.RangeRequestTimeout }}" + [Header.Client] + MaxHeadersPerRangeRequest = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Client.MaxHeadersPerRangeRequest }} + RangeRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Header.Client.RangeRequestTimeout }}" +[Pruner] + EnableService = {{ .Values.node.config.bridge.configtoml.Pruner.EnableService }} + diff --git a/scripts/config/node/bridge/v0.21.2-arabica/template.yaml b/scripts/config/node/bridge/v0.21.2-arabica/template.yaml new file mode 100644 index 0000000..0bc0ca8 --- /dev/null +++ b/scripts/config/node/bridge/v0.21.2-arabica/template.yaml @@ -0,0 +1,72 @@ +[Node] + StartupTimeout = "{{ .Values.node.config.bridge.configtoml.Node.StartupTimeout }}" + ShutdownTimeout = "{{ .Values.node.config.bridge.configtoml.Node.ShutdownTimeout }}" +[Core] + IP = "{{ .Values.node.config.bridge.configtoml.Core.IP }}" + Port = "{{ .Values.node.config.bridge.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.bridge.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.bridge.configtoml.Core.XTokenPath }}" +[State] + DefaultKeyName = "{{ .Values.node.config.bridge.configtoml.State.DefaultKeyName }}" + DefaultBackendName = "{{ .Values.node.config.bridge.configtoml.State.DefaultBackendName }}" +[P2P] + ListenAddresses = [{{ range $index, $element := .Values.node.config.bridge.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + AnnounceAddresses = {{ .Values.node.config.bridge.configtoml.P2P.AnnounceAddresses }} + NoAnnounceAddresses = [{{ range $index, $element := .Values.node.config.bridge.configtoml.P2P.NoAnnounceAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + MutualPeers = {{ .Values.node.config.bridge.configtoml.P2P.MutualPeers }} + PeerExchange = {{ .Values.node.config.bridge.configtoml.P2P.PeerExchange }} + [P2P.ConnManager] + Low = {{ printf "%.0f" .Values.node.config.bridge.configtoml.P2P.ConnManager.Low }} + High = {{ printf "%.0f" .Values.node.config.bridge.configtoml.P2P.ConnManager.High }} + GracePeriod = "{{ .Values.node.config.bridge.configtoml.P2P.ConnManager.GracePeriod }}" +[RPC] + Address = "{{ .Values.node.config.bridge.configtoml.RPC.Address }}" + Port = "{{ .Values.node.config.bridge.configtoml.RPC.Port }}" + SkipAuth = {{ .Values.node.config.bridge.configtoml.RPC.SkipAuth }} +[Gateway] + Address = "{{ .Values.node.config.bridge.configtoml.Gateway.Address }}" + Port = "{{ .Values.node.config.bridge.configtoml.Gateway.Port }}" + Enabled = {{ .Values.node.config.bridge.configtoml.Gateway.Enabled }} +[Share] + BlockStoreCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.BlockStoreCacheSize }} + UseShareExchange = {{ .Values.node.config.bridge.configtoml.Share.UseShareExchange }} + [Share.EDSStoreParams] + RecentBlocksCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.EDSStoreParams.RecentBlocksCacheSize }} + [Share.ShrExEDSParams] + ServerReadTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.ConcurrencyLimit }} + BufferSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.ShrExEDSParams.BufferSize }} + [Share.ShrExNDParams] + ServerReadTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExNDParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExNDParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Share.ShrExNDParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.ShrExNDParams.ConcurrencyLimit }} + [Share.PeerManagerParams] + PoolValidationTimeout = "{{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.PoolValidationTimeout }}" + PeerCooldown = "{{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.PeerCooldown }}" + GcInterval = "{{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.GcInterval }}" + EnableBlackListing = {{ .Values.node.config.bridge.configtoml.Share.PeerManagerParams.EnableBlackListing }} + [Share.Discovery] + PeersLimit = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Share.Discovery.PeersLimit }} + AdvertiseInterval = "{{ .Values.node.config.bridge.configtoml.Share.Discovery.AdvertiseInterval }}" +[Header] + TrustedHash = "{{ .Values.node.config.bridge.configtoml.Header.TrustedHash }}" + TrustedPeers = {{ .Values.node.config.bridge.configtoml.Header.TrustedPeers }} + [Header.Store] + StoreCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Store.StoreCacheSize }} + IndexCacheSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Store.IndexCacheSize }} + WriteBatchSize = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Store.WriteBatchSize }} + [Header.Syncer] + TrustingPeriod = "{{ .Values.node.config.bridge.configtoml.Header.Syncer.TrustingPeriod }}" + [Header.Server] + WriteDeadline = "{{ .Values.node.config.bridge.configtoml.Header.Server.WriteDeadline }}" + ReadDeadline = "{{ .Values.node.config.bridge.configtoml.Header.Server.ReadDeadline }}" + RangeRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Header.Server.RangeRequestTimeout }}" + [Header.Client] + MaxHeadersPerRangeRequest = {{ printf "%.0f" .Values.node.config.bridge.configtoml.Header.Client.MaxHeadersPerRangeRequest }} + RangeRequestTimeout = "{{ .Values.node.config.bridge.configtoml.Header.Client.RangeRequestTimeout }}" +[Pruner] + EnableService = {{ .Values.node.config.bridge.configtoml.Pruner.EnableService }} + diff --git a/scripts/config/node/full/v0.21.2-arabica/config.yaml b/scripts/config/node/full/v0.21.2-arabica/config.yaml new file mode 100644 index 0000000..586d9c4 --- /dev/null +++ b/scripts/config/node/full/v0.21.2-arabica/config.yaml @@ -0,0 +1,97 @@ +Node: + StartupTimeout: 2m0s + ShutdownTimeout: 2m0s +Core: + IP: "" + Port: "9090" + TLSEnabled: false + XTokenPath: "" +State: + DefaultKeyName: my_celes_key + DefaultBackendName: test +P2P: + ListenAddresses: + - /ip4/0.0.0.0/udp/2121/quic-v1/webtransport + - /ip6/::/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1 + - /ip6/::/udp/2121/quic-v1 + - /ip4/0.0.0.0/udp/2121/webrtc-direct + - /ip6/::/udp/2121/webrtc-direct + - /ip4/0.0.0.0/tcp/2121 + - /ip6/::/tcp/2121 + AnnounceAddresses: [] + NoAnnounceAddresses: + - /ip4/127.0.0.1/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1/webtransport + - /ip6/::/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1 + - /ip4/127.0.0.1/udp/2121/quic-v1 + - /ip6/::/udp/2121/quic-v1 + - /ip4/0.0.0.0/udp/2121/webrtc-direct + - /ip4/127.0.0.1/udp/2121/webrtc-direct + - /ip6/::/udp/2121/webrtc-direct + - /ip4/0.0.0.0/tcp/2121 + - /ip4/127.0.0.1/tcp/2121 + - /ip6/::/tcp/2121 + MutualPeers: [] + PeerExchange: true + ConnManager: + Low: 800 + High: 1000 + GracePeriod: 1m0s +RPC: + Address: localhost + Port: "26658" + SkipAuth: false +Gateway: + Address: localhost + Port: "26659" + Enabled: false +Share: + BlockStoreCacheSize: 128 + UseShareExchange: true + EDSStoreParams: + RecentBlocksCacheSize: 10 + ShrExEDSParams: + ServerReadTimeout: 5s + ServerWriteTimeout: 1m0s + HandleRequestTimeout: 1m0s + ConcurrencyLimit: 10 + BufferSize: 32768 + ShrExNDParams: + ServerReadTimeout: 5s + ServerWriteTimeout: 1m0s + HandleRequestTimeout: 1m0s + ConcurrencyLimit: 10 + PeerManagerParams: + PoolValidationTimeout: 2m0s + PeerCooldown: 3s + GcInterval: 30s + EnableBlackListing: false + Discovery: + PeersLimit: 5 + AdvertiseInterval: 1h0m0s +Header: + TrustedHash: "" + TrustedPeers: [] + Store: + StoreCacheSize: 4096 + IndexCacheSize: 16384 + WriteBatchSize: 2048 + Syncer: + TrustingPeriod: 336h0m0s + Server: + WriteDeadline: 8s + ReadDeadline: 1m0s + RangeRequestTimeout: 10s + Client: + MaxHeadersPerRangeRequest: 64 + RangeRequestTimeout: 8s +DASer: + SamplingRange: 100 + ConcurrencyLimit: 6 + BackgroundStoreInterval: 10m0s + SampleFrom: 1 + SampleTimeout: 2m0s +Pruner: + EnableService: false diff --git a/scripts/config/node/full/v0.21.2-arabica/template-config.yaml b/scripts/config/node/full/v0.21.2-arabica/template-config.yaml new file mode 100644 index 0000000..da9ee14 --- /dev/null +++ b/scripts/config/node/full/v0.21.2-arabica/template-config.yaml @@ -0,0 +1,78 @@ +[Node] + StartupTimeout = "{{ .Values.node.config.full.configtoml.Node.StartupTimeout }}" + ShutdownTimeout = "{{ .Values.node.config.full.configtoml.Node.ShutdownTimeout }}" +[Core] + IP = "{{ .Values.node.config.full.configtoml.Core.IP }}" + Port = "{{ .Values.node.config.full.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.full.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.full.configtoml.Core.XTokenPath }}" +[State] + DefaultKeyName = "{{ .Values.node.config.full.configtoml.State.DefaultKeyName }}" + DefaultBackendName = "{{ .Values.node.config.full.configtoml.State.DefaultBackendName }}" +[P2P] + ListenAddresses = [{{ range $index, $element := .Values.node.config.full.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + AnnounceAddresses = {{ .Values.node.config.full.configtoml.P2P.AnnounceAddresses }} + NoAnnounceAddresses = [{{ range $index, $element := .Values.node.config.full.configtoml.P2P.NoAnnounceAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + MutualPeers = {{ .Values.node.config.full.configtoml.P2P.MutualPeers }} + PeerExchange = {{ .Values.node.config.full.configtoml.P2P.PeerExchange }} + [P2P.ConnManager] + Low = {{ printf "%.0f" .Values.node.config.full.configtoml.P2P.ConnManager.Low }} + High = {{ printf "%.0f" .Values.node.config.full.configtoml.P2P.ConnManager.High }} + GracePeriod = "{{ .Values.node.config.full.configtoml.P2P.ConnManager.GracePeriod }}" +[RPC] + Address = "{{ .Values.node.config.full.configtoml.RPC.Address }}" + Port = "{{ .Values.node.config.full.configtoml.RPC.Port }}" + SkipAuth = {{ .Values.node.config.full.configtoml.RPC.SkipAuth }} +[Gateway] + Address = "{{ .Values.node.config.full.configtoml.Gateway.Address }}" + Port = "{{ .Values.node.config.full.configtoml.Gateway.Port }}" + Enabled = {{ .Values.node.config.full.configtoml.Gateway.Enabled }} +[Share] + BlockStoreCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.BlockStoreCacheSize }} + UseShareExchange = {{ .Values.node.config.full.configtoml.Share.UseShareExchange }} + [Share.EDSStoreParams] + RecentBlocksCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.EDSStoreParams.RecentBlocksCacheSize }} + [Share.ShrExEDSParams] + ServerReadTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExEDSParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExEDSParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExEDSParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.ShrExEDSParams.ConcurrencyLimit }} + BufferSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.ShrExEDSParams.BufferSize }} + [Share.ShrExNDParams] + ServerReadTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExNDParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExNDParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExNDParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.ShrExNDParams.ConcurrencyLimit }} + [Share.PeerManagerParams] + PoolValidationTimeout = "{{ .Values.node.config.full.configtoml.Share.PeerManagerParams.PoolValidationTimeout }}" + PeerCooldown = "{{ .Values.node.config.full.configtoml.Share.PeerManagerParams.PeerCooldown }}" + GcInterval = "{{ .Values.node.config.full.configtoml.Share.PeerManagerParams.GcInterval }}" + EnableBlackListing = {{ .Values.node.config.full.configtoml.Share.PeerManagerParams.EnableBlackListing }} + [Share.Discovery] + PeersLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.Discovery.PeersLimit }} + AdvertiseInterval = "{{ .Values.node.config.full.configtoml.Share.Discovery.AdvertiseInterval }}" +[Header] + TrustedHash = "{{ .Values.node.config.full.configtoml.Header.TrustedHash }}" + TrustedPeers = {{ .Values.node.config.full.configtoml.Header.TrustedPeers }} + [Header.Store] + StoreCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Store.StoreCacheSize }} + IndexCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Store.IndexCacheSize }} + WriteBatchSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Store.WriteBatchSize }} + [Header.Syncer] + TrustingPeriod = "{{ .Values.node.config.full.configtoml.Header.Syncer.TrustingPeriod }}" + [Header.Server] + WriteDeadline = "{{ .Values.node.config.full.configtoml.Header.Server.WriteDeadline }}" + ReadDeadline = "{{ .Values.node.config.full.configtoml.Header.Server.ReadDeadline }}" + RangeRequestTimeout = "{{ .Values.node.config.full.configtoml.Header.Server.RangeRequestTimeout }}" + [Header.Client] + MaxHeadersPerRangeRequest = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Client.MaxHeadersPerRangeRequest }} + RangeRequestTimeout = "{{ .Values.node.config.full.configtoml.Header.Client.RangeRequestTimeout }}" +[DASer] + SamplingRange = {{ printf "%.0f" .Values.node.config.full.configtoml.DASer.SamplingRange }} + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.DASer.ConcurrencyLimit }} + BackgroundStoreInterval = "{{ .Values.node.config.full.configtoml.DASer.BackgroundStoreInterval }}" + SampleFrom = {{ printf "%.0f" .Values.node.config.full.configtoml.DASer.SampleFrom }} + SampleTimeout = "{{ .Values.node.config.full.configtoml.DASer.SampleTimeout }}" +[Pruner] + EnableService = {{ .Values.node.config.full.configtoml.Pruner.EnableService }} + diff --git a/scripts/config/node/full/v0.21.2-arabica/template.yaml b/scripts/config/node/full/v0.21.2-arabica/template.yaml new file mode 100644 index 0000000..da9ee14 --- /dev/null +++ b/scripts/config/node/full/v0.21.2-arabica/template.yaml @@ -0,0 +1,78 @@ +[Node] + StartupTimeout = "{{ .Values.node.config.full.configtoml.Node.StartupTimeout }}" + ShutdownTimeout = "{{ .Values.node.config.full.configtoml.Node.ShutdownTimeout }}" +[Core] + IP = "{{ .Values.node.config.full.configtoml.Core.IP }}" + Port = "{{ .Values.node.config.full.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.full.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.full.configtoml.Core.XTokenPath }}" +[State] + DefaultKeyName = "{{ .Values.node.config.full.configtoml.State.DefaultKeyName }}" + DefaultBackendName = "{{ .Values.node.config.full.configtoml.State.DefaultBackendName }}" +[P2P] + ListenAddresses = [{{ range $index, $element := .Values.node.config.full.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + AnnounceAddresses = {{ .Values.node.config.full.configtoml.P2P.AnnounceAddresses }} + NoAnnounceAddresses = [{{ range $index, $element := .Values.node.config.full.configtoml.P2P.NoAnnounceAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + MutualPeers = {{ .Values.node.config.full.configtoml.P2P.MutualPeers }} + PeerExchange = {{ .Values.node.config.full.configtoml.P2P.PeerExchange }} + [P2P.ConnManager] + Low = {{ printf "%.0f" .Values.node.config.full.configtoml.P2P.ConnManager.Low }} + High = {{ printf "%.0f" .Values.node.config.full.configtoml.P2P.ConnManager.High }} + GracePeriod = "{{ .Values.node.config.full.configtoml.P2P.ConnManager.GracePeriod }}" +[RPC] + Address = "{{ .Values.node.config.full.configtoml.RPC.Address }}" + Port = "{{ .Values.node.config.full.configtoml.RPC.Port }}" + SkipAuth = {{ .Values.node.config.full.configtoml.RPC.SkipAuth }} +[Gateway] + Address = "{{ .Values.node.config.full.configtoml.Gateway.Address }}" + Port = "{{ .Values.node.config.full.configtoml.Gateway.Port }}" + Enabled = {{ .Values.node.config.full.configtoml.Gateway.Enabled }} +[Share] + BlockStoreCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.BlockStoreCacheSize }} + UseShareExchange = {{ .Values.node.config.full.configtoml.Share.UseShareExchange }} + [Share.EDSStoreParams] + RecentBlocksCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.EDSStoreParams.RecentBlocksCacheSize }} + [Share.ShrExEDSParams] + ServerReadTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExEDSParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExEDSParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExEDSParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.ShrExEDSParams.ConcurrencyLimit }} + BufferSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.ShrExEDSParams.BufferSize }} + [Share.ShrExNDParams] + ServerReadTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExNDParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExNDParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.full.configtoml.Share.ShrExNDParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.ShrExNDParams.ConcurrencyLimit }} + [Share.PeerManagerParams] + PoolValidationTimeout = "{{ .Values.node.config.full.configtoml.Share.PeerManagerParams.PoolValidationTimeout }}" + PeerCooldown = "{{ .Values.node.config.full.configtoml.Share.PeerManagerParams.PeerCooldown }}" + GcInterval = "{{ .Values.node.config.full.configtoml.Share.PeerManagerParams.GcInterval }}" + EnableBlackListing = {{ .Values.node.config.full.configtoml.Share.PeerManagerParams.EnableBlackListing }} + [Share.Discovery] + PeersLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.Share.Discovery.PeersLimit }} + AdvertiseInterval = "{{ .Values.node.config.full.configtoml.Share.Discovery.AdvertiseInterval }}" +[Header] + TrustedHash = "{{ .Values.node.config.full.configtoml.Header.TrustedHash }}" + TrustedPeers = {{ .Values.node.config.full.configtoml.Header.TrustedPeers }} + [Header.Store] + StoreCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Store.StoreCacheSize }} + IndexCacheSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Store.IndexCacheSize }} + WriteBatchSize = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Store.WriteBatchSize }} + [Header.Syncer] + TrustingPeriod = "{{ .Values.node.config.full.configtoml.Header.Syncer.TrustingPeriod }}" + [Header.Server] + WriteDeadline = "{{ .Values.node.config.full.configtoml.Header.Server.WriteDeadline }}" + ReadDeadline = "{{ .Values.node.config.full.configtoml.Header.Server.ReadDeadline }}" + RangeRequestTimeout = "{{ .Values.node.config.full.configtoml.Header.Server.RangeRequestTimeout }}" + [Header.Client] + MaxHeadersPerRangeRequest = {{ printf "%.0f" .Values.node.config.full.configtoml.Header.Client.MaxHeadersPerRangeRequest }} + RangeRequestTimeout = "{{ .Values.node.config.full.configtoml.Header.Client.RangeRequestTimeout }}" +[DASer] + SamplingRange = {{ printf "%.0f" .Values.node.config.full.configtoml.DASer.SamplingRange }} + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.full.configtoml.DASer.ConcurrencyLimit }} + BackgroundStoreInterval = "{{ .Values.node.config.full.configtoml.DASer.BackgroundStoreInterval }}" + SampleFrom = {{ printf "%.0f" .Values.node.config.full.configtoml.DASer.SampleFrom }} + SampleTimeout = "{{ .Values.node.config.full.configtoml.DASer.SampleTimeout }}" +[Pruner] + EnableService = {{ .Values.node.config.full.configtoml.Pruner.EnableService }} + diff --git a/scripts/config/node/light/v0.21.2-arabica/config.yaml b/scripts/config/node/light/v0.21.2-arabica/config.yaml new file mode 100644 index 0000000..d7a3f38 --- /dev/null +++ b/scripts/config/node/light/v0.21.2-arabica/config.yaml @@ -0,0 +1,99 @@ +Node: + StartupTimeout: 20s + ShutdownTimeout: 20s +Core: + IP: "" + Port: "9090" + TLSEnabled: false + XTokenPath: "" +State: + DefaultKeyName: my_celes_key + DefaultBackendName: test +P2P: + ListenAddresses: + - /ip4/0.0.0.0/udp/2121/quic-v1/webtransport + - /ip6/::/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1 + - /ip6/::/udp/2121/quic-v1 + - /ip4/0.0.0.0/udp/2121/webrtc-direct + - /ip6/::/udp/2121/webrtc-direct + - /ip4/0.0.0.0/tcp/2121 + - /ip6/::/tcp/2121 + AnnounceAddresses: [] + NoAnnounceAddresses: + - /ip4/127.0.0.1/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1/webtransport + - /ip6/::/udp/2121/quic-v1/webtransport + - /ip4/0.0.0.0/udp/2121/quic-v1 + - /ip4/127.0.0.1/udp/2121/quic-v1 + - /ip6/::/udp/2121/quic-v1 + - /ip4/0.0.0.0/udp/2121/webrtc-direct + - /ip4/127.0.0.1/udp/2121/webrtc-direct + - /ip6/::/udp/2121/webrtc-direct + - /ip4/0.0.0.0/tcp/2121 + - /ip4/127.0.0.1/tcp/2121 + - /ip6/::/tcp/2121 + MutualPeers: [] + PeerExchange: false + ConnManager: + Low: 50 + High: 100 + GracePeriod: 1m0s +RPC: + Address: localhost + Port: "26658" + SkipAuth: false +Gateway: + Address: localhost + Port: "26659" + Enabled: false +Share: + BlockStoreCacheSize: 128 + UseShareExchange: true + EDSStoreParams: + RecentBlocksCacheSize: 10 + ShrExEDSParams: + ServerReadTimeout: 5s + ServerWriteTimeout: 1m0s + HandleRequestTimeout: 1m0s + ConcurrencyLimit: 10 + BufferSize: 32768 + ShrExNDParams: + ServerReadTimeout: 5s + ServerWriteTimeout: 1m0s + HandleRequestTimeout: 1m0s + ConcurrencyLimit: 10 + PeerManagerParams: + PoolValidationTimeout: 2m0s + PeerCooldown: 3s + GcInterval: 30s + EnableBlackListing: false + LightAvailability: + SampleAmount: 16 + Discovery: + PeersLimit: 5 + AdvertiseInterval: 1h0m0s +Header: + TrustedHash: "" + TrustedPeers: [] + Store: + StoreCacheSize: 512 + IndexCacheSize: 2048 + WriteBatchSize: 512 + Syncer: + TrustingPeriod: 336h0m0s + Server: + WriteDeadline: 8s + ReadDeadline: 1m0s + RangeRequestTimeout: 10s + Client: + MaxHeadersPerRangeRequest: 64 + RangeRequestTimeout: 8s +DASer: + SamplingRange: 100 + ConcurrencyLimit: 16 + BackgroundStoreInterval: 10m0s + SampleFrom: 1 + SampleTimeout: 2m40s +Pruner: + EnableService: false diff --git a/scripts/config/node/light/v0.21.2-arabica/template-config.yaml b/scripts/config/node/light/v0.21.2-arabica/template-config.yaml new file mode 100644 index 0000000..8d806ff --- /dev/null +++ b/scripts/config/node/light/v0.21.2-arabica/template-config.yaml @@ -0,0 +1,80 @@ +[Node] + StartupTimeout = "{{ .Values.node.config.light.configtoml.Node.StartupTimeout }}" + ShutdownTimeout = "{{ .Values.node.config.light.configtoml.Node.ShutdownTimeout }}" +[Core] + IP = "{{ .Values.node.config.light.configtoml.Core.IP }}" + Port = "{{ .Values.node.config.light.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.light.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.light.configtoml.Core.XTokenPath }}" +[State] + DefaultKeyName = "{{ .Values.node.config.light.configtoml.State.DefaultKeyName }}" + DefaultBackendName = "{{ .Values.node.config.light.configtoml.State.DefaultBackendName }}" +[P2P] + ListenAddresses = [{{ range $index, $element := .Values.node.config.light.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + AnnounceAddresses = {{ .Values.node.config.light.configtoml.P2P.AnnounceAddresses }} + NoAnnounceAddresses = [{{ range $index, $element := .Values.node.config.light.configtoml.P2P.NoAnnounceAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + MutualPeers = {{ .Values.node.config.light.configtoml.P2P.MutualPeers }} + PeerExchange = {{ .Values.node.config.light.configtoml.P2P.PeerExchange }} + [P2P.ConnManager] + Low = {{ printf "%.0f" .Values.node.config.light.configtoml.P2P.ConnManager.Low }} + High = {{ printf "%.0f" .Values.node.config.light.configtoml.P2P.ConnManager.High }} + GracePeriod = "{{ .Values.node.config.light.configtoml.P2P.ConnManager.GracePeriod }}" +[RPC] + Address = "{{ .Values.node.config.light.configtoml.RPC.Address }}" + Port = "{{ .Values.node.config.light.configtoml.RPC.Port }}" + SkipAuth = {{ .Values.node.config.light.configtoml.RPC.SkipAuth }} +[Gateway] + Address = "{{ .Values.node.config.light.configtoml.Gateway.Address }}" + Port = "{{ .Values.node.config.light.configtoml.Gateway.Port }}" + Enabled = {{ .Values.node.config.light.configtoml.Gateway.Enabled }} +[Share] + BlockStoreCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.BlockStoreCacheSize }} + UseShareExchange = {{ .Values.node.config.light.configtoml.Share.UseShareExchange }} + [Share.EDSStoreParams] + RecentBlocksCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.EDSStoreParams.RecentBlocksCacheSize }} + [Share.ShrExEDSParams] + ServerReadTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExEDSParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExEDSParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExEDSParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.ShrExEDSParams.ConcurrencyLimit }} + BufferSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.ShrExEDSParams.BufferSize }} + [Share.ShrExNDParams] + ServerReadTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExNDParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExNDParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExNDParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.ShrExNDParams.ConcurrencyLimit }} + [Share.PeerManagerParams] + PoolValidationTimeout = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.PoolValidationTimeout }}" + PeerCooldown = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.PeerCooldown }}" + GcInterval = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.GcInterval }}" + EnableBlackListing = {{ .Values.node.config.light.configtoml.Share.PeerManagerParams.EnableBlackListing }} + [Share.LightAvailability] + SampleAmount = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.LightAvailability.SampleAmount }} + [Share.Discovery] + PeersLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.Discovery.PeersLimit }} + AdvertiseInterval = "{{ .Values.node.config.light.configtoml.Share.Discovery.AdvertiseInterval }}" +[Header] + TrustedHash = "{{ .Values.node.config.light.configtoml.Header.TrustedHash }}" + TrustedPeers = {{ .Values.node.config.light.configtoml.Header.TrustedPeers }} + [Header.Store] + StoreCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Store.StoreCacheSize }} + IndexCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Store.IndexCacheSize }} + WriteBatchSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Store.WriteBatchSize }} + [Header.Syncer] + TrustingPeriod = "{{ .Values.node.config.light.configtoml.Header.Syncer.TrustingPeriod }}" + [Header.Server] + WriteDeadline = "{{ .Values.node.config.light.configtoml.Header.Server.WriteDeadline }}" + ReadDeadline = "{{ .Values.node.config.light.configtoml.Header.Server.ReadDeadline }}" + RangeRequestTimeout = "{{ .Values.node.config.light.configtoml.Header.Server.RangeRequestTimeout }}" + [Header.Client] + MaxHeadersPerRangeRequest = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Client.MaxHeadersPerRangeRequest }} + RangeRequestTimeout = "{{ .Values.node.config.light.configtoml.Header.Client.RangeRequestTimeout }}" +[DASer] + SamplingRange = {{ printf "%.0f" .Values.node.config.light.configtoml.DASer.SamplingRange }} + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.DASer.ConcurrencyLimit }} + BackgroundStoreInterval = "{{ .Values.node.config.light.configtoml.DASer.BackgroundStoreInterval }}" + SampleFrom = {{ printf "%.0f" .Values.node.config.light.configtoml.DASer.SampleFrom }} + SampleTimeout = "{{ .Values.node.config.light.configtoml.DASer.SampleTimeout }}" +[Pruner] + EnableService = {{ .Values.node.config.light.configtoml.Pruner.EnableService }} + diff --git a/scripts/config/node/light/v0.21.2-arabica/template.yaml b/scripts/config/node/light/v0.21.2-arabica/template.yaml new file mode 100644 index 0000000..8d806ff --- /dev/null +++ b/scripts/config/node/light/v0.21.2-arabica/template.yaml @@ -0,0 +1,80 @@ +[Node] + StartupTimeout = "{{ .Values.node.config.light.configtoml.Node.StartupTimeout }}" + ShutdownTimeout = "{{ .Values.node.config.light.configtoml.Node.ShutdownTimeout }}" +[Core] + IP = "{{ .Values.node.config.light.configtoml.Core.IP }}" + Port = "{{ .Values.node.config.light.configtoml.Core.Port }}" + TLSEnabled = {{ .Values.node.config.light.configtoml.Core.TLSEnabled }} + XTokenPath = "{{ .Values.node.config.light.configtoml.Core.XTokenPath }}" +[State] + DefaultKeyName = "{{ .Values.node.config.light.configtoml.State.DefaultKeyName }}" + DefaultBackendName = "{{ .Values.node.config.light.configtoml.State.DefaultBackendName }}" +[P2P] + ListenAddresses = [{{ range $index, $element := .Values.node.config.light.configtoml.P2P.ListenAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + AnnounceAddresses = {{ .Values.node.config.light.configtoml.P2P.AnnounceAddresses }} + NoAnnounceAddresses = [{{ range $index, $element := .Values.node.config.light.configtoml.P2P.NoAnnounceAddresses }}{{ if $index }}, {{ end }}"{{ $element }}"{{ end }}] + MutualPeers = {{ .Values.node.config.light.configtoml.P2P.MutualPeers }} + PeerExchange = {{ .Values.node.config.light.configtoml.P2P.PeerExchange }} + [P2P.ConnManager] + Low = {{ printf "%.0f" .Values.node.config.light.configtoml.P2P.ConnManager.Low }} + High = {{ printf "%.0f" .Values.node.config.light.configtoml.P2P.ConnManager.High }} + GracePeriod = "{{ .Values.node.config.light.configtoml.P2P.ConnManager.GracePeriod }}" +[RPC] + Address = "{{ .Values.node.config.light.configtoml.RPC.Address }}" + Port = "{{ .Values.node.config.light.configtoml.RPC.Port }}" + SkipAuth = {{ .Values.node.config.light.configtoml.RPC.SkipAuth }} +[Gateway] + Address = "{{ .Values.node.config.light.configtoml.Gateway.Address }}" + Port = "{{ .Values.node.config.light.configtoml.Gateway.Port }}" + Enabled = {{ .Values.node.config.light.configtoml.Gateway.Enabled }} +[Share] + BlockStoreCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.BlockStoreCacheSize }} + UseShareExchange = {{ .Values.node.config.light.configtoml.Share.UseShareExchange }} + [Share.EDSStoreParams] + RecentBlocksCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.EDSStoreParams.RecentBlocksCacheSize }} + [Share.ShrExEDSParams] + ServerReadTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExEDSParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExEDSParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExEDSParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.ShrExEDSParams.ConcurrencyLimit }} + BufferSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.ShrExEDSParams.BufferSize }} + [Share.ShrExNDParams] + ServerReadTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExNDParams.ServerReadTimeout }}" + ServerWriteTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExNDParams.ServerWriteTimeout }}" + HandleRequestTimeout = "{{ .Values.node.config.light.configtoml.Share.ShrExNDParams.HandleRequestTimeout }}" + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.ShrExNDParams.ConcurrencyLimit }} + [Share.PeerManagerParams] + PoolValidationTimeout = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.PoolValidationTimeout }}" + PeerCooldown = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.PeerCooldown }}" + GcInterval = "{{ .Values.node.config.light.configtoml.Share.PeerManagerParams.GcInterval }}" + EnableBlackListing = {{ .Values.node.config.light.configtoml.Share.PeerManagerParams.EnableBlackListing }} + [Share.LightAvailability] + SampleAmount = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.LightAvailability.SampleAmount }} + [Share.Discovery] + PeersLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.Share.Discovery.PeersLimit }} + AdvertiseInterval = "{{ .Values.node.config.light.configtoml.Share.Discovery.AdvertiseInterval }}" +[Header] + TrustedHash = "{{ .Values.node.config.light.configtoml.Header.TrustedHash }}" + TrustedPeers = {{ .Values.node.config.light.configtoml.Header.TrustedPeers }} + [Header.Store] + StoreCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Store.StoreCacheSize }} + IndexCacheSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Store.IndexCacheSize }} + WriteBatchSize = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Store.WriteBatchSize }} + [Header.Syncer] + TrustingPeriod = "{{ .Values.node.config.light.configtoml.Header.Syncer.TrustingPeriod }}" + [Header.Server] + WriteDeadline = "{{ .Values.node.config.light.configtoml.Header.Server.WriteDeadline }}" + ReadDeadline = "{{ .Values.node.config.light.configtoml.Header.Server.ReadDeadline }}" + RangeRequestTimeout = "{{ .Values.node.config.light.configtoml.Header.Server.RangeRequestTimeout }}" + [Header.Client] + MaxHeadersPerRangeRequest = {{ printf "%.0f" .Values.node.config.light.configtoml.Header.Client.MaxHeadersPerRangeRequest }} + RangeRequestTimeout = "{{ .Values.node.config.light.configtoml.Header.Client.RangeRequestTimeout }}" +[DASer] + SamplingRange = {{ printf "%.0f" .Values.node.config.light.configtoml.DASer.SamplingRange }} + ConcurrencyLimit = {{ printf "%.0f" .Values.node.config.light.configtoml.DASer.ConcurrencyLimit }} + BackgroundStoreInterval = "{{ .Values.node.config.light.configtoml.DASer.BackgroundStoreInterval }}" + SampleFrom = {{ printf "%.0f" .Values.node.config.light.configtoml.DASer.SampleFrom }} + SampleTimeout = "{{ .Values.node.config.light.configtoml.DASer.SampleTimeout }}" +[Pruner] + EnableService = {{ .Values.node.config.light.configtoml.Pruner.EnableService }} + diff --git a/scripts/convert_toml_to_template.sh b/scripts/convert_toml_to_template.sh index b341421..229faf1 100755 --- a/scripts/convert_toml_to_template.sh +++ b/scripts/convert_toml_to_template.sh @@ -7,7 +7,7 @@ convert_toml_to_template() { local node_subtype=$3 local toml_output local template_output - local yaml_file="$(dirname "$toml_file")/template.yaml" + local yaml_file="$(dirname "$toml_file")/template-$(basename "${toml_file%.toml}").yaml" echo "Converting TOML file: $toml_file to templated TOML" @@ -30,7 +30,6 @@ convert_toml_to_template() { template_output="" current_section="" file_base_name=$(basename "$toml_file" .toml) - while IFS= read -r line; do leading_spaces=$(echo "$line" | sed -e 's/\(^[[:space:]]*\).*/\1/') if [[ $line =~ ^[[:space:]]*([a-zA-Z0-9_-]+)\ =\ \"(.+)\"$ ]]; then @@ -38,52 +37,96 @@ convert_toml_to_template() { key_replaced="${key//-/_}" current_section_replaced="${current_section//-/_}" if [ -n "$current_section" ]; then - template_output+="${leading_spaces}$key = \"{{ .Values.app.config.config.${current_section_replaced}.$key_replaced }}\"\n" + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${node_subtype}.configtoml.${current_section_replaced}.$key_replaced }}\"\n" + else + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${file_base_name}.${current_section_replaced}.$key_replaced }}\"\n" + fi else - template_output+="${leading_spaces}$key = \"{{ .Values.app.config.config.$key_replaced }}\"\n" + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${node_subtype}.configtoml.$key_replaced }}\"\n" + else + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${file_base_name}.$key_replaced }}\"\n" + fi fi elif [[ $line =~ ^[[:space:]]*([a-zA-Z0-9_-]+)\ =\ \[(.+)\]$ ]]; then key="${BASH_REMATCH[1]}" - value="${BASH_REMATCH[2]}" key_replaced="${key//-/_}" current_section_replaced="${current_section//-/_}" - if [[ $value =~ ^\".*\"$ ]]; then - template_output+="${leading_spaces}$key = [{{ range \$index, \$element := .Values.app.config.config.${current_section_replaced}.$key_replaced }}{{ if \$index }}, {{ end }}\"\$element\"{{ end }}]\n" + if [ -n "$current_section" ]; then + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = [{{ range \$index, \$element := .Values.${node_type}.config.${node_subtype}.configtoml.${current_section_replaced}.$key_replaced }}{{ if \$index }}, {{ end }}\"{{ \$element }}\"{{ end }}]\n" + else + template_output+="${leading_spaces}$key = [{{ range \$index, \$element := .Values.${node_type}.config.${file_base_name}.${current_section_replaced}.$key_replaced }}{{ if \$index }}, {{ end }}\"{{ \$element }}\"{{ end }}]\n" + fi else - template_output+="${leading_spaces}$key = [{{ range \$index, \$element := .Values.app.config.config.${current_section_replaced}.$key_replaced }}{{ if \$index }}, {{ end }}\$element{{ end }}]\n" + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = [{{ range \$index, \$element := .Values.${node_type}.config.${node_subtype}.configtoml.$key_replaced }}{{ if \$index }}, {{ end }}\"{{ \$element }}\"{{ end }}]\n" + else + template_output+="${leading_spaces}$key = [{{ range \$index, \$element := .Values.${node_type}.config.${file_base_name}.$key_replaced }}{{ if \$index }}, {{ end }}\"{{ \$element }}\"{{ end }}]\n" + fi fi elif [[ $line =~ ^[[:space:]]*([a-zA-Z0-9_-]+)\ =\ (.+)$ ]]; then key="${BASH_REMATCH[1]}" value="${BASH_REMATCH[2]}" key_replaced="${key//-/_}" current_section_replaced="${current_section//-/_}" - - # Lista de campos que necesitan printf - needs_printf=("max_body_bytes" "max_header_bytes") - - if [[ " ${needs_printf[@]} " =~ " ${key} " ]]; then + if [[ $value =~ ^\".*\"$ ]]; then if [ -n "$current_section" ]; then - template_output+="${leading_spaces}$key = \"{{ printf \"%.0f\" .Values.app.config.config.${current_section_replaced}.$key_replaced }}\"\n" + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${node_subtype}.configtoml.${current_section_replaced}.$key_replaced }}\"\n" + else + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${file_base_name}.${current_section_replaced}.$key_replaced }}\"\n" + fi else - template_output+="${leading_spaces}$key = \"{{ printf \"%.0f\" .Values.app.config.config.$key_replaced }}\"\n" + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${node_subtype}.configtoml.$key_replaced }}\"\n" + else + template_output+="${leading_spaces}$key = \"{{ .Values.${node_type}.config.${file_base_name}.$key_replaced }}\"\n" + fi fi else - if [ -n "$current_section" ]; then - template_output+="${leading_spaces}$key = {{ .Values.app.config.config.${current_section_replaced}.$key_replaced }}\n" + if [[ $value =~ ^[0-9]+$ ]]; then + if [ -n "$current_section" ]; then + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = {{ printf \"%.0f\" .Values.${node_type}.config.${node_subtype}.configtoml.${current_section_replaced}.$key_replaced }}\n" + else + template_output+="${leading_spaces}$key = {{ printf \"%.0f\" .Values.${node_type}.config.${file_base_name}.${current_section_replaced}.$key_replaced }}\n" + fi + else + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = {{ printf \"%.0f\" .Values.${node_type}.config.${node_subtype}.configtoml.$key_replaced }}\n" + else + template_output+="${leading_spaces}$key = {{ printf \"%.0f\" .Values.${node_type}.config.${file_base_name}.$key_replaced }}\n" + fi + fi else - template_output+="${leading_spaces}$key = {{ .Values.app.config.config.$key_replaced }}\n" + if [ -n "$current_section" ]; then + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = {{ .Values.${node_type}.config.${node_subtype}.configtoml.${current_section_replaced}.$key_replaced }}\n" + else + template_output+="${leading_spaces}$key = {{ .Values.${node_type}.config.${file_base_name}.${current_section_replaced}.$key_replaced }}\n" + fi + else + if [ "$node_type" == "node" ]; then + template_output+="${leading_spaces}$key = {{ .Values.${node_type}.config.${node_subtype}.configtoml.$key_replaced }}\n" + else + template_output+="${leading_spaces}$key = {{ .Values.${node_type}.config.${file_base_name}.$key_replaced }}\n" + fi + fi fi fi elif [[ $line =~ ^[[:space:]]*\[([a-zA-Z0-9_.-]+)\]$ ]]; then current_section="${BASH_REMATCH[1]}" - template_output+="${leading_spaces}[$current_section]\n" + current_section_replaced="${current_section//-/_}" + template_output+="${leading_spaces}[${current_section_replaced}]\n" else template_output+="$line\n" fi done <<< "$toml_output" # Save the templated TOML output to template.yaml - echo -e "$template_output" > "$yaml_file" + echo -e "$template_output" | sed '/^\s*]$/d' > "$yaml_file" echo "Converted YAML file saved to: $yaml_file" }