From ee4c54697d889b7064e4b6bd0fe715f3ccfe9184 Mon Sep 17 00:00:00 2001 From: Jinil Sung Date: Fri, 17 Nov 2023 13:13:20 -0800 Subject: [PATCH] GRAD2-2395: reduce the number of partitions and increase the max pool size. GRAD2-2395: reduce the number of partitions and increase the max pool size. --- tools/update-configmap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/update-configmap.sh b/tools/update-configmap.sh index d9a85091..9279dbb7 100644 --- a/tools/update-configmap.sh +++ b/tools/update-configmap.sh @@ -54,7 +54,7 @@ oc create -n "$OPENSHIFT_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map --from-literal=GRAD_TRAX_API="http://educ-grad-trax-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \ --from-literal=MAX_LIFETIME="600000" \ --from-literal=GRAD_STUDENT_API="http://educ-grad-student-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \ - --from-literal=MAXIMUM_POOL_SIZE="20" \ + --from-literal=MAXIMUM_POOL_SIZE="25" \ --from-literal=APP_LOG_LEVEL="INFO" \ --from-literal=GRAD_GRADUATION_REPORT_API="http://educ-grad-graduation-report-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \ --from-literal=GRAD_DISTRIBUTION_API="http://educ-grad-distribution-api.$BUSINESS_NAMESPACE-$envValue.svc.cluster.local:8080/" \ @@ -67,7 +67,7 @@ oc create -n "$OPENSHIFT_NAMESPACE"-"$envValue" configmap "$APP_NAME"-config-map --from-literal=TOKEN_EXPIRY_OFFSET="30" \ --from-literal=GRAD_GRADUATION_API="http://educ-grad-graduation-api.$OPENSHIFT_NAMESPACE-$envValue.svc.cluster.local:8080/" \ --from-literal=DIST_RUN_CRON="0 0 02 1 * *" \ - --from-literal=NUMBER_OF_PARTITIONS="15" \ + --from-literal=NUMBER_OF_PARTITIONS="10" \ --from-literal=KEYCLOAK_TOKEN_URL="https://soam-$envValue.apps.silver.devops.gov.bc.ca/" \ --from-literal=REG_ALG_CRON="0 30 18 * * *" \ --dry-run=client -o yaml | oc apply -f -