Skip to content

Add autoscaling cookbook recipe#475

Open
samdark wants to merge 1 commit into
masterfrom
cookbook-autoscaling
Open

Add autoscaling cookbook recipe#475
samdark wants to merge 1 commit into
masterfrom
cookbook-autoscaling

Conversation

@samdark
Copy link
Copy Markdown
Member

@samdark samdark commented May 30, 2026

Adds a deployment cookbook article for preparing Yii applications for autoscaling: stateless web replicas, shared sessions/cache/uploads, health endpoints, runtime path expectations, migration flow, and worker/scheduler separation. Updates both cookbook navigation locations.

Verification:

  • Reproduced the health action in a fresh yiisoft/app template at /tmp/yii-docs-upload-app
  • php verify-health-check-action.php
  • php -l src/Web/Health/HealthCheckAction.php
  • php -l verify-health-check-action.php
  • vendor/bin/phpstan analyse src/Web/Health/HealthCheckAction.php verify-health-check-action.php --no-progress
  • vendor/bin/psalm --no-progress --output-format=console src/Web/Health/HealthCheckAction.php verify-health-check-action.php
  • npx markdown-link-check src/cookbook/deployment/autoscaling.md
  • npm run build

Copilot AI review requested due to automatic review settings May 30, 2026 11:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new cookbook recipe describing how to prepare a Yii3 application for autoscaling (stateless web instances, shared sessions/cache/uploads, health endpoints, runtime path expectations, single-source migrations, and separation of web/worker/scheduler roles), and wires it into the English cookbook index and VitePress sidebar.

Changes:

  • New cookbook article src/cookbook/deployment/autoscaling.md with guidance and example code.
  • English cookbook index updated to list the new article.
  • English VitePress cookbook sidebar updated with the new entry.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/cookbook/deployment/autoscaling.md New autoscaling recipe with code samples and checklist.
src/cookbook/index.md Adds link to the new recipe in the English index.
src/.vitepress/config.js Adds the new recipe to the English cookbook Deployment sidebar.

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.

2 participants