Skip to content

Commit

Permalink
Merge pull request #53 from pagopa/upd-mem-uat
Browse files Browse the repository at this point in the history
Upd uat and prod cfg + fix typo
  • Loading branch information
pasqualespica authored Jan 10, 2024
2 parents 81f4fce + 86f65ee commit 09c1d25
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
10 changes: 5 additions & 5 deletions helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ microservice-chart:
memory: "768Mi"
cpu: "300m"
limits:
memory: "768Mi"
memory: "1.5Gi"
cpu: "500m"
autoscaling:
enable: true
Expand Down Expand Up @@ -112,15 +112,15 @@ microservice-chart:
MAX_DATE_DIFF_MILLIS: "1800000" # 30min
MAX_DATE_DIFF_NOTIFY_MILLIS: "1800000" # 30nin
MAX_DATE_DIFF_CART_MILLIS: "1800000" # 30nin
TRIGGER_NOTIFY_REC_SCHEDULE: "0 0 */1 * * *"
RECOVER_FAILED_CRON: "0 0 */1 * * *"
TRIGGER_NOTIFY_REC_SCHEDULE: "0 */15 * * * *"
RECOVER_FAILED_CRON: "0 */15 * * * *"
RECOVER_FAILED_CART_CRON: "0 0 */1 * * *"
AZURE_FUNCTIONS_MESH_JAVA_OPTS: "-javaagent:/home/site/wwwroot/jmx_prometheus_javaagent-0.19.0.jar=12345:/home/site/wwwroot/config.yaml -javaagent:/home/site/wwwroot/opentelemetry-javaagent.jar -Xmx768m -XX:+UseG1GC"
FAILED_AUTORECOVER_ENABLED: "true"
NOT_NOTIFIED_AUTORECOVER_ENABLED: "true"
FAILED_CART_AUTORECOVER_ENABLED: "false"
RECOVER_FAILED_MASSIVE_MAX_DAYS: "0"
RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "0"
RECOVER_FAILED_MASSIVE_MAX_DAYS: "1"
RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "1"
RECOVER_NOT_NOTIFIED_MASSIVE_MAX_RECORDS: "200"
envConfigMapExternals:
template-maps:
Expand Down
6 changes: 3 additions & 3 deletions helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ microservice-chart:
memory: "768Mi"
cpu: "300m"
limits:
memory: "768Mi"
memory: "1.5Gi"
cpu: "500m"
autoscaling:
enable: true
Expand Down Expand Up @@ -119,8 +119,8 @@ microservice-chart:
FAILED_AUTORECOVER_ENABLED: "true"
NOT_NOTIFIED_AUTORECOVER_ENABLED: "true"
FAILED_CART_AUTORECOVER_ENABLED: "false"
RECOVER_FAILED_MASSIVE_MAX_DAYS: "0"
RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "0"
RECOVER_FAILED_MASSIVE_MAX_DAYS: "1"
RECOVER_NOT_NOTIFIED_MASSIVE_MAX_DAYS: "1"
RECOVER_NOT_NOTIFIED_MASSIVE_MAX_RECORDS: "200"
envConfigMapExternals:
template-maps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void handleSaveReceipt(Receipt receipt) {

try {
receipt.setStatus(ReceiptStatusType.INSERTED);
receipt.setInsertedAt(System.currentTimeMillis());
receipt.setInserted_at(System.currentTimeMillis());
CosmosItemResponse<Receipt> response = receiptCosmosClient.saveReceipts(receipt);

statusCode = response.getStatusCode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static Receipt getEvent(
bizEventToReceiptService.handleSendMessageToQueue(isCart ? listCart :
Collections.singletonList(bizEvent), receipt);
if (receipt.getStatus() != ReceiptStatusType.NOT_QUEUE_SENT) {
receipt.setInsertedAt(System.currentTimeMillis());
receipt.setInserted_at(System.currentTimeMillis());
receipt.setReasonErr(null);
receipt.setReasonErrPayer(null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class RecoverNotNotifiedReceiptUtils {
public static Receipt restoreReceipt(Receipt receipt) {
receipt.setStatus(ReceiptStatusType.GENERATED);
receipt.setNotificationNumRetry(0);
receipt.setNotifiedAt(0);
receipt.setNotified_at(0);

if (receipt.getReasonErr() != null) {
receipt.setReasonErr(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ private Receipt buildReceipt() {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ private Receipt buildReceipt() {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ private Receipt buildReceipt() {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ private Receipt buildReceipt() {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ private Receipt buildReceipt(ReceiptStatusType statusType) {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ private Receipt buildReceipt(ReceiptStatusType statusType) {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ private Receipt buildReceipt() {
.build())
.numRetry(0)
.notificationNumRetry(6)
.insertedAt(0)
.generatedAt(0)
.notifiedAt(0)
.inserted_at(0)
.generated_at(0)
.notified_at(0)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ private Receipt buildReceiptWithStatus(ReceiptStatusType receiptStatusType, int
.eventId("biz-event-id")
.status(receiptStatusType)
.numRetry(numRetry)
.generatedAt(ORIGINAL_GENERATED_AT)
.insertedAt(0L)
.notifiedAt(0L)
.generated_at(ORIGINAL_GENERATED_AT)
.inserted_at(0L)
.notified_at(0L)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ private Receipt buildReceiptForVerify(boolean debtorAlreadyCreated, boolean paye
.mdAttach(buildMetadata(debtorAlreadyCreated))
.mdAttachPayer(buildMetadata(payerAlreadyCreated))
.numRetry(0)
.generatedAt(1L)
.insertedAt(1L)
.notifiedAt(1L)
.generated_at(1L)
.inserted_at(1L)
.notified_at(1L)
.build();
}

Expand Down Expand Up @@ -686,9 +686,9 @@ private Receipt getReceipt(EventData eventData, ReceiptMetadata metadataD, Recei
.mdAttachPayer(metadataP)
.status(ReceiptStatusType.INSERTED)
.numRetry(0)
.generatedAt(1L)
.insertedAt(1L)
.notifiedAt(1L)
.generated_at(1L)
.inserted_at(1L)
.notified_at(1L)
.build();
}

Expand Down

0 comments on commit 09c1d25

Please sign in to comment.