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

src migrate early WIP #876

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

CristinaBirkel
Copy link

@CristinaBirkel CristinaBirkel commented Oct 27, 2022

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 and s2.

@bobheadxi
Copy link
Member

bobheadxi commented Nov 25, 2022

@CristinaBirkel there is an identical effort going on in RFC 760 APPROVED: Migration processes from on-prem instances to Cloud :) I have been working on infra and tooling in https://github.com/sourcegraph/customer/issues/1525

@bobheadxi
Copy link
Member

#889 is my approach on the exact functionality in this PR for RFC 760

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 this pull request may close these issues.

2 participants