Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
COMPOSE_PROFILES=temporalflag; leave its code and documentation unchanged.t3a.medium(4 GiB) tot3a.small(2 GiB), lower the host memory preflight to 1.75 GiB, and update the Terraform test and optimized capacity guidance.Verification
actionlint .github/workflows/optimized-verify.ymlgit diff --checkbash -n scripts/optimized/install-release.sh infra/optimized/runtime/bootstrap.shbash scripts/optimized/validate-isolation.shnode --test scripts/capacity/*.test.mjs(11 passed)terraform fmt -check -recursive infra/optimized/terraformresearch-worker, the opt-in profile includes it, and Valkey has no published port.bun install --frozen-lockfile,bun run lint,bun run typecheck,bun run test(213 passed),bun run buildwith CI fixture environment, andbun audit --productionpassed locally.Migration impact
No database or schema migration. A later optimized application deployment restarts Compose services and removes the existing research worker while retaining the Valkey volume. A separate, reviewed Terraform apply of the 2 GiB target stops and starts the EC2 host and causes downtime. Private Terraform variables may override the repository default.
Rollout
optimized-applicationwithdeployfrommain.instance_typeoverride. Dispatchoptimized-infrastructurewithplanfrommainand verify an in-placet3a.mediumtot3a.smallupdate with no unrelated changes. Only then dispatchapply, review its saved plan, and approve the production environment.Rollback
For app configuration, revert and redeploy the prior optimized release configuration; that would restore the earlier Valkey behavior, so prefer a forward correction if Valkey needs adjustment. For capacity, set the optimized instance type back to
t3a.mediumand apply a reviewed Terraform plan; the host stops and starts again. The legacy Next.js update can be reverted separately if it causes a regression, subject to the dependency audit gate.Deferred work
This PR does not deploy to production, run a production report, collect the 24-hour memory series, or resize the live instance. Those operational steps require a merged release and reviewed production changes.