Skip to content

Commit

Permalink
Merge pull request #353 from celo-org/jcortejoso/blockscout-indexer-r…
Browse files Browse the repository at this point in the history
…eplicas

[blockscout] Value to set indexer replicas
  • Loading branch information
jcortejoso authored Jul 16, 2024
2 parents bfa8319 + c1b8583 commit 9e221df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/blockscout/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: blockscout
version: 1.3.25
version: 1.3.26
appVersion: v2.0.4-beta
description: Chart which is used to deploy Blockscout for Celo Networks
home: https://explorer.celo.org
Expand Down
6 changes: 3 additions & 3 deletions charts/blockscout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Chart which is used to deploy Blockscout for Celo Networks

![Version: 1.3.25](https://img.shields.io/badge/Version-1.3.25-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.0.4-beta](https://img.shields.io/badge/AppVersion-v2.0.4--beta-informational?style=flat-square)
![Version: 1.3.26](https://img.shields.io/badge/Version-1.3.26-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.0.4-beta](https://img.shields.io/badge/AppVersion-v2.0.4--beta-informational?style=flat-square)

- [blockscout](#blockscout)
- [Chart requirements](#chart-requirements)
Expand Down Expand Up @@ -36,7 +36,7 @@ To install/manage a release named `celo-mainnet-fullnode` connected to `mainnet`

```bash
# Select the chart release to use
CHART_RELEASE="oci://us-west1-docker.pkg.dev/celo-testnet/clabs-public-oci/blockscout --version=1.3.25" # Use remote chart and specific version
CHART_RELEASE="oci://us-west1-docker.pkg.dev/celo-testnet/clabs-public-oci/blockscout --version=1.3.26" # Use remote chart and specific version
CHART_RELEASE="./" # Use this local folder

# (Only for local chart) Sync helm dependencies
Expand Down Expand Up @@ -91,7 +91,7 @@ helm upgrade my-blockscout -f values-alfajores-blockscout2.yaml --namespace=celo
| blockscout.eventStream.replicas | int | `0` | replicas for eventStream deployment |
| blockscout.eventStream.resources | object | `{"requests":{"cpu":2,"memory":"1000Mi"}}` | resources for eventStream container |
| blockscout.eventStream.strategy | object | `{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}}` | UpdateStrategy for eventStream deployment |
| blockscout.indexer | object | `{"affinity":{},"db":{"connectionName":"project:region:db-name","name":"blockscout","port":5432,"proxy":{"resources":{"requests":{"cpu":"100m","memory":"40Mi"}}}},"fetchers":{"blockRewards":{"enabled":false},"catchup":{"batchSize":5,"concurrency":5}},"livenessProbe":{"failureThreshold":5,"initialDelaySeconds":60,"periodSeconds":30,"tcpSocket":{"port":"health"}},"nodeSelector":{},"poolSize":200,"poolSizeReplica":5,"port":4001,"primaryRpcRegion":"indexer","readinessProbe":{"failureThreshold":5,"httpGet":{"path":"/health/readiness","port":"health","scheme":"HTTP"},"initialDelaySeconds":30,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5},"resources":{"requests":{"cpu":2,"memory":"2G"}},"rpcRegion":"indexer","strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}},"terminationGracePeriodSeconds":60,"tracerImplementation":"call_tracer"}` | Configuraton for the indexer component |
| blockscout.indexer | object | `{"affinity":{},"db":{"connectionName":"project:region:db-name","name":"blockscout","port":5432,"proxy":{"resources":{"requests":{"cpu":"100m","memory":"40Mi"}}}},"fetchers":{"blockRewards":{"enabled":false},"catchup":{"batchSize":5,"concurrency":5}},"livenessProbe":{"failureThreshold":5,"initialDelaySeconds":60,"periodSeconds":30,"tcpSocket":{"port":"health"}},"nodeSelector":{},"poolSize":200,"poolSizeReplica":5,"port":4001,"primaryRpcRegion":"indexer","readinessProbe":{"failureThreshold":5,"httpGet":{"path":"/health/readiness","port":"health","scheme":"HTTP"},"initialDelaySeconds":30,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":5},"replicas":1,"resources":{"requests":{"cpu":2,"memory":"2G"}},"rpcRegion":"indexer","strategy":{"rollingUpdate":{"maxSurge":1,"maxUnavailable":0}},"terminationGracePeriodSeconds":60,"tracerImplementation":"call_tracer"}` | Configuraton for the indexer component |
| blockscout.indexer.affinity | object | `{}` | affinity for indexer pods |
| blockscout.indexer.db | object | `{"connectionName":"project:region:db-name","name":"blockscout","port":5432,"proxy":{"resources":{"requests":{"cpu":"100m","memory":"40Mi"}}}}` | Database configuration for indexer. Prepared to be used with CloudSQL |
| blockscout.indexer.db.connectionName | string | `"project:region:db-name"` | Name of the CloudSQL connection to use |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
rollingUpdate:
maxSurge: {{ .Values.blockscout.indexer.strategy.rollingUpdate.maxSurge }}
maxUnavailable: {{ .Values.blockscout.indexer.strategy.rollingUpdate.maxUnavailable }}
replicas: 1
replicas: {{ .Values.blockscout.indexer.replicas | default 1 }}
selector:
matchLabels:
app: blockscout
Expand Down
1 change: 1 addition & 0 deletions charts/blockscout/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ blockscout:

# -- Configuraton for the indexer component
indexer:
replicas: 1
# -- termination timeout for indexer pod
terminationGracePeriodSeconds: 60
port: 4001
Expand Down

0 comments on commit 9e221df

Please sign in to comment.