From f4ef6fec6acce610526c64efcf9b78551adc1431 Mon Sep 17 00:00:00 2001 From: langbart Date: Tue, 12 Nov 2024 08:59:47 +0100 Subject: [PATCH] Adjust resource allocations and concurrency parameters to enhance application performance and scalability. Enable CPU boost and session affinity to ensure responsive handling under increased load. --- .github/workflows/deploy-cloudrun.yaml | 11 ++++++++++- shiny.config | 2 -- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-cloudrun.yaml b/.github/workflows/deploy-cloudrun.yaml index 2befc67b..b59e2c70 100644 --- a/.github/workflows/deploy-cloudrun.yaml +++ b/.github/workflows/deploy-cloudrun.yaml @@ -70,6 +70,15 @@ jobs: service: ${{ env.SERVICE }} image: ${{ env.CONTAINER_REGISTRY }}/${{ env.PROJECT_ID }}/${{ env.SERVICE }}:${{ github.sha }} region: ${{ env.REGION }} - flags: "--cpu=4 --memory=8192M --concurrency=5 --max-instances=20" + flags: >- + --cpu=4 + --memory=4Gi + --concurrency=10 + --max-instances=20 + --min-instances=2 + --timeout=300 + --cpu-boost + --no-cpu-throttling + --session-affinity - name: Show Output run: echo ${{ steps.deploy.outputs.url }} diff --git a/shiny.config b/shiny.config index 814a5a67..10c3548b 100644 --- a/shiny.config +++ b/shiny.config @@ -1,5 +1,3 @@ -disable_protocols websocket xdr-streaming xhr-streaming iframe-eventsource iframe-htmlfile xdr-polling iframe-xhr-polling; - run_as shiny; preserve_logs true;