Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add call rate limits to dora #160

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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