Skip to content

Commit

Permalink
[helm] remove ratelimit default and make it configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry-x authored and aptos-bot committed Mar 21, 2022
1 parent c2d1970 commit c109282
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
10 changes: 2 additions & 8 deletions terraform/helm/fullnode/files/fullnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ full_node_networks:
seeds:
{{- (get .Values.aptos_chains .Values.chain.name).seeds | default dict | toYaml | nindent 6 }}
inbound_rate_limit_config:
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25
enabled: true
{{- .Values.fullnode_inbound_rate_limit | toYaml | nindent 6 }}
outbound_rate_limit_config:
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25
enabled: true
{{- .Values.fullnode_outbound_rate_limit | toYaml | nindent 6 }}

storage:
backup_service_address: "0.0.0.0:6186"
Expand Down
11 changes: 11 additions & 0 deletions terraform/helm/fullnode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ fullnode_identity:
# Set this to start fullnode from an existing key.
# If not set, it will generate a random one on startup.

fullnode_inbound_rate_limit:
enabled: true
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25
fullnode_outbound_rate_limit:
enabled: true
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25

rust_log: info

image:
Expand Down
10 changes: 2 additions & 8 deletions terraform/helm/validator/files/configs/fullnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,9 @@ full_node_networks:
{{- end }}
max_inbound_connections: {{ .Values.fullnode.config.max_inbound_connections }}
inbound_rate_limit_config:
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25
enabled: true
{{- .Values.fullnode.config.inbound_rate_limit | toYaml | nindent 6 }}
outbound_rate_limit_config:
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25
enabled: true
{{- .Values.fullnode.config.outbound_rate_limit | toYaml | nindent 6 }}
identity:
type: "from_storage"
key_name: "fullnode_network"
Expand Down
10 changes: 10 additions & 0 deletions terraform/helm/validator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,16 @@ fullnode:
affinity: {}
config:
max_inbound_connections: 1000
inbound_rate_limit:
enabled: true
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25
outbound_rate_limit:
enabled: true
ip_byte_bucket_rate: 1048576
ip_byte_bucket_size: 1048576
initial_bucket_fill_percentage: 25

keymanager:
image:
Expand Down

0 comments on commit c109282

Please sign in to comment.