NASA-IMPACT / NASA-IMPACT/veda-data
Features DB Read Replica for External Tools
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 9
- Forks
- 1
- Avg merge
- 1d 9m
- Merged PRs (30d)
- 1
Description
What
This ticket is to provide a persistent document of a RDS read replica maintained by the VEDA Data Services Team and depended upon by users of external systems built on direct database connections. This will hopefully be a way to coordinate user and maintainer needs as well as prevent unexpected outages while dependencies exist.
Contacts
| Team | Contact |
|---|---|
| Fire Tracking Lab | @mccabete, @eorland, @zebbecker |
| VEDA | @brianna-corremonte, @smohiudd, @anayeaye |
Summary
This database is a read replica of the RDS instance maintained for the VEDA Features API
- TiPg: https://developmentseed.org/tipg/
- Deployment Code: https://github.com/NASA-IMPACT/veda-features-api-cdk
- TiPg OGC API stack owning the parent database: staging.openveda.cloud/api/features/docs
The database is updated by an automated airflow DAG when new files are uploaded to staging bucket using (this step of the vector ingest DAG for details). The source files are generated in the MAAP DPS.
Some possible long term options
The data services team will maintain the RDS and loading infrastructure for the short term while longer term decisions are made. There are a couple of longer term options that should be considered (and other ideas should be raised).
- The services built on direct database access transition to using the OGC Features API/Tiles API (this lets the owning team continue standard operations including redirecting urls to new backends when legacy systems are replaced).
- The Wildfire Tracking Lab team or ESRI team deploys a copy of the TiPg backend and Airflow system to persist an in-account database for the ESRI tooling. Both projects have open source code that includes IAC for standing up the database and services in an AWS account.
Actions
- Stakeholders and developer sync on migration to OGC APIs (are there TiPg changes that would support this??) and yearly fires record reset in Nov/Dec 2025
- Stakeholders and developer sync to plan sunsetting this temporary solution Jan/Feb 2026
Internal Notes:
- This read replica is hosted in smce-veda us-west-2
- The Manually creating a read replica database section of the operations wiki describes how the replica was created and configured
- The connection parameters are stored in the AWS Secrets Manager veda-featuresdb-read-replica-1adbtW
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the operations wiki section on manually creating a read replica, the linked vector ingest handler.py, and the TiPg deployment and API references. Done means documenting the replica dependencies and recording the stakeholder plans for migration to OGC APIs and eventual sunsetting of the temporary solution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, databases, documentation
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100