Configuring auto-suspend for Trino worker pods

Learn how to configure Trino worker pods to automatically shutdown during idle periods, which allows you to optimize the resource utilization.

If your cluster is deployed on the OpenShift Container Platform (OCP) and you want to utilize auto-suspend capabilities, you must install Kubernetes Event-driven Autoscaling (KEDA). KEDA enables dynamic scaling of containers, allowing them to scale up or down based on demand.
  1. Follow the instructions for "Creating a Virtual Warehouse".
  2. Select a size for the Virtual Warehouse.
  3. Select the Enable Auto Suspend checkbox to allow Trino worker pods to automatically shut down during idle periods. You can also specify a timeout period (in seconds) for the auto-suspend.
    The timeout period defines the duration that KEDA waits before scaling down worker nodes to zero. By default, this value is set to 300 seconds.
  4. Click Create Virtual Warehouse.