Skip to content

Commit

Permalink
[stacks-blockchain-api]: add support for setting PG_STATEMENT_TIMEOUT…
Browse files Browse the repository at this point in the history
… in readers, upgrade version
  • Loading branch information
CharlieC3 committed Aug 19, 2024
1 parent fa6f2e5 commit a69968f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions hirosystems/stacks-blockchain-api/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dependencies:
version: 12.12.10
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.20.5
digest: sha256:ff6ee6feed51d50b7c47f0fa0f6abbd751a477ef9cb8b56c09f0c8d56b4b8d43
generated: "2024-07-19T16:05:36.993003-04:00"
version: 2.22.0
digest: sha256:4e8edb1bb6dab8bf1316eaa5c90eddce8872b6d61573afc008e8e4cef076a11f
generated: "2024-08-19T10:14:21.81997-04:00"
4 changes: 2 additions & 2 deletions hirosystems/stacks-blockchain-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
annotations:
category: ApplicationServer
apiVersion: v2
appVersion: 7.12.0
appVersion: 7.13.2
dependencies:
- condition: stacks-blockchain.enabled
name: stacks-blockchain
Expand Down Expand Up @@ -41,4 +41,4 @@ sources:
- https://github.com/hirosystems/stacks-blockchain-api
- https://docs.hiro.so/api
- https://docs.hiro.so/get-started/stacks-blockchain-api
version: 5.0.11
version: 5.0.12
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ spec:
fieldPath: metadata.name
- name: PG_CONNECTION_POOL_MAX
value: {{ default "50" .Values.apiReader.config.pgConnectionPoolMax | quote }}
- name: PG_STATEMENT_TIMEOUT
value: {{ default "0" .Values.apiReader.config.pgStatementTimeout | quote }}
{{- if .Values.cdn.enabled }}
- name: IMGIX_TOKEN
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ spec:
fieldPath: metadata.name
- name: PG_CONNECTION_POOL_MAX
value: {{ default "50" .Values.apiRosettaReader.config.pgConnectionPoolMax | quote }}
- name: PG_STATEMENT_TIMEOUT
value: {{ default "0" .Values.apiReader.config.pgStatementTimeout | quote }}
{{- if .Values.cdn.enabled }}
- name: IMGIX_TOKEN
valueFrom:
Expand Down
8 changes: 5 additions & 3 deletions hirosystems/stacks-blockchain-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ apiWriter:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.12.0
tag: 7.13.2
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -600,6 +600,7 @@ apiReader:
enableFtMetadata: true
enableNftMetadata: false
pgConnectionPoolMax: "50"
pgStatementTimeout: "30000" # ms
stacksAddressCacheSize: "50000"
## Hiro Systems stacks-blockchain-api image
## ref: https://hub.docker.com/r/hirosystems/stacks-blockchain-api/tags/
Expand All @@ -613,7 +614,7 @@ apiReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.12.0
tag: 7.13.2
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down Expand Up @@ -958,6 +959,7 @@ apiRosettaReader:
enableFtMetadata: true
enableNftMetadata: false
pgConnectionPoolMax: "50"
pgStatementTimeout: "30000" # ms
stacksAddressCacheSize: "50000"
## Hiro Systems stacks-blockchain-api image
## ref: https://hub.docker.com/r/hirosystems/stacks-blockchain-api/tags/
Expand All @@ -971,7 +973,7 @@ apiRosettaReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.12.0
tag: 7.13.2
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
Expand Down

0 comments on commit a69968f

Please sign in to comment.