Document silverback:api-components:warm-http-cache (warming the API cache before a pod takes traffic)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kubernetes, php
- Lĩnh vực
- documentation
Hướng nghiên cứu
Start with the command's source and options in the linked bundle PR (components-web-app/api-components-bundle#443, issue #442) and the existing API deployment / HTTP cache docs. Add a section for silverback:api-components:warm-http-cache covering purpose, each option with its default, the skip rules, the exit codes, and the note that --base-url must reach Caddy rather than PHP. Done when the section matches the command's actual flags and behaviour in that PR and the Kubernetes postStart example is included.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bundle: components-web-app/api-components-bundle#442, PR components-web-app/api-components-bundle#443.
New console command silverback:api-components:warm-http-cache to document in the API section (deployment / HTTP cache):
- Purpose: a new API pod starts with an empty Souin cache and cold PHP. The command requests, through the cache, what SSR fetches for each live public route (route lookup,
resource_manifest, every resource in the manifest; only the lookup for a redirect), so the first visitors hit a warm cache. Intended for a time-limited KubernetespostStarthook (components-web-app/components-web-app#160), e.g.bin/console silverback:api-components:warm-http-cache --max-time=240 || true. - Options:
--base-url(defaulthttp://localhost, the Caddy in the pod),--path(repeatable),--limit(shortest paths first),--concurrency(default 2),--max-time(stops starting requests, still exit 0),--timeout(per request, default 30s),--accept-encoding(defaultgzip, ornone). - Behaviour: anonymous requests only; draft, scheduled, ancestor-gated and
route_securityroutes are skipped. Exits 0 whatever the responses; invalid options exit 2. Prints requests, cache hits/misses, failures and the slowest requests;-vlists failures. - Why the headers matter: entries are only useful under SSR's exact cache key, so the command sends the module's
Accept,preloadandpathheaders andgzipencoding, and uses a dotless host so it maps toBROWSER_SERVER_NAME. Worth a note that--base-urlmust reach Caddy, not PHP directly, or nothing is cached.
- Ngôn ngữ chính
- Vue
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của components-web-app/docs
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
components-web-app/docs#234 ·
-
Document opening the add page data form with defaults (?parentPage, ?parentPageData, ?template)Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
components-web-app/docs#230 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
components-web-app/docs#228 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
components-web-app/docs#227 ·
-
CI/CD: deploys run a pinned image promoted to :staging / :canary / :production (template #164)Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
components-web-app/docs#235 ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
andromarces/agent-loops#886 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 82/100
eli-alvarado/us-watchlist-alerts#14 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
configuration documentation from-review-extraction severity:nit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
LearningCircuit/local-deep-research#7460 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
cathrynlavery/diagram-design#443 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
review-followup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
griffinwork40/agent-afk#3868 ·
Maintainer thường phản hồi trong vòng 1 ngày