Skip to content

Conversation

@Dantemss
Copy link
Member

@Dantemss Dantemss commented Dec 18, 2025

https://openstax.atlassian.net/browse/CORE-771

Prerendering was being inefficient for large instances because the daemon strategy only creates one task per instance.
The replica stategy (the default) requires a desiredCount of tasks.
After changing that, the stack was failing to create because it was waiting for all 256 tasks to start.
So instead we start with 1 task, then scale it after the stack is created, so the stack creation doesn't get stuck waiting for all tasks to be created.
This required adding a new ecs:UpdateService permission to concourse.
While deploying that, it also deployed an old change that was already merged that changed the project tag that concourse is allowed to put on the stack from Unified to DISCO.
So that changed here as well.

@Dantemss Dantemss self-assigned this Dec 18, 2025
@TomWoodward TomWoodward temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 18, 2025 16:50 Inactive
@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 18, 2025 17:13 Inactive
@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 18, 2025 18:17 Inactive
@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 18, 2025 20:38 Inactive
@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 18, 2025 20:49 Inactive
@Dantemss Dantemss changed the title Fixed prerendering being inefficient with large instances Fixed prerendering again Dec 18, 2025
@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 18, 2025 21:46 Inactive
@Dantemss Dantemss marked this pull request as ready for review December 18, 2025 23:32
@Dantemss Dantemss requested a review from a team as a code owner December 18, 2025 23:32
@Dantemss Dantemss requested a review from TomWoodward December 18, 2025 23:32
@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 22, 2025 12:29 Inactive
@Dantemss
Copy link
Member Author

4 GB per prerendering task seems enough to prevent workers from getting oomkilled.

@Dantemss Dantemss temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 22, 2025 13:21 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 22, 2025 20:01 Inactive
@TomWoodward TomWoodward temporarily deployed to rex-web-more-prerenderi-5ds6g5 December 23, 2025 13:41 Inactive
@Dantemss Dantemss merged commit d245b3e into main Jan 5, 2026
7 of 8 checks passed
@Dantemss Dantemss deleted the more-prerendering branch January 5, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants