Enterprise Server
Enterprise Upgrade Guide (v4)
Managed PostgreSQL 12 → 16 migration guide
- Upgrade database instance to Postgres16 from your respective cloud provider console
- Scale down db dependent workload
- Run
chmod +x scale-down-db-workloads.sh
from the node/machine that you use to access kubernetes - Run
./scale-down-db-workloads.sh
- Run
- Change password for the existing db user used by DeepSource.
Changing the password is required to make sure the latest auth_type is being used.
- Check for updates from Admin console and edit the config for DeepSource Enterprise Server (v3.31.0) with new password and select auth_type as
sha-scram-256
and save the config.- Select “Configure” for the latest version with status “pending config”
- Select “scram-sha-256” as Database Authentication Type under Database Configuration
- Update the password field with the newly generated password
- Save config
- Deploy the latest edited version
Embedded cluster upgrade
- Create two new instances with the following system requirements in the same subnet as the existing nodes
- 16 CPU cores
- 32 GiB memory
- 150 GiB disk
- Operating System: Ubuntu 22.04 recommended. We do support all the OS’es listed
System requirements
in https://kurl.sh/deepsource-fowl-stable-v4
- Follow this guide to install latest Kubernetes on both the nodes: https://docs.deepsource.com/docs/installation-standalone-cluster
- Proceed with installing v4, make sure you have the license file on local.
DeepSource enterprise server upgrade (v3 → v4)
- Check for updates
- Select v4.x.x
- Click on configure
- Get secret of existing deepsource
- Dump all secret to a file for backup
- VCS Settings
- Github Cloud
- Github Enterprise
- Gitlab
- Bitbucket Cloud
- Bitbucket Data Center
- Azure DevOps
- Google Source Repositories
- Access Control Settings
- Database Settings
- Networking Settings
- Integration Settings
- Advanced Configurations
- Configure the new settings using the output from the above commands
- Save and Deploy
- Update DNS entry (for embedded clusters)
- Make sure DeepSource is up and running
- Follow minio migration guide
Minio Migration
Embedded Cluster (Cluster Upgrade with new cluster)
- Run the following command in old cluster by SSH’ing into old application node:
- Run the following command in new cluster by SSH’ing into new application node
- Run from your local make sure you can access both the instances
- Open port
9002
for communication between your local and both the new and old nodes. - Install minio-client on your local by following the guide: https://min.io/docs/minio/linux/reference/minio-mc.html#install-mc
- Run the migration script:
- For the
access_key
andsecret_key
refer to the output of the commands you ran earlier on both the nodes