Skip to content

Add target based scaling support for MSSQL - #169

Merged
Chris Gillum (cgillum) merged 9 commits into
mainfrom
vabachu/tbs
Oct 10, 2024
Merged

Chris Gillum (cgillum) merged 9 commits into
mainfrom
vabachu/tbs

Conversation

@bachuv

@bachuv Varshitha Bachu (bachuv) commented May 4, 2023 •

Copy link
Copy Markdown
Contributor

This PR adds support for target based scaling. It builds upon Azure/azure-functions-durable-extension#2452. This PR is in draft mode since it hasn't been tested E2E yet.

Changes:

  • Add SqlMetricsProvider and move GetMetricsAsync() code from SqlScaleMonitor here
  • Add SqlTargetScaler (implements ITargetScaler)
  • Override TryGetTargetScaler in SqlDurabilityProvider
  • Add unit tests
  • E2E testing

Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlMetricsProvider.cs Outdated
Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlMetricsProvider.cs
Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlTargetScaler.cs Outdated
Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlMetricsProvider.cs
@bachuv
Varshitha Bachu (bachuv) marked this pull request as ready for review May 17, 2023 19:25
Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlDurabilityProvider.cs Outdated
Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlTargetScaler.cs Outdated
@cgillum

Copy link
Copy Markdown
Member

Quick note: I've successfully tested these changes in the Azure Functions SCv3 integration test code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions, but overall looks great!

Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlMetricsProvider.cs Outdated
Comment thread src/DurableTask.SqlServer.AzureFunctions/SqlScaleMonitor.cs
Comment thread test/DurableTask.SqlServer.AzureFunctions.Tests/TargetBasedScalingTests.cs Outdated
@cgillum
Chris Gillum (cgillum) merged commit e477b00 into main Oct 10, 2024
@cgillum
Chris Gillum (cgillum) deleted the vabachu/tbs branch October 10, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants