Administrator control and cost monitoring¶
Administrators manage user access and costs primarily through the compute pools associated with Streamlit apps.
A user’s role must have the USAGE privilege on a compute pool to create and run a
Streamlit app in a workspace. In addition, the compute pool must allow the
STREAMLIT workload type through the ALLOWED_SPCS_WORKLOAD_TYPES parameter.
The default value for this parameter is ALL, which includes STREAMLIT.
To learn more about compute pool workloads, see Snowpark Container Services: Working with compute pools.
Disable Streamlit app execution¶
Administrators can restrict Streamlit app execution in Workspaces in multiple ways:
Remove USAGE on the compute pool¶
Removing the USAGE privilege from a role on a compute pool prevents that role from using that compute pool, including running Streamlit apps.
Restrict workload types on all compute pools¶
Administrators can restrict Streamlit app execution while still permitting other workloads using two account-level parameters. This affects all roles in the account.
Exclude
STREAMLITfrom the ALLOWED_SPCS_WORKLOAD_TYPES parameter.Set
STREAMLITas the DISALLOWED_SPCS_WORKLOAD_TYPES parameter.
Any role that has USAGE on the compute pool can still run other allowed workload types as specified by the parameters.
Monitor costs¶
Administrators can monitor consumption per compute pool. Snowflake recommends provisioning a unique compute pool for each role to view role-level consumption. To manage spend, administrators can apply budgets on specific compute pools.