From 0a0e82d8d85133c58af21f5c222b6f8ba617b0ca Mon Sep 17 00:00:00 2001 From: nspmx Date: Thu, 24 Oct 2024 20:20:50 -0300 Subject: [PATCH 1/9] change delaware resources config --- helm/delaware.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index acd3b9c5..7fbc97c1 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -15,9 +15,9 @@ autoscaling: resources: requests: - cpu: 500m + cpu: 2000m memory: 4Gi - ephemeral-storage: 100Mi + ephemeral-storage: 512Mi livenessProbe: # enabled: false From 7a16f3e3b86ed61adfe857184184e59784ed0bab Mon Sep 17 00:00:00 2001 From: nspmx Date: Thu, 24 Oct 2024 20:29:39 -0300 Subject: [PATCH 2/9] change delaware resources config --- helm/delaware.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index 7fbc97c1..26bb86a8 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -15,7 +15,7 @@ autoscaling: resources: requests: - cpu: 2000m + cpu: 1000m memory: 4Gi ephemeral-storage: 512Mi From 4219a5df99960b41687f81a87a719933dac57b94 Mon Sep 17 00:00:00 2001 From: nspmx Date: Mon, 28 Oct 2024 11:22:25 -0300 Subject: [PATCH 3/9] add logging to prod delaware --- helm/delaware.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index 26bb86a8..1d0e5394 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -87,7 +87,7 @@ configMap: CANON_CMS_ENABLE: "false" CANON_CMS_FORCE_HTTPS: "true" CANON_CMS_GENERATOR_TIMEOUT: "600000" - CANON_CMS_LOGGING: "false" + CANON_CMS_LOGGING: "true" CANON_CMS_MINIMUM_ROLE: "1" CANON_CMS_REQUESTS_PER_SECOND: "60" CANON_CONST_CART: "datausa-cart-v3" From fdf5aa0593ab37032c4f0464e4427794583c3521 Mon Sep 17 00:00:00 2001 From: nspmx Date: Mon, 4 Nov 2024 12:45:41 -0300 Subject: [PATCH 4/9] change delaware config --- helm/delaware.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index 1d0e5394..e6fd34b6 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -4,10 +4,10 @@ image: imagePullSecrets: - name: github -replicaCount: 1 +replicaCount: 3 autoscaling: - enabled: true + enabled: false minReplicas: 1 maxReplicas: 5 targetCPUUtilizationPercentage: 120 From 8cf0ad89401f1867f5470c74e73581bfc0cc5a27 Mon Sep 17 00:00:00 2001 From: nspmx Date: Mon, 4 Nov 2024 12:47:31 -0300 Subject: [PATCH 5/9] change delaware config --- helm/delaware.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index e6fd34b6..225090f2 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -15,8 +15,8 @@ autoscaling: resources: requests: - cpu: 1000m - memory: 4Gi + cpu: 1250m + memory: 3Gi ephemeral-storage: 512Mi livenessProbe: From 65ea0590d065837ab69356ffc7e40bd45212ae47 Mon Sep 17 00:00:00 2001 From: nspmx Date: Mon, 4 Nov 2024 12:52:12 -0300 Subject: [PATCH 6/9] change delaware config --- helm/delaware.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index 225090f2..aa8a01e3 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -15,7 +15,7 @@ autoscaling: resources: requests: - cpu: 1250m + cpu: 1000m memory: 3Gi ephemeral-storage: 512Mi From bc91d9660e454b591bde330c15517627378a486e Mon Sep 17 00:00:00 2001 From: nspmx Date: Mon, 4 Nov 2024 12:55:59 -0300 Subject: [PATCH 7/9] change delaware config --- helm/delaware.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index aa8a01e3..7ee913a5 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -4,7 +4,7 @@ image: imagePullSecrets: - name: github -replicaCount: 3 +replicaCount: 2 autoscaling: enabled: false @@ -15,7 +15,7 @@ autoscaling: resources: requests: - cpu: 1000m + cpu: 1500m memory: 3Gi ephemeral-storage: 512Mi From 4a56c36415332340ba6d1ed55d053b9e28cc9ecc Mon Sep 17 00:00:00 2001 From: hermosillajelmy Date: Mon, 4 Nov 2024 12:57:36 -0300 Subject: [PATCH 8/9] add new customAttributes --- api/customAttributes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/customAttributes.js b/api/customAttributes.js index 90cf7281..08a4ac2d 100644 --- a/api/customAttributes.js +++ b/api/customAttributes.js @@ -85,6 +85,7 @@ module.exports = function(app) { retObj.stateElectionId = ["Nation", "State", "County"].includes(hierarchy) ? id : stateElection.join(","); retObj.electionCut = hierarchy === "Nation" ? `State` : hierarchy === "County" ? `County&State+County=${retObj.stateDataID}` : `County&State+County=${retObj.stateElectionId}`; retObj.hierarchySub = hierarchy === "Nation" ? "State" : "County"; + retObj.CBPSection = hierarchy === "County" || (hierarchy === "State" && id !== "04000US72") || hierarchy === "MSA" if (hierarchy !== "Nation") { const url = `${CANON_GEOSERVICE_API}neighbors/${state ? state.id : id}`; From d4e68661ab975522c703c0d2c7e0163bcfe5e725 Mon Sep 17 00:00:00 2001 From: nspmx Date: Mon, 4 Nov 2024 12:58:16 -0300 Subject: [PATCH 9/9] change delaware config --- helm/delaware.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/delaware.yaml b/helm/delaware.yaml index 7ee913a5..8082bc6d 100644 --- a/helm/delaware.yaml +++ b/helm/delaware.yaml @@ -15,7 +15,7 @@ autoscaling: resources: requests: - cpu: 1500m + cpu: 1000m memory: 3Gi ephemeral-storage: 512Mi