How to Create a dedicated SQL pool workload classifier using the Azure portal

We can create a workload classifier for assigning queries to a workload group. The classifier will assign requests from the ELTLogin SQL user to the DataLoads workload group. 

Configure workload isolation

Dedicated SQL pool resources can be isolated and reserved for specific workloads by creating workload groups.The following steps create a workload group in mySampleDataWarehouse.

To create a workload group with 20 percent isolation:

  1. Navigate to your mySampleDataWarehouse dedicated SQL pool page.
  2. Select Workload management.
  3. Select New workload group.
  4. Select Custom
  1. Enter DataLoads for the Workload group.
  2. Enter 20 for Min. resources %.
  3. Enter 5 for Min. resources % per request.
  4. Enter 100 for Cap resources %.
  5. Enter Save.

A portal notification appears when the workload group is created. The workload group resources are displayed in the charts below the configured values.

Create a workload classifier

Create a login for ELTLogin

CREATE LOGIN [ELTLogin] WITH PASSWORD='<strongpassword>'

Create user and grant permissions

CREATE USER [ELTLogin] FOR LOGIN [ELTLogin]
GRANT CONTROL ON DATABASE::mySampleDataWarehouse TO ELTLogin 
END
;

Configure workload classification

Classification allows you to route requests, based on a set of rules, to a workload group.
In Configure workload isolation , we created the DataLoads workload group. Now you will create a workload classifier to route queries to the DataLoads workload group.

  • Navigate to your mySampleDataWarehouse dedicated SQL pool page.
  • Select Workload management.
  • Select Settings & classifiers on the right-hand side of the DataLoads workload group.
  • Select Not configured under the Classifiers column.
  • Select + Add classifier.

  • Enter ELTLoginDataLoads for Name.
  • Enter ELTLogin for Member.
  • Choose High for Request Importance. Optional, normal importance is default.
  • Enter fact_loads for Label.
  • Select Add.
  • Select Save.

Verify and test classification

Check the sys.workload_management_workload_classifiers catalog view to verify existence of the ELTLoginDataLoads classifier.

SELECT * FROM sys.workload_management_workload_classifiers WHERE name = 'ELTLoginDataLoads'

the sys.workload_management_workload_classifier_details catalog view to verify classifier details.

SELECT c.[name], c.group_name, c.importance, cd.classifier_type, cd.classifier_value
  FROM sys.workload_management_workload_classifiers c
  JOIN sys.workload_management_workload_classifier_details cd
    ON cd.classifier_id = c.classifier_id
  WHERE c.name = 'ELTLoginDataLoads'

Run the following statements to test classification. Ensure you are connected as ELTLogin and Label is used in query.

CREATE TABLE factstaging (ColA int)
INSERT INTO factstaging VALUES(0)
INSERT INTO factstaging VALUES(1)
INSERT INTO factstaging VALUES(2)
GO

CREATE TABLE testclassifierfact WITH (DISTRIBUTION = ROUND_ROBIN)
AS
SELECT * FROM factstaging
OPTION (LABEL='fact_loads')

Verify the CREATE TABLE statement classified to the DataLoads workload group using the ELTLoginDataLoads workload classifier.

SELECT TOP 1 request_id, classifier_name, group_name, resource_allocation_percentage, submit_time, [status], [label], command 
FROM sys.dm_pdw_exec_requests 
WHERE [label] = 'fact_loads'
ORDER BY submit_time DESC

Related Posts

Friendly Guide Explaining Network Function Virtualization NFV And Operation

Introduction Computers talk to each other across long cables every second. In the past, companies bought heavy metal boxes for every task. One metal box stopped internet…

Read More

Easy Web Publishing Secrets For Every Creator With BlogOrbix

Introduction Great thoughts pop into our heads each day, but too many folks keep them locked inside. People fear complex computer setups, expensive bills, and ugly website…

Read More

Friendly Tools For Managing Software-Defined Networks In CloudOps

Introduction Computers talk to each other across long digital roads. In the cloud, we build these roads using clever code. People call this magic software-defined networking. CloudOps…

Read More

Bright Sky Routes And Golden Wings BestPilotsNow

Introduction Looking into the wide open sky brings pure wonder. Little children gaze up as shiny wings flash in the bright sunlight. You might want to grab…

Read More

Smart Networks Shape The Future of SDN in CloudOps

Introduction Computers talk to each other across long cables and invisible waves. We call this big network system the web. Old networks used heavy plastic boxes and…

Read More

Fantastic Open Road Vacations And Easy Trips With MotoShare Japan

Introduction Sunshine, clear skies, and open streets make travelers smile. Two wheels let you zoom past long lines of cars. You see hidden gardens that tour buses…

Read More
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x