Skip to content

Commit 3be4d5f

Browse files
committed
Fix docs
1 parent df78ef4 commit 3be4d5f

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

cuebot/src/main/resources/conf/ddl/postgres/migrations/V45__show_scheduler_managed.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
-- practice, so behavior is unchanged.
1111
--
1212
-- recalculate_subs() is rewritten here (CREATE OR REPLACE) so that the
13-
-- 2-hour maintenance task skips scheduler-managed shows, per
14-
-- design/SCHED_REDIS_DECISIONS.md Q9a. The body is otherwise identical to
13+
-- 2-hour maintenance task skips scheduler-managed shows, per the
14+
-- "recalculate_subs() show-awareness" section of
15+
-- docs/_docs/developer-guide/redis-accounting.md. The body is otherwise identical to
1516
-- V20__recalculate_subs_gpu.sql with two narrow changes:
1617
-- 1) the initial UPDATE-to-zero of subscription is restricted to shows
1718
-- with b_scheduler_managed = false, so Rust-owned rows are never

docs/_docs/getting-started/deploying-scheduler.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,19 @@ We recommend a **gradual migration** approach:
274274

275275
#### Phase 1: Test with One Cluster
276276

277-
1. **Deploy scheduler** for a single, low-priority allocation:
277+
1. **Deploy scheduler** covering **every** allocation of the pilot show. Because
278+
`show.b_scheduler_managed` is a whole-show toggle (`cueadmin -setSchedulerManaged`,
279+
see [Per-show Scheduler Ownership](#understanding-exclusion-configuration)), the
280+
scheduler's `alloc_tags` must list all of `testshow`'s allocations before you flip
281+
it — otherwise Cuebot stops dispatching the show while the scheduler ignores any
282+
allocation it isn't configured for. If `testshow` only uses the `test` allocation:
278283
```bash
279284
cue-scheduler --facility spi --alloc_tags=testshow:test
280285
```
286+
If it spans more, list them all (for example `--alloc_tags=testshow:test,testshow:general`).
281287

282-
2. **Hand the show to the scheduler**:
288+
2. **Hand the show to the scheduler** (only after the scheduler covers the show's full
289+
allocation set):
283290
```bash
284291
cueadmin -show testshow -setSchedulerManaged true
285292
```

0 commit comments

Comments
 (0)