Auto scaler for Azure Cosmos DB
The purpose of this library is to flexibly scale Azure Cosmos DB. Throughput is changed by using information from Request Charges from individual client queries. Also, it is possible to extend scaling with custom logic. This library includes a minimal database client that is also extensible. For example, sending Cosmos DB telemetry to Application Insights.
- ASP.NET Core
- Azure Cosmos DB
A NuGet package will be released in the near future. Currently this can be used with the below instructions.
- Clone this repository with
git clone https://github.com/NoOps-jp/azure-cosmosdb-scaler.git
- Add to your own solution the src/NoOpsJp.CosmosDbScaler solution.
- Add to your own project src/NoOpsJp.CosmosDbScaler/NoOpsJp.CosmosDbScaler/NoOpsJp.CosmosDbScaler.csproj as a project reference.
- Register necessary parts in
Startup.Configure
. Refer to the sample in samples/aspnetcore-web
Copyright (c) 2018-present, NoOps-jp