Scheduling
Create schedules that stop and start non-production resources outside working hours, in the right order and each in its own timezone, across 50+ resource types.
Non-production cloud accounts cost as much as production at 3am and on weekends, when nobody is using them. A schedule powers them down outside business hours using each cloud’s native stop, start, or pause, and brings them back before the team starts work. It is the single largest savings opportunity in most non-prod estates: switching non-prod resources off outside working hours removes a large share of the hours they bill for. The exact saving varies by estate.

Automate → Schedules: each schedule shows its next run, daily on/off pattern, estimated saving, and what it’s attached to.
Before you start
- A role that can manage schedules (the
schedulepolicies; the built-in Editor and Admin roles have them). - Cloud accounts at the Read + Write permission level for the resources you want stopped and started. On a read-only account you can attach a schedule, but ZopNight never starts or stops the resource. See Read-only vs read + write.
- The resources discovered in your inventory. See Resources.
How it works
A schedule is a name, a timezone, and one or more cron expressions for its start and stop times. You attach it to individual resources or to resource groups, and changes to the schedule propagate to every attached resource and group member. The YAML below shows that underlying conceptual model, not a file you author by hand:
name: dev-night-shifttimezone: Asia/Kolkatastart: "0 9 * * 1-5" # 9 AM weekdaysstop: "0 20 * * 1-5" # 8 PM weekdaysattached: resource_groups: [dev-stack] resources: [ci-runner-01]Each schedule carries its own timezone, so the same organisation can run an India schedule (Asia/Kolkata) alongside a US-East schedule (America/New_York) without manual UTC offsets.
At each trigger, ZopNight calls the provider’s own API for the resource type (for example, Azure deallocate rather than stop, or node-pool scaling for EKS). For one-off exceptions to a schedule (keeping a resource up or down for a bounded window), set an override rather than editing the schedule. See Overrides.
Sequenced execution
Real workloads have order constraints: the app server can’t start before the database, and the database can’t start before its storage is attached. ZopNight’s scheduler runs group start / stop in tiers. Each member of a resource group gets an execution tier from its resource type, which you can change in the Tier column of the group’s members table.
| Action | Order |
|---|---|
| Start | Storage first, then databases, then compute, then applications. |
| Stop | The reverse: applications first, then compute, then databases, then storage. |
Each tier fires 30 seconds after the one before it. You can also set a per-resource delay in the Delay (seconds) column so a database start gets time to accept connections before the app server start fires. See Resource groups.
Create a schedule
Open Automate → Schedules → Create Schedule
Give the schedule a name, an optional description, and a timezone (IANA format, for example
Europe/London).Set the start and stop times
Define when resources start and when they stop. Each schedule can hold several start and stop times, for example weekday hours plus a weekend stop.
Attach resources or groups
Attach individual resources, resource groups, or both. Attaching a group applies the schedule to every current and future member.
Check the schedule card
The card on Automate → Schedules shows the next run, the 24-hour on/off bar, the estimated saving, and the attached resource and group counts.
To take a resource off a schedule, detach it (one at a time or in bulk). To change the policy for everything attached, edit the schedule.
Production-safe overrides
Two mechanisms keep production resources from being stopped accidentally:
- Overrides: set an override on a specific resource or resource group to Keep Running (block any scheduled stop) or Force Stop (block any scheduled start) for a defined time window. Overrides are time-bounded, with no maximum duration: each one needs an end time in the future. An override takes effect as soon as it is set: Keep Running starts the resource and Force Stop stops it, without waiting for the next scheduled run. See Overrides for the full behaviour.
- K8s system namespaces: at the executor, namespace-level Stop refuses to act on
kube-*,zopnight-*,istio-*,helm-*,default, andkube-node-leasebefore any kube call fires.
Creating or cancelling an override is captured in the audit log with actor, timestamp, and reason. Channels subscribed to override events are told when an override is set, cleared, or expires.
Smart Tags integration
Non-prod estates are often under-tagged, which makes it hard to scope a schedule to them. ZopNight’s Smart Tags derive a consistent virtual tag from a policy you define (based on a resource’s provider, region, type, instance type, or name), so you can group and filter resources even when their cloud tags are inconsistent. Smart Tags stay inside ZopNight unless you explicitly apply them to the cloud, and each derived value stays pending until you accept it. See Smart Tags.
What gets scheduled
ZopNight schedules 50+ resource types across the three clouds using each cloud’s native stop / start / pause primitive. The core set covers EC2, RDS, EKS, GCE, GKE, Cloud SQL, Azure VMs, AKS, Databricks, ECS (service scaling), ASG (capacity scaling), and Lambda (concurrency throttling).
It also covers:
| Area | Resource types |
|---|---|
| Kubernetes (EKS, GKE, AKS) | Namespaces, through namespace-level lifecycle (see below). Individual Deployments, StatefulSets and CronJobs cannot be put on a schedule on their own. |
| Databricks (AWS / Azure / GCP) | Clusters, instance pools, and SQL warehouses. See Databricks. |
| AWS additional | SageMaker Notebooks, Beanstalk Environments, EMR Serverless, App Runner (pause/resume). |
| Azure additional | MySQL Flexible, PostgreSQL Flexible, Data Explorer, Synapse SQL Pools, SQL VMs, SSIS Integration Runtimes, ML Compute. |
| Snowflake | Warehouses (suspend on stop, resume on start), on the same schedules as everything else. See Snowflake. |
ZopNight also supports namespace-level lifecycle for EKS / GKE / AKS. Stop scales every Deployment and StatefulSet in the namespace to zero and suspends every CronJob (saving prior replicas, HPA, and PDB); Start restores them. System namespaces (kube-*, zopnight-*, istio-*, helm-*, default, kube-node-lease) are rejected at the executor before any kube call.
Troubleshooting
A schedule is attached but the resource never stops
Check the cloud account’s permission level. On a read-only account a schedule can be attached, but ZopNight refuses every start and stop before any cloud call. Switch the account to Read + Write in Settings → Cloud Accounts; the change applies to running schedules without a restart.
A scheduled run shows as skipped
The resource was already in the target state (for example, already stopped when the stop fired), so there was nothing to do. Skipped runs are left out of the schedule success rate rather than counted as missed.
A namespace stop was refused
System namespaces (kube-*, zopnight-*, istio-*, helm-*, default, kube-node-lease) are never stopped. Schedule an application namespace instead.
Group members started in the wrong order
Scheduled runs on a group follow its tiers and delays; the group’s Start all applies member delays but not the tier order, and bulk start from the inventory follows neither. Change the member’s Tier, or add a Delay (seconds) on the dependent resource, in the group’s members table.