Is it possible to update the autoscaling formula and replace the Blob containers mounted in an existing Azure batch pool?

Fawad Rafi 20 Reputation points
2024-09-17T13:04:57.45+00:00

I have created an Azure batch pool with 2 containers (Container1, Container2).

I want to update the autoscaling formula in this pool.

Additionally, I also want to map 2 different containers (Container3, Container4) in the same pool.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,933 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
339 questions
{count} votes

Accepted answer
  1. Nehruji R 8,146 Reputation points Microsoft Vendor
    2024-09-18T09:42:52.5666667+00:00

    Hello Fawad Rafi,

    Greetings! Welcome to Microsoft Q&A Forum.

    We can enable autoscaling on an existing pool and update it with new containers If automatic scaling of the Pool is already enabled, you may specify a new autoscaling formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds refer - https://learn.microsoft.com/en-us/cli/azure/batch/pool/autoscale?view=azure-cli-latest#az-batch-pool-autoscale-enable

    Each Batch SDK provides a way to enable automatic scaling. For example:

    When you enable autoscaling on an existing pool, keep in mind:

    • If autoscaling is currently disabled on the pool, you must specify a valid autoscale formula when you issue the request. You can optionally specify an automatic scaling interval. If you don't specify an interval, the default value of 15 minutes is used.
    • If autoscaling is currently enabled on the pool, you can specify a new formula, a new interval, or both. You must specify at least one of these properties.
      • If you specify a new automatic scaling interval, the existing schedule is stopped and a new schedule is started. The new schedule's start time is the time at which the request to enable autoscaling was issued.
        • If you omit either the autoscale formula or interval, the Batch service continues to use the current value of that setting.

    Note: If you specified values for the targetDedicatedNodes or targetLowPriorityNodes parameters of the CreatePool method when you created the pool in .NET, or for the comparable parameters in another language, then those values are ignored when the autoscale formula is evaluated.

    refer https://learn.microsoft.com/en-us/azure/batch/nodes-and-pools#automatic-scaling-policy

    Hope this information helps! if yes please convert and accept as answer else, please let us know if you have any further queries. I’m happy to assist you further.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Fawad Rafi 20 Reputation points
    2024-09-19T15:35:56.16+00:00

    Thanks for the detailed response.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.