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

Abierto
#531 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, nginx
Área
backend, web-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
JavaScript
Estrellas
10
Forks
6
Merge medio
5 d 14 h
PR fusionados (30 d)
5

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de mieweb/opensource-server

Todos los issues de mieweb/opensource-server

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.