Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR is not to merge, just to add some context around this branch in case it's useful.
Link to RFC
Link to Slack thread with customer interest
I used this view on Looker to determine what sort of deployment the interested customers are using. Found it was mostly kubernetes, but also some docker compose, pure docker, and docker container deployments. I think it's important to understand where this tool needs to be run, and what kinds of differences there might be between deployments.
My plan was to use the
debug
tools (debug-server
,debug-compose
,debug-kube
) to help serve as a template as to how to interact with the different types of deployments. I started with single docker since it was easy to run locally and seemed the most straight-forward to start with.Migration docs
Docs for database dump for kubernetes
Docs for db backup for single docker
(I will also add that some of the docs are missing mention of the codeinsights-db, but that should be backed up too.)
I didn't get very far with the implementation, and ran into an issue where it looks like
pg_dump
was not being found as a command. I was investigating how to fix that, but had not yet found a solution.There is also the piece of uploading the output to the cloud, which I had not started on.
Test plan
I was planning to do some similar testing as done in this PR to do initial testing on a variety of environments. I think other useful environments to test on could be
k8s
ands2
.