Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: improve read scalability #740

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: marlowe-runtime
version: v0.0.33
version: v0.0.34
appVersion: v0.0.5
description: Marlowe smart contract language Cardano implementation
home: https://marlowe.iohk.io
Expand Down
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/templates/chain-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
- name: DB_NAME
value: chainsync_{{ $instanceName }}_{{ $network }}
- name: DB_HOST
value: {{ $.Values.databaseHost }}:5432
value: {{ $.Values.databaseReadReplica }}:5432
- name: DB_USER
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion deploy/marlowe-runtime/templates/marlowe-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
name: chainsync-{{ $network }}-owner-user.{{ $.Values.databaseName }}.credentials.postgresql.acid.zalan.do
namespace: {{ $.Values.namespace }}
- name: DB_HOST
value: {{ $.Values.databaseHost }}:5432
value: {{ $.Values.databaseReadReplica }}:5432
- name: HTTP_PORT
value: "3784"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
Expand Down
5 changes: 5 additions & 0 deletions deploy/marlowe-runtime/templates/marlowe-web-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ spec:
port: 3780
protocol: TCP
traits:
- type: cpuscaler
properties:
min: 1
max: 10
cpuUtil: 50
renebarbosafl marked this conversation as resolved.
Show resolved Hide resolved
- type: https-route
properties:
domains:
Expand Down
2 changes: 2 additions & 0 deletions deploy/marlowe-runtime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ releaseName: marlowe-runtime
databaseName: marlowe-runtime-database

databaseHost: dapps-marlowe-runtime-database.csguv6v6ban1.us-east-1.rds.amazonaws.com

databaseReadReplica: dapps-marlowe-runtime-database-read-0.csguv6v6ban1.us-east-1.rds.amazonaws.com