Idle shutdown: 'please wait' interstitial while a container starts

Aperta
#531 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, nginx
Ambito
backend, web-dev

Direzione di ricerca

Read the Idle Container Shutdown epic and the wake-on-request API work first; this issue depends on that API. The payload names the nginx error-page server at unix:/run/nginx-error-pages.sock but no repository files or tests. Done means HTML requests see an auto-refreshing startup page, API clients receive 503 with Retry-After, existing 502/504 pages stay unchanged, and both public and auth-required services work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement idle-shutdown

Part of the Idle Container Shutdown epic. Depends on the wake-on-request API.

Summary

A "please wait, starting your container" interstitial served by the proxy for HTTP services whose container is waking from idle, which auto-refreshes once the container is available.

Details

  • Dedicated status signal: use a distinct response (e.g. 503 + marker header) for "starting" so it doesn't collide with the existing 502/504 error pages (frozen/OOM page from #435).
  • HTML only: requests that accept text/html get the interstitial; other clients get 503 with Retry-After.
  • Static HTML/JS served by the existing nginx error-page server (unix:/run/nginx-error-pages.sock).
  • The page polls a status endpoint (manager or agent) for the container/service and reloads the original URL once it's running and accepting connections.
  • Make sure it plays correctly with auth_request / oauth2 redirects on auth-required services.

Acceptance criteria

  • Browser hitting an idle-stopped service sees the interstitial, then lands on the app automatically.
  • API clients receive 503 + Retry-After.
  • Existing 502/504 pages unchanged.
  • Works for auth-required and public services.
Lingua principale
JavaScript
Stelle
10
Fork
6
Merge medio
5g 14h
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mieweb/opensource-server

Tutte le issue di mieweb/opensource-server

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.