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

[Epic] Improve the data migration process b/w prod and stage #2216

Open
1 of 2 tasks
harshad16 opened this issue Dec 20, 2021 · 7 comments
Open
1 of 2 tasks

[Epic] Improve the data migration process b/w prod and stage #2216

harshad16 opened this issue Dec 20, 2021 · 7 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@harshad16
Copy link
Member

harshad16 commented Dec 20, 2021

Is your feature request related to a problem? Please describe.

Moving data from stage to prod in an easier way.
Currently, we take the whole dump of the stage to prod.
The idea is to take only the required table to the prod and stop all the ingestion in the prod and make the prod DB read-only.

Additional context

  • If users request a new package, where would we ingest the data?
    In the thoth-station/support, we have issues through which the user can request the package and we would ingest in the stage.
  • How to make sure the schema is consistent with the suggested solution?
    Schema is updated on release date based on the requirement, management-API has a method to update the schema and is different from the data migration. It is done before the migration.
  • Handling on the transitive dependent tables?
    To experiment

Acceptance criteria

@harshad16 harshad16 added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 20, 2021
@sesheta sesheta added the needs-triage Indicates an issue or PR lacks a `triage/...` label and requires one. label Dec 20, 2021
@harshad16
Copy link
Member Author

/triage accepted
/priority important-soon
/sig devops
/sig knowledge-graph
/sig docs

@sesheta sesheta added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/devops and removed needs-triage Indicates an issue or PR lacks a `triage/...` label and requires one. labels Dec 20, 2021
@sesheta sesheta added sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. and removed sig/devops labels Jan 19, 2022
@sesheta sesheta added sig/user-experience Issues or PRs related to the User Experience of our Services, Tools, and Libraries. sig/stack-guidance Categorizes an issue or PR as relevant to SIG Stack Guidance. and removed sig/docs labels Mar 2, 2022
@harshad16
Copy link
Member Author

The stage is where data aggregation. every week update in the stage.
Which would be used to update prod.

Experiments:

  • get the latest db dump to local system.
    aws s3 --endpoint https://s3.upshift.redhat.com/ cp s3://thoth/data/ocp4-stage/graph-backup/<latest_date> /tmp/aws-dump

can get the latest_date: aws s3 --endpoint https://s3.upshift.redhat.com/ ls s3://thoth/data/ocp4-stage/graph-backup/
NOTE: requires secrets and VPN.

@Gregory-Pereira
Copy link
Member

/assign

@Gregory-Pereira
Copy link
Member

Gregory-Pereira commented Apr 5, 2022

  • identify which tables are to be restored ("update")
    • solvers
    • reach out to thoth-team on this for clarification
    • identify the restoration order, in case any rows depend on other table's rows
    • take a dump of production which we will use to emulate a production environment
    • identify additional issues and document them

@codificat
Copy link
Member

/remove-sig user-experience
/remove-sig stack-guidance

@sesheta sesheta removed sig/user-experience Issues or PRs related to the User Experience of our Services, Tools, and Libraries. sig/stack-guidance Categorizes an issue or PR as relevant to SIG Stack Guidance. labels Apr 19, 2022
@harshad16 harshad16 changed the title Improve the data migration process b/w prod and stage [Epic] Improve the data migration process b/w prod and stage Apr 28, 2022
@harshad16 harshad16 added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Apr 28, 2022
@sesheta
Copy link
Member

sesheta commented Jul 31, 2022

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@sesheta sesheta added lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. and removed lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. labels Jul 31, 2022
@harshad16
Copy link
Member Author

/remove-lifecycle stale
/lifecycle frozen

@sesheta sesheta added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Aug 9, 2022
@harshad16 harshad16 moved this to Epics in SIG-DevSecOps Sep 22, 2022
@codificat codificat moved this to 🆕 New in Planning Board Sep 24, 2022
@codificat codificat moved this from 🆕 New to 🔖 Next in Planning Board Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: 🔖 Next
Status: 🗺 Epics
Development

No branches or pull requests

4 participants