Migrate PostgreSQL Databases Using pglogical

Introduction To reduce the latency of database queries, we have decided to migrate our Postgres database from one zone to a zone closer to our application. TLDR To minimize application downtime, we have chosen continuous migration using pglogical. Change config We need to modify the database configuration, enable the pglogical extension, and restart the instance. If you have multiple databases to migrate, please check worker registration failed for configuring max_worker_processes

Fix `docker exec` Operation Not Permitted

Issue 服务器执行 docker exec 失败 # docker exec -it user-ab107i9 sh OCI runtime exec failed: exec failed: unable to start container process: open /dev/pts/0: operation not permitted: unknown 搜索一下发现 Issue: https://github.com/moby/moby/issues/43969 Issue 中提到这个问题在 runc v1.1.4 中已经修复. 检查一下 runc 版本, 为 1.1.3, ok, 确


作为一个程序员, 平时经常使用一些开源项目, 维护一个开源项目是不容易的, 要花费很多精力在上 面, 大多数开源项目一般是作者爱心发电, 经常会在 GitHub 上看

OpenTelemetry 指东

OpenTelemetry 指东 (以 Golang 为例) OpenTelemetry OpenTelemetry is a collection of tools, APIs, and SDKs. Use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) to help you analyze your software’s performance and behavior.1 使用 OpenTelemetry 可以了解很多系统运行的信息, 这些


定时任务是业务开发中必不可少的一个系统组件, 与消息队列, 缓存, 数据库一样. 微服务架构目前 (2022) 已经是高并发, 大规模的后端最佳实践, 本文将对比业界


这里介绍三个我日常经常用到的工具, 对于需要频繁命令行操作的工作, 能带来一定效率的提升.(之 前公司内部的分享, 现在整理一下, 重新发布) fish Shell 有好