Skip to content

Commit

Permalink
chore: Run in prod, disable persistence, print info (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechsromek authored Oct 28, 2024
1 parent f49ac8f commit 10ed4bb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/prod/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: "ghcr.io/worldcoin/iris-mpc:v0.8.31"
image: "ghcr.io/worldcoin/iris-mpc:v0.8.32"

environment: prod
replicaCount: 0
replicaCount: 1

strategy:
type: Recreate
Expand Down
3 changes: 3 additions & 0 deletions deploy/prod/smpcv2-0-prod/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ env:
- name: SMPC__RETURN_PARTIAL_RESULTS
value: "true"

- name: SMPC__DISABLE_PERSISTENCE
value: "true"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
Expand Down
3 changes: 3 additions & 0 deletions deploy/prod/smpcv2-1-prod/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ env:
- name: SMPC__RETURN_PARTIAL_RESULTS
value: "true"

- name: SMPC__DISABLE_PERSISTENCE
value: "true"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
Expand Down
3 changes: 3 additions & 0 deletions deploy/prod/smpcv2-2-prod/values-iris-mpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ env:
- name: SMPC__RETURN_PARTIAL_RESULTS
value: "true"

- name: SMPC__DISABLE_PERSISTENCE
value: "true"

initContainer:
enabled: true
image: "amazon/aws-cli:2.17.62"
Expand Down
4 changes: 3 additions & 1 deletion iris-mpc-gpu/src/server/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,9 @@ impl ServerActor {
eyre::bail!("DB size exceeded");
}

if !self.disable_persistence {
if self.disable_persistence {
tracing::info!("Persistence is disabled, not writing to DB");
} else {
record_stream_time!(
&self.device_manager,
&self.streams[0],
Expand Down

0 comments on commit 10ed4bb

Please sign in to comment.