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

Đang mở
#1,916 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, gcp, terraform
Lĩnh vực
cloud, devops, infrastructure

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
34
Fork
7
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
21

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MobilityData/mobility-feed-api

Tất cả issue của MobilityData/mobility-feed-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.