Skip to content

Commit

Permalink
fix: update dora config for latest release & remove custom images (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 authored Aug 20, 2024
1 parent 2e9e5a4 commit a433c50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
1 change: 0 additions & 1 deletion main.star
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ def run(plan, args={}):
dora_config_template,
all_participants,
args_with_right_defaults.participants,
el_cl_data_files_artifact_uuid,
network_params,
dora_params,
global_node_selectors,
Expand Down
7 changes: 0 additions & 7 deletions src/dora/dora_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def launch_dora(
config_template,
participant_contexts,
participant_configs,
el_cl_data_files_artifact_uuid,
network_params,
dora_params,
global_node_selectors,
Expand Down Expand Up @@ -89,10 +88,8 @@ def launch_dora(
config_files_artifact_name = plan.render_templates(
template_and_data_by_rel_dest_filepath, "dora-config"
)
el_cl_data_files_artifact_uuid = el_cl_data_files_artifact_uuid
config = get_config(
config_files_artifact_name,
el_cl_data_files_artifact_uuid,
network_params,
dora_params,
global_node_selectors,
Expand All @@ -105,7 +102,6 @@ def launch_dora(

def get_config(
config_files_artifact_name,
el_cl_data_files_artifact_uuid,
network_params,
dora_params,
node_selectors,
Expand All @@ -126,8 +122,6 @@ def get_config(

if dora_params.image != "":
IMAGE_NAME = dora_params.image
elif network_params.electra_fork_epoch < 100000000:
IMAGE_NAME = "ethpandaops/dora:electra-support"
else:
IMAGE_NAME = "ethpandaops/dora:latest"

Expand All @@ -138,7 +132,6 @@ def get_config(
files={
DORA_CONFIG_MOUNT_DIRPATH_ON_SERVICE: config_files_artifact_name,
VALIDATOR_RANGES_MOUNT_DIRPATH_ON_SERVICE: VALIDATOR_RANGES_ARTIFACT_NAME,
constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: el_cl_data_files_artifact_uuid,
},
cmd=["-config", config_file_path],
env_vars=dora_params.env,
Expand Down
20 changes: 11 additions & 9 deletions static_files/dora-config/config.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ logging:

# Chain network configuration
chain:
name: {{ .Network }}
{{ if not .PublicNetwork }}
configPath: "/network-configs/config.yaml"
{{ end }}
displayName: "{{ .Network }}"

# HTTP Server configuration
Expand Down Expand Up @@ -60,15 +56,21 @@ indexer:
# max number of epochs to keep in memory
inMemoryEpochs: 8

# number of epochs to wait before storing unfinalized blocks to db
cachePersistenceDelay: 8
# disable synchronizing historic data
disableSynchronizer: false

# disable synchronizing and everything that writes to the db (indexer just maintains local cache)
disableIndexWriter: false
# reset synchronization state to this epoch on startup - only use to resync database, comment out afterwards
#resyncFromEpoch: 0

# number of seconds to wait between each epoch (don't overload CL client)
# force re-synchronization of epochs that are already present in DB - only use to fix missing data after schema upgrades
#resyncForceUpdate: true

# number of seconds to pause the synchronization between each epoch (don't overload CL client)
syncEpochCooldown: 1

# maximum number of parallel beacon state requests (might cause high memory usage)
maxParallelValidatorSetRequests: 2

mevIndexer:
# list of mev relays to crawl mev blocks from
relays: {{ if not .MEVRelayInfo }}[]{{ end }}
Expand Down

0 comments on commit a433c50

Please sign in to comment.