Skip to content

Commit

Permalink
fix: max old space and remove unused argument (#16)
Browse files Browse the repository at this point in the history
* fix: use max old space in NODE_OPTIONS env var and remove unused argument

* fix: add back parquet workers

* chore: update chart version
  • Loading branch information
CharlieC3 authored Dec 19, 2023
1 parent 22fe623 commit 28d81f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 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.13.3
digest: sha256:e92d8594e35b2f1807661f0474e5ac1a2deaac8a53493a6b6a94c0525651b78d
generated: "2023-10-25T12:35:40.790461-04:00"
version: 2.13.4
digest: sha256:fd38f9210e9d3df51df7faad5dfabd1711120840fc90be25b5d9c6bf58da6fcf
generated: "2023-12-15T10:34:06.093471-05: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.3.2
appVersion: 7.3.6
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.1
version: 5.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ spec:
fieldPath: metadata.name
- name: PG_CONNECTION_POOL_MAX
value: {{ default "50" .Values.apiWriter.config.pgConnectionPoolMax | quote }}
- name: NODE_OPTIONS
value: {{ printf "--max-old-space-size=%d" (int .Values.apiWriter.config.replayEvents.maxOldSize) | quote }}
{{- if .Values.apiWriter.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.apiWriter.extraEnvVars "context" $) | nindent 12 }}
{{- end }}
Expand All @@ -289,7 +291,6 @@ spec:
- "./lib/index.js"
- "from-parquet-events"
- {{ printf "--workers=%d" (int .Values.apiWriter.config.replayEvents.workers) | quote }}
- {{ printf "--max-old-space-size=%d" (int .Values.apiWriter.config.replayEvents.maxOldSize) | quote }}
{{- if .Values.apiWriter.initContainerSecurityContext.enabled }}
securityContext: {{- omit .Values.apiWriter.initContainerSecurityContext "enabled" | toYaml | nindent 12 }}
{{- end }}
Expand Down
6 changes: 3 additions & 3 deletions hirosystems/stacks-blockchain-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ apiWriter:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.3.2
tag: 7.3.6
## 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 @@ -610,7 +610,7 @@ apiReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.3.2
tag: 7.3.6
## 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 @@ -968,7 +968,7 @@ apiRosettaReader:
image:
registry: docker.io
repository: hirosystems/stacks-blockchain-api
tag: 7.3.2
tag: 7.3.6
## 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 28d81f1

Please sign in to comment.