Snowflake Credit Management
  • 19 Sep 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Snowflake Credit Management

  • Dark
    Light
  • PDF

Article summary

This article applies to these versions of LandingLens:

LandingLensLandingLens on Snowflake

Snowflake credits are used to pay for the consumption of resources on Snowflake. Like other apps and functions in Snowflake, running LandingLens on Snowflake consumes credits. 

The LandingAI team has streamlined functionality to minimize credit consumption and is continuing to optimize LandingLens on Snowflake to use credits more efficiently.

To decrease credit usage, you can:

Auto-Suspend GPU

You can configure the app's Auto-Suspend GPU setting to decrease credit consumption when you're not using the app. When you turn on this setting, GPU services for the app will automatically suspend after the period of inactivity that you specify.

  • Using Auto-Suspend GPU does not suspend any warehouses or compute pools.
  • If the GPU is suspended and you train a model, it will take about 6 minutes for the GPU to re-activate.
  • Turning on Auto-Suspend GPU when a GPU is in use will not interrupt the service using it. GPUs will only auto-suspend after the GPU services are idle for the period of time you specify.

Turn On Auto-Suspend GPU

To configure the Auto-Suspend GPU setting:

  1. Open Snowsight.
  2. Go to Data Products > Apps > LandingLens Visual AI Platform.
  3. Click Launch App.
    Launch App
  4. Click App_Wizard.
  5. Click Settings.
  6. Locate the GPU Execution environment section.
  7. Enter the number of minutes of inactivity after which GPU services will automatically suspend.
    • For example, if you enter 5, GPU services will suspend after 5 minutes of inactivity.
    • To turn off Auto-Suspend GPU, enter -1. (This is the default setting.)
      Auto-Suspend GPU
  8. Click Save.
  9. Click Main.
  10. Click Refresh Installation. The installation must be refreshed for the changes to go into effect.
    Refresh the LandingLens Installation

Suspend LandingLens

You can run a SQL command to suspend the LandingLens app. Suspending the app suspends the underlying compute pools.

When the app is suspended, you can then run another SQL command to resume it. Resuming the app takes about 15 minutes.

Make sure that there are no active model training jobs or file syncs when you suspend an app. Otherwise, those processes will fail.

Running the suspend and resume tasks requires the LLENS_PUBLIC application role.

You can use Snowflake tasks to schedule the suspend and resume tasks to run at specific times.

Suspend the App

Run this SQL command to suspend the app, where APP_NAME is the name of your LandingLens instance:

CALL APP_NAME.core.suspend_services('APP_NAME');

Resume the App

Run this SQL command to resume the app, where APP_NAME is the name of your LandingLens instance:

CALL APP_NAME.core.resume_services('APP_NAME');

Was this article helpful?