Reputation: 1085
I have a Redshift cluster associated with a parameter group that monitors queries via workload management (WLM). I have rules that perform the "log" action whenever the number of rows scanned crosses a threshold (e.g. 100).
However, when I execute the SQL queries that satisfy the rule and then check the STL_WLM_RULE_ACTION
table, where the query is supposed to be logged, the table comes up empty. Why is this happening? Am I missing something?
Upvotes: 3
Views: 731
Reputation: 14035
Nathan's answer (about data visibility in STL_WLM_RULE_ACTION
) is a good one.
You should also double check that your Parameter Group has been applied:
Clusters
pageConfiguration
tab, under Cluster Properties
, is Cluster Parameter Group
set to the correct group?
If the parameter group you wanted has not been applied then:
Configuration
tab, click the Cluster
drop down and choose Modify
.Cluster Parameter Group
to select the correct group.Modify
to apply the new parameter group.Parameter Group Apply Status
says "Reboot required" then click the Cluster
drop down and choose Reboot
.Upvotes: 1
Reputation: 12756
Are you connecting as a Superuser? Only superusers can see all the data in STL_WLM_RULE_ACTION, other users will only see rows for their own queries. If you are executing a query as one user then checking STL_WLM_RULE_ACTION while connected as another (non super-) user you will potentially not see any rows.
Upvotes: 2