Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Architecture v3: couch2pg + postgres #56

Closed
Hareet opened this issue Feb 20, 2020 · 6 comments · May be fixed by #57
Closed

Architecture v3: couch2pg + postgres #56

Hareet opened this issue Feb 20, 2020 · 6 comments · May be fixed by #57
Assignees

Comments

@Hareet
Copy link
Member

Hareet commented Feb 20, 2020

To satisfy: medic/cht-core#6189

We should initialize Postgres with custom parameters for 1 project.

  • CI publishes couch2pg docker image
  • docker-compose consists of adding couch2pg + a postgres container to existing medic-net network
  • initialization setups up postgres accurately
@Hareet Hareet self-assigned this Feb 20, 2020
@Hareet
Copy link
Member Author

Hareet commented Apr 1, 2020

@yrimal
There's a lot of people who access our Postgres Server. I want to make sure all the use-cases still function or can be adequately substituted while this is re-architected in a different network.

Can you describe what you are doing when you access the server (crons, scripts) related to postgres, and what's typical use for partners, since I see a lot of partner type logins present?

Thanks

@1yuv
Copy link
Member

1yuv commented Apr 2, 2020

Hi @Hareet ,
For impact monitoring, impact team creates certain views and functions on each database. It's not always the same query for all database so we can't containerize it. Once impact functions have been installed on these databases, we've a dblink connection set from dwh_impact database that queries every databases to pull updated data every other night.

Apart from this, when there's a need to query database for other purposes, then also we need to access those databases.

@1yuv
Copy link
Member

1yuv commented Apr 2, 2020

For partner users, only some (probably just lg) have direct access to the database. But, at least one account will still need access from klipfolio for partner facing dashboards. If things are not clear, I can talk over call as well.

@Hareet
Copy link
Member Author

Hareet commented Apr 12, 2021

Testing:

  • Be able docker-compose medic-os container or arch v3 containers (docker-compose)
  • Launch couch2pg + postgres containers after medic-os is initiliazed, and verify data is inserted to postgres
  • Entrypoints work in restarts, crashes and initial setup

@Hareet
Copy link
Member Author

Hareet commented Apr 12, 2021

We have labeled this ticket as 5 points for SRE Sprint 2

Unable to share medic-infrastructure labels with this repo.

This was referenced Jul 9, 2021
@nomulex nomulex assigned nomulex and unassigned Hareet Jul 9, 2021
@Hareet
Copy link
Member Author

Hareet commented Sep 22, 2021

completed!

@Hareet Hareet closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants