Azure-Samples / Azure-Samples/azure-sql-db-hyperscale-autoscaler
Code was not updating the RequestedSLO as expected.
- Dominant language
- C#
- Stars
- 15
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
We had to change line 200 of the AutoScaler.cs file from ...
var index = availableSlos.IndexOf(currentSLO.ToString());
to...
var index = availableSlos.IndexOf(currentSLO.ToString().ToLower());
Once we did that, the RequestedSLO was showing correctly on the [dbo].[AutoscalerMonitor] table and also the ALTER DATABASE script was executing as expected to scale up/scale down the server.
Neither were happening with the old line 200.
I am also a Microsoft employee, you can reach me at jobender@microsoft.com.
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect line 200 of AutoScaler.cs and compare the currentSLO value with the availableSlos entries. Reproduce the autoscaler path and verify that RequestedSLO appears correctly in dbo.AutoscalerMonitor and that the ALTER DATABASE script executes for scale-up and scale-down.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, sql
- Domain
- cloud, databases
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100