Skip to content

Commit

Permalink
Merge pull request #160 from ethpandaops/pk910/dora-update
Browse files Browse the repository at this point in the history
add call rate limits to dora
  • Loading branch information
pk910 authored Oct 24, 2023
2 parents 3d2250c + d20751b commit c2b85c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions roles/dora/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ dora_frontend_ethexplorer: ""
dora_frontend_validatornames: ""
dora_frontend_validatornames_inventory: ""

dora_proxy_count: 1
dora_callrate_limit: 2
dora_callrate_burst: 10

# This can be used to create additional config files for the beaconchain explorer.
# It's useful when using private testnets and you need to mount a custom network config
# as the chain config. All files will be available within the explorer containers on the
Expand Down Expand Up @@ -91,6 +95,12 @@ dora_config: |
validatorNamesYaml: "{{ dora_frontend_validatornames }}"
validatorNamesInventory: "{{ dora_frontend_validatornames_inventory }}"
rateLimit:
enabled: true
proxyCount: {{ dora_proxy_count }}
rate: {{ dora_callrate_limit }}
burst: {{ dora_callrate_burst }}
beaconapi:
# CL Client RPC
endpoint: "{{ dora_beaconapi_endpoint }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/generate_kubernetes_config/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ gen_kubernetes_config_helm_charts:
dependencies:
- name: dora
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.0.1
version: 0.0.3
forky:
valuesTemplatePath: templates/forky.yaml.j2
dependencies:
Expand Down
1 change: 1 addition & 0 deletions roles/generate_kubernetes_config/templates/dora.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dora:
name: {{ ethereum_network_name }}
configPath: "https://config.{{ network_subdomain }}/cl/config.yaml"
validatorNamesInventory: "https://config.{{ network_subdomain }}/api/v1/nodes/validator-ranges"
proxyCount: 2

postgresql:
name: "dora-postgresql"
Expand Down

0 comments on commit c2b85c9

Please sign in to comment.