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

オープン
#1,916 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
21

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MobilityData/mobility-feed-api のほかの issue

MobilityData/mobility-feed-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。