Cloud Scheduler
Managed cron that calls HTTP, Pub/Sub or App Engine targets on a schedule.
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| accelerator | enum | none | gpu | asic | no | none | inherited |
| attemptDeadlineMinutes | integer | — | no | 3 | inherited |
| concurrency | integer | — | no | — | inherited |
| fanoutStrategy | enum | none | push | pull | hybrid | no | none | inherited |
| fanoutThreshold | integer | — | no | — | inherited |
| idempotent | boolean | — | no | false | inherited |
| instances | integer | — | no | — | inherited |
| managed | boolean | — | no | false | ▸ true |
| maxBackoffSeconds | integer | — | no | 3600 | inherited |
| maxDoublings | integer | — | no | 5 | inherited |
| minBackoffSeconds | integer | — | no | 5 | inherited |
| rateControl | enum | none | fixed | aimd | no | none | ▸ none |
| retryCount | integer | — | no | 0 | inherited |
| schedule | string | — | no | — | inherited |
| timeZone | string | — | no | UTC | inherited |
| trigger | enum | queue | stream | schedule | batch | manual | yes | — | ▸ schedule |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
Pure push fan-out over a social graph is brutal at the tail: one post from an account with millions of followers becomes millions of cache writes. A follower threshold above which readers merge at read time bounds that write amplification.
- — all of these hold:
- — the node's `fanoutStrategy` is "push"
- — the node's `fanoutThreshold` has no value
- — the design contains a node of kind graph-database
One worker pool consuming several queues lets a slow or poisoned queue starve the others. That is precisely what the design's per-queue isolation requirement forbids.
- — all of these hold:
- — the node has more than 1 incoming edge from a queue
- — the design requirement `isolation.perQueue` is true
A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.
- — all of these hold:
- — the node's `stateless` is false
- — the node sits inside exactly 1 availability-zone group
- — this does not hold:
- — the node sits inside at least one cell group
nodes:
- { id: "cloud-scheduler", component: "google-cloud-scheduler" }# yaml-language-server: $schema=../../schema/component.schema.json # Google Cloud Scheduler job: managed cron. Per "Cron job schedules" the default time zone is UTC, and per # the jobs REST reference an HTTP target has a 3-minute attempt deadline, retryCount defaults to 0 (a failed # attempt is not retried, it just runs again on schedule) with 5s to 1h backoff and 5 maximum doublings. schemaVersion: "1" type: "component" id: "google-cloud-scheduler" kind: "worker" provider: "gcp" docs: "https://cloud.google.com/scheduler/docs/reference/rest/v1/projects.locations.jobs" defaults: managed: true trigger: "schedule" rateControl: "none" properties: timeZone: type: "string" default: "UTC" attemptDeadlineMinutes: type: "integer" default: 3 retryCount: type: "integer" default: 0 minBackoffSeconds: type: "integer" default: 5 maxBackoffSeconds: type: "integer" default: 3600 maxDoublings: type: "integer" default: 5