Zero-Downtime deployments

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by tracing how flakelet starts and stops services and how it communicates with the HTTP proxy; the issue does not name specific files or tests. The proposed work involves running old and new instances side by side, checking the new instance's health, and routing traffic only after it succeeds. Done means a deployment can switch versions without downtime and stop the old instance only after traffic has moved.

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

Descrizione

Do you think it would be possible to add zero-downtime deployments to this?
What I mean by this that it allows the new version to start alongside the old version, then if the healthcheck succeds traffic is routed to the new version and the old version is only then stopped.

The tricky parts in this are:

  • allow two instances of the services to listen on the same port (probably solved by each one running it's own namespace)
  • from the outside, each version is accessible through a different port or IP which the flakelet service would need to keep track of and somehow communicate it to the http proxy (this would probably be possible by some http contract magic)

I have services that i update multiple times a day and i don't want to have a downtime each time.
Currently, we do this with kubernetes, but i'm looking for a simpler solution.

Lingua principale
Rust
Stelle
50
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 Mic92/flakelet

Tutte le issue di Mic92/flakelet

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.