From 97f8caf338870ec9b960ab4eae14c3dd5866bf3a Mon Sep 17 00:00:00 2001 From: Harry Tung Date: Thu, 6 Jun 2024 17:35:15 -0700 Subject: [PATCH 1/4] Increase filesize limit to 10M --- configs/nginx.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/nginx.conf b/configs/nginx.conf index 81d9ef81..79b1bfc4 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -5,6 +5,7 @@ events { http { server { listen 6717; + client_max_body_size 10M; location / { proxy_pass http://localhost:6718; From a0e54534136fe22778b81373bad75f5bb9908396 Mon Sep 17 00:00:00 2001 From: Harry Tung Date: Fri, 7 Jun 2024 09:57:20 -0700 Subject: [PATCH 2/4] Changed linuxkit image to support for both ARM64 and AMD64 systems --- deploy/bin/build-push-edge-endpoint-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/bin/build-push-edge-endpoint-image.sh b/deploy/bin/build-push-edge-endpoint-image.sh index 13b0c866..ffe100f2 100755 --- a/deploy/bin/build-push-edge-endpoint-image.sh +++ b/deploy/bin/build-push-edge-endpoint-image.sh @@ -31,7 +31,7 @@ fi # https://docs.docker.com/engine/install/ubuntu/ # Install QEMU, a generic and open-source machine emulator and virtualizer -docker run --rm --privileged linuxkit/binfmt:af88a591f9cc896a52ce596b9cf7ca26a061ef97 +docker run --rm --privileged linuxkit/alpine:146f540f25cd92ec8ff0c5b0c98342a9a95e479e # Check if tempbuilder already exists if ! docker buildx ls | grep -q tempgroundlightedgebuilder; then From 737e9f5d335d68d4c2d8f131d0fc6abe39fa7b76 Mon Sep 17 00:00:00 2001 From: Harry Tung Date: Fri, 7 Jun 2024 09:57:57 -0700 Subject: [PATCH 3/4] Updated image with larger upload limit --- deploy/k3s/edge_deployment/edge_deployment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/k3s/edge_deployment/edge_deployment.yaml b/deploy/k3s/edge_deployment/edge_deployment.yaml index 727162be..eb1bc0d9 100644 --- a/deploy/k3s/edge_deployment/edge_deployment.yaml +++ b/deploy/k3s/edge_deployment/edge_deployment.yaml @@ -40,7 +40,7 @@ spec: serviceAccountName: edge-endpoint-service-account initContainers: - name: database-prep - image: 723181461334.dkr.ecr.us-west-2.amazonaws.com/edge-endpoint:main-286f50eb5-dirty-3195280a7c7c28a + image: 723181461334.dkr.ecr.us-west-2.amazonaws.com/edge-endpoint:harry-filesize-increase-97f8caf33-dirty-acfc15abc21676c imagePullPolicy: IfNotPresent env: # Flag to indicate whether or not to reset all database tables. Resetting WILL delete @@ -59,7 +59,7 @@ spec: containers: - name: edge-endpoint - image: 723181461334.dkr.ecr.us-west-2.amazonaws.com/edge-endpoint:main-286f50eb5-dirty-3195280a7c7c28a + image: 723181461334.dkr.ecr.us-west-2.amazonaws.com/edge-endpoint:harry-filesize-increase-97f8caf33-dirty-acfc15abc21676c imagePullPolicy: IfNotPresent ports: - containerPort: 6717 @@ -83,7 +83,7 @@ spec: mountPath: /opt/groundlight/edge/sqlite - name: inference-model-updater - image: 723181461334.dkr.ecr.us-west-2.amazonaws.com/edge-endpoint:main-286f50eb5-dirty-3195280a7c7c28a + image: 723181461334.dkr.ecr.us-west-2.amazonaws.com/edge-endpoint:harry-filesize-increase-97f8caf33-dirty-acfc15abc21676c imagePullPolicy: IfNotPresent command: ["/bin/bash", "-c"] args: ["poetry run python -m app.model_updater.update_models"] From 102e349f397c536285eced56f6d20d40bab3830a Mon Sep 17 00:00:00 2001 From: Harry Tung Date: Fri, 7 Jun 2024 10:39:47 -0700 Subject: [PATCH 4/4] Added comments --- configs/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/nginx.conf b/configs/nginx.conf index 79b1bfc4..7d684f97 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -5,7 +5,7 @@ events { http { server { listen 6717; - client_max_body_size 10M; + client_max_body_size 10M; # a bit more than enough for a large json of a 14MP image location / { proxy_pass http://localhost:6718;