Skip to content

Commit

Permalink
add call rate limits for dora (#245)
Browse files Browse the repository at this point in the history
* added call rate limits for dora

* remove unwanted file

* fix comment

* fix readme
  • Loading branch information
pk910 authored Oct 24, 2023
1 parent a8a1355 commit 8f30da4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dora/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: dora
description: A Beaconchain explorer is a tool that allows users to view and interact with the data on the Ethereum Beacon Chain. It is similar to a blockchain explorer, which allows users to view data on a blockchain such as the current state of transactions and blocks - but focussed on exploring the beaconchain.
home: https://github.com/pk910/dora
type: application
version: 0.0.2
version: 0.0.3
maintainers:
- name: barnabasbusa
email: busa.barnabas@gmail.com
Expand Down
5 changes: 4 additions & 1 deletion charts/dora/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# dora

![Version: 0.0.2](https://img.shields.io/badge/Version-0.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Beaconchain explorer is a tool that allows users to view and interact with the data on the Ethereum Beacon Chain. It is similar to a blockchain explorer, which allows users to view data on a blockchain such as the current state of transactions and blocks - but focussed on exploring the beaconchain.

Expand All @@ -19,6 +19,8 @@ A Beaconchain explorer is a tool that allows users to view and interact with the
|-----|------|---------|-------------|
| affinity | object | `{}` | Affinity configuration for pods |
| annotations | object | `{}` | Annotations for the StatefulSet |
| callRateBurst | int | `10` | Page call burst limit per user |
| callRateLimit | int | `2` | Page call limit per second per user |
| config | string | See `values.yaml` | Config file |
| configPath | string | `""` | Path to the network config file -- This can be a url or a local path -- "https://config.dencun-devnet-8.ethpandaops.io/cl/config.yaml" |
| containerSecurityContext | object | See `values.yaml` | The security context for containers |
Expand Down Expand Up @@ -73,6 +75,7 @@ A Beaconchain explorer is a tool that allows users to view and interact with the
| postgresql.primary.extendedConfiguration | string | `"max_connections = 1024\n"` | |
| postgresql.pullPolicy | string | `"IfNotPresent"` | |
| priorityClassName | string | `nil` | Pod priority class |
| proxyCount | int | `1` | Number of proxy servers in front of the explorer |
| ranges | string | `"0-1: test\n"` | |
| readinessProbe | object | See `values.yaml` | Readiness probe |
| replicas | int | `1` | Number of replicas |
Expand Down
16 changes: 16 additions & 0 deletions charts/dora/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ configPath: ""
# -- Link to the el block explorer
ethExplorerLink: ""

# -- Number of proxy servers in front of the explorer
proxyCount: 1

# -- Page call limit per second per user
callRateLimit: 2

# -- Page call burst limit per user
callRateBurst: 10


# -- Config file
# @default -- See `values.yaml`
config: |
Expand Down Expand Up @@ -80,6 +90,12 @@ config: |
validatorNamesYaml: "/data/ranges.yaml"
validatorNamesInventory: "{{ .Values.validatorNamesInventory }}"
rateLimit:
enabled: true
proxyCount: {{ .Values.proxyCount }}
rate: {{ .Values.callRateLimit }}
burst: {{ .Values.callRateBurst }}
beaconapi:
# CL Client RPC
endpoints:
Expand Down

0 comments on commit 8f30da4

Please sign in to comment.