Skip to main content

Unix service to suspend the snowflake warehouses smartly to cut the cost.

Project description

Snowflake-Smart-Suspend intelligently suspends the running warehouse which are not being used and reaching hour boundary. Currently designed for warehouses with auto-resume enabled and without auto-suspend for better optimisation.

Usage and Details

Installation:

pip install snowflake-smart-suspend

Typical usage often looks like this:

smart_suspend start -c connections -r <role which has access to warehouses of interest> -s 55 -i 30 -w <space separated list of warehouses>

You can find the details about all the options with:

smart_suspend -h
smart_suspend --help

Configurations

If you have snowsql installed and running on the server smart-suspend will work out of the box If not you will have to have file at location HOME/.snowsql/config with snowflake cred:

[connections]
accountname = <account name>
username = <username>
password = <password>

Logging

Logs could be find in /var/log/smartsuspend/system.log. You might need to adjust the permissions to log directory during installation.

Dependancies

  • Its written for Python3 which is the present and future of the language

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snowflake-smart-suspend-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file snowflake-smart-suspend-0.1.1.tar.gz.

File metadata

File hashes

Hashes for snowflake-smart-suspend-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1751b3e7d11de94ca0f358c2174a7b8822273197f3236767297c2131bfc18332
MD5 2b1333c2ad8edb9953f9cd23983cafdc
BLAKE2b-256 98381a0bf79d99ee3b0d99dad83e2bf6510daa7fcc4ceb184f89f47a200c1b09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page