Menu

How to schedule OCI instance stop and start after hours
📰

How to schedule OCI instance stop and start after hours

DEV Community: cloud·Gonzalo Gjuka·14 days ago
#irbWPmAL
#devtocloud#devto#dev#schedule#instance
Reading 0:00
15s threshold

Stopping OCI instances after hours has a native answer today: Resource Scheduler, an Oracle Cloud Infrastructure service that, according to its release notes, shipped on May 21, 2024. Before that, the recipe was a cron job running the OCI CLI on some server. Oracle still documents both options. This post covers what a stopped instance stops billing, how each option is set up, which permissions it needs and when something else makes sense.

What a stopped OCI instance stops billing

Before the schedule, the math. According to the "Resource Billing for Stopped Instances" page of the OCI documentation, it depends on the shape:

Standard shapes: stopping the instance pauses billing. The stopped instance still counts toward your service limits. The table in Oracle's Compute FAQ includes the standard flexible shapes, billed per OCPU and per GB of memory.

Dense I/O and HPC: the stopped instance keeps billing, because it preserves its NVMe storage.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.