Skip to content

Commit

Permalink
Bump scale to zero cooldown time to 5s
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Aug 6, 2024
1 parent f3edd38 commit ebd5084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
set -o errexit
set -o nounset
kraft cloud service create --name schemas --domain ${{ env.SERVICE_DOMAIN }} 443:8000 || true
kraft cloud deploy --memory 64 --rollout remove --image schemas --service schemas --kraftfile Kraftfile --restart on-failure --replicas 8 --no-prompt .
kraft cloud deploy --memory 64 --rollout remove --image schemas --service schemas --kraftfile Kraftfile --restart on-failure --replicas 8 .
kraft cloud service get schemas
kraft cloud instance logs "$(kraft cloud service get schemas --output json | jq --raw-output '.[0].instances | split(" ") | .[0]')"
curl --location --fail https://${{ env.SERVICE_DOMAIN }}
Expand Down
2 changes: 1 addition & 1 deletion Kraftfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ runtime: base:latest
rootfs: ./Dockerfile
labels:
cloud.unikraft.v1.instances/scale_to_zero.policy: "on"
cloud.unikraft.v1.instances/scale_to_zero.cooldown_time_ms: 1000
cloud.unikraft.v1.instances/scale_to_zero.cooldown_time_ms: 5000
cmd: [ "/usr/bin/intelligence-schemahub-serve", "/app/configuration.json", "/app/index" ]

0 comments on commit ebd5084

Please sign in to comment.