Shutdown automatically based on a schedule
As DBA, I want to be able to define a schedule to shutdown and turn on services automatically so that I can save costs on non-production environments.
Example:
at 19:00 Monday to Friday power off the instance
at 06:00 Monday to Friday power on the instance
I will leave this open to see if we get more votes over the next 6 months. This can be accomplished easily with a simple shell script and Aiven CLI with a cron job for example:
0 19 * * 1-5 /path/to/shutdown.sh # Shutdown at 7:00 PM (19:00), Monday-Friday 0 6 * * 1-5 /path/to/startup.sh # Startup at 6:00 AM (06:00), Monday-Friday
#!/bin/bash
# Replace with your Aiven project and service names
PROJECT_NAME="your-project-name"
SERVICE_NAME="your-service-name"
aiven service stop/start $PROJECT_NAME $SERVICE_NAME