Migration
Migrating JuiceFS Metadata from Redis to PGSQL
· β˜• 3 min read
1. Why Migrate Metadata Storage from Redis to PGSQL PGSQL is cheaper Redis stores metadata in memory, while PGSQL stores metadata on disk, so the cost difference is obvious. PGSQL performance is tunable Different PGSQL services offer different performance IOPS. If you do not have a continuously high performance requirement, PGSQL is a good choice.

Migrating Docker Storage to a New Disk
· β˜• 2 min read
1. Formatting the Disk Check the new disk 1 fdisk -l Usually, the second disk is named /dev/sdb. Partition the disk 1 fdisk /dev/sdb You will be prompted to enter parameters: command (m for help):n Partition number(1-4):1 First cylinder (1-22800,default 1):Enter command (m for help):w Format the disk as ext4 1 mkfs.

Backing Up a Kubernetes Cluster with Velero
· β˜• 8 min read
1. Introduction to Velero Velero is an open-source Kubernetes cluster backup and migration tool from the heptio team (acquired by VMWare). Velero stores cluster resources in object storage. It supports AWS, Azure, and GCP object storage by default, is compatible with the S3 protocol, and can be extended to other platforms such as Aliyun OSS through plugins.

Writing Python2 and Python3 Compatible Code
· β˜• 2 min read
Python2 to Python3 is a major version update. Today, a large number of projects in production still run on Python2. But that does not mean those projects will stay on Python2 forever β€” developers also need to consider the project’s compatibility with Python3, both to make migration easier and as

How to Synchronize and Back Up a Git Repository
· β˜• 1 min read
Because the Git repository currently in use is about to become unavailable, the repository code needs to be migrated to a new Git repository. The specific procedure is as follows: Log in to the new repository and create a repository. After creation, the new repository address is: http://gitlab.your-new-domain.com/project.git Clone the old repository as a mirror locally: 1 2 3 git clone --mirror http://gitlab.