command
Version:
v0.0.0-...-19218e7
Opens a new window with list of versions in this module.
Published: Jul 16, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
RouteViews Archive Converter
Deploy to App Engine (Recommended)
App Engine has a much larger maximum timeout (24 hours) and can be integrated
with Cloud Tasks.
To deploy, get into this directory and run gcloud app deploy
.
Deploy to Cloud Run
- Build the image from the root directory. (TODO: use docker-decompose.yaml)
$ docker build -f cmd/converter/Dockerfile . -t us-docker.pkg.dev/public-routing-data-backup/cloudrun/rv-converter:latest
- Don't forget to upload it to the registries:
docker push
us-docker.pkg.dev/public-routing-data-backup/cloudrun/rv-converter:latest`
- Deploy the image by setting the output bucket
BIGQUERY_BUCKET
for
converted updates.
$ gcloud run deploy rv-converter \
--image us-docker.pkg.dev/public-routing-data-backup/cloudrun/rv-converter:latest \
--cpu 2 --memory 4Gi \
--concurrency 2 \
--update-env-vars BIGQUERY_BUCKET=routeviews-bigquery
- [Only need once] Hook up a PubSub channel with the Cloud Run service
through PubSub (see
instructions).
- Acknowledgement deadline is set to 300s to prevent too many retry
messages.
- [Only need once] Hook up a PubSub channel with the archive source
bucket (see
instructions).
- [Only need once] Set up recurrent data transfer in BigQuery (see
instructions)
- [Only need once] Set up log-based alerts (TBD).
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.