feat: deploy the GTFS validation worker as s/m/l Cloud Run services

Aperta
#1,916 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, gcp, terraform

Direzione di ricerca

Start from the existing parquet_builder_sizes deployment and parquet_builder_task_queue definitions to see how per-size Cloud Run services, queues and env vars are wired; the CI image build and the functions-python buildpack setup answer the open question about custom containers. Read #1915 for the final size numbers before setting memory and concurrency. Done means the three validator services and queues exist in var.gcp_region, are invokable only by the tasks service account, and the snapshot service is available for releases.

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

Descrizione

Describe the problem

The worker from #<2> needs one deployment per size, in the same region as the datasets bucket, so validation has no cross-region transfer.

Proposed solution
  • Build the worker image in CI and push it to Artifact Registry, tagged with the worker version and the validator version.
  • gtfs-validator-{s,m,l}-<env> Cloud Run services in var.gcp_region: concurrency 1, internal ingress, invoker limited to the tasks service account, in-memory volume per size. Start from the parquet_builder_sizes layout; set final numbers from the measurements in #1915.
  • One Cloud Tasks queue per size, like parquet_builder_task_queue.
  • Queue names exposed as env vars to callers and to the worker (for re-queueing on escalation).
  • A gtfs-validator-snapshot-<env> service built with the snapshot CLI jar, for validator releases (dev/qa, and prod only during a release).
Alternatives you've considered
Additional context

Open question: how custom container images are deployed today (functions-python uses buildpacks with no JRE).

Lingua principale
Python
Stelle
34
Fork
7
Merge medio
3g 3h
PR unite (30g)
22

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un 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 MobilityData/mobility-feed-api

Tutte le issue di MobilityData/mobility-feed-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.