Skip to content

Commit

Permalink
add section for disabling profile (Azure#3182)
Browse files Browse the repository at this point in the history
* add section for disabling profile

* fix typo
  • Loading branch information
dem108 authored May 14, 2024
1 parent 93bb9a8 commit 9fb5486
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cli/deploy-moe-autoscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ az monitor autoscale rule create \
--resource $ENDPOINT_RESOURCE_ID
# </scale_up_on_request_latency>

#create weekend profile: scale to 2 nodes in weekend
# create weekend profile: scale to 2 nodes in weekend
# <weekend_profile>
az monitor autoscale profile create \
--name weekend-profile \
Expand All @@ -66,10 +66,17 @@ az monitor autoscale profile create \
--recurrence week sat sun --timezone "Pacific Standard Time"
# </weekend_profile>

# disable the autoscale profile
# <disable_profile>
az monitor autoscale update \
--autoscale-name $AUTOSCALE_SETTINGS_NAME \
--enabled false
# </disable_profile>

# <delete_endpoint>
# delete the autoscaling profile
az monitor autoscale delete -n "$AUTOSCALE_SETTINGS_NAME"

# delete the endpoint
az ml online-endpoint delete --name $ENDPOINT_NAME --yes --no-wait
# </delete_endpoint>
# </delete_endpoint>

0 comments on commit 9fb5486

Please sign in to comment.