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

未关闭
#1,916 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, gcp, terraform

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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).

主要语言
Python
星标
34
派生
7
平均合并
2 天 22 小时
30 天内合并 PR
21

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MobilityData/mobility-feed-api 的其他 Issue

查看 MobilityData/mobility-feed-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。