Skip to content

Commit

Permalink
Adjust resource allocations and concurrency parameters to enhance app…
Browse files Browse the repository at this point in the history
…lication performance and scalability. Enable CPU boost and session affinity to ensure responsive handling under increased load.
  • Loading branch information
langbart committed Nov 12, 2024
1 parent e344caf commit f4ef6fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/deploy-cloudrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 0 additions & 2 deletions shiny.config
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit f4ef6fe

Please sign in to comment.