From 4d61e5bde6ec7276929baf1cd8672a7bbcf5c41e Mon Sep 17 00:00:00 2001 From: Bas Meeuwissen Date: Fri, 21 Mar 2025 17:46:02 +0100 Subject: [PATCH] #396: load balancing makes more sense for the reads --- package.json | 2 +- services/reads.json | 2 +- services/{notification2.json => reads2.json} | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename services/{notification2.json => reads2.json} (71%) diff --git a/package.json b/package.json index 368805aa..45f74a22 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "gateway": "jitar start --env-file=development.env --service=services/gateway.json --http-body-limit=640000", "bff": "jitar start --env-file=development.env --service=services/bff.json --http-body-limit=640000", "notification": "jitar start --env-file=development.env --service=services/notification.json --http-body-limit=640000", - "notification2": "jitar start --env-file=development.env --service=services/notification2.json --http-body-limit=640000", "reads": "jitar start --env-file=development.env --service=services/reads.json --http-body-limit=640000", + "reads2": "jitar start --env-file=development.env --service=services/reads2.json --http-body-limit=640000", "writes": "jitar start --env-file=development.env --service=services/writes.json --http-body-limit=640000" }, "files": [ diff --git a/services/reads.json b/services/reads.json index af5c5671..d85b3d32 100644 --- a/services/reads.json +++ b/services/reads.json @@ -1,5 +1,5 @@ { - "url": "http://127.0.0.1:4003", + "url": "http://127.0.0.1:4002", "setUp": [ "./integrations/runtime/setUpNode" ], diff --git a/services/notification2.json b/services/reads2.json similarity index 71% rename from services/notification2.json rename to services/reads2.json index 70ff4105..af5c5671 100644 --- a/services/notification2.json +++ b/services/reads2.json @@ -1,5 +1,5 @@ { - "url": "http://127.0.0.1:4002", + "url": "http://127.0.0.1:4003", "setUp": [ "./integrations/runtime/setUpNode" ], @@ -7,13 +7,13 @@ "./integrations/runtime/tearDownNode" ], "healthChecks": [ - "./integrations/runtime/notificationHealthCheck", + "./integrations/runtime/fileStoreHealthCheck", "./integrations/runtime/databaseHealthCheck" ], "worker": { "gateway": "http://127.0.0.1:2000", "trustKey": "${JITAR_TRUST_KEY}", - "segments": ["notification"] + "segments": ["reads"] } } \ No newline at end of file