azuredtu Extension
SAP Commerce Cloud provides an easy way to get the database load of a given Azure database at a given time by using the azuredtu extension.
The extension uses the DatabaseUtilizationService interface:
public interface DatabaseUtilizationService
{
List<DatabaseUtilization> getUtilization(Duration duration);
}
The interface provides two implementations:
-
AzureDatabaseUtilizationService: queries the Azure database for current database load
-
BufferedDatabaseUtilizationService: wraps AzureDatabaseUtilizationService and buffers its results
You can access the default implementation of the extension through the databaseUtilizationService Spring alias.
Configuration
The azuredtu extension allows you to configure the following properties:
-
database.utilization.query.interval.seconds=: specifies the intervals at which the BufferedDatabaseUtilizationService service reads the database load
-
database.utilization.buffer.size.seconds=: specifies how long values are buffered when the service call doesn't read the database load value