Maintained with ☕️ by
IcePanel logo

Improved resource governance for Azure Analysis Services

Share

Services

Today, we are announcing the release of two enhancements concerning the memory governance options of Azure Analysis Services. Specifically, the enhancements improve the accuracy of the Memory\\QueryMemoryLimit server property and the DbpropMsmdRequestMemoryLimit connection string property. We introduced these properties in June 2018 to limit the memory spools built by DAX queries. The enhancements now cover MDX queries as well, so they effectively cover all queries, and they are no longer limited to memory spools. With full query coverage and improved accuracy, you get more control over the memory consumption related to expensive queries so that you can ensure a high quality of service for all users sending queries to your Azure Analysis Services server. The Memory\\QueryMemoryLimit server property enables you to control expensive queries that result in significant materialisation. If the query hits the limit specified through this property, Azure Analysis Services cancels the query and returns an error to the caller. This helps to reduce the impact on other concurrent users of the server. In the screenshot below, the Memory\\QueryMemoryLimit server property limits memory consumption per query to 20%. Values up 100 refer to percentages, more than 100, it’s in bytes and a value of 0 means no limit. As indicated in the screenshot, make sure that you enable the show Advanced (All) Properties checkbox to display this setting. For more information about how Azure Analysis Services allocates and deallocates memory, see the [Memory properties](https://docs.microsoft.com/en-us/analysis-services/server-properties/memory-properties?view=azure-analysis-services-current) article in the product documentation. ![server properties](https://azurecomcdn.azureedge.net/mediahandler/acomblog/updates/UpdatesV2/blog/2d4bd5a9-2ed5-4f1f-954a-c1fa9f4fbb44.png "server properties") An Azure Analysis Services client application can choose to further reduce the memory allowed per query by specifying the DbpropMsmdRequestMemoryLimit command property. As documented under [Special-purpose parameters](https://docs.microsoft.com/en-us/analysis-services/instances/connection-string-properties-analysis-services?view=azure-analysis-services-current#bkmk%5Fspecial) in the [Connection String Properties (Analysis Services)](https://docs.microsoft.com/en-us/analysis-services/instances/connection-string-properties-analysis-services?view=azure-analysis-services-current) reference article in the product documentation, you must specify the DbpropMsmdRequestMemoryLimit value in kilobytes (KB). The memory limit used will be the smaller of the two values when they’re both specified Note that these enhancements are not available in the SQL Server Analysis Services 2019 release. * Azure Analysis Services * Features * Services * [ Azure Analysis Services](https://azure.microsoft.com/en-gb/products/analysis-services/)