Remote Recovery for data guarding

简介: PolarDB-for-PostgreSQL特性文档

Remote Recovery for data guarding

PostgreSQL introduces full page write mechanism to avoid inconsistency in case of system crashes. However, full page writes can amplify writes and reduce performance. Remote Recovery is designed to fetch full page from the mirror node (standby or master) during recovery to prevent torn pages in the absence of full page write. As a result, full page write can be turned off for reduced IO and improved performance.

Specifically, PolarDB PG writes a special bit in WAL when a page is first modified since the last checkpoint. During recovery, upon encountering a special bit that indicates a remote fetching is needed, a PolarDB PG database instance would fetch the page from its mirror instance and restore it locally before replaying later modifications.

Remote recovery also can leverage our parallel WAL redo framework to fetch pages and to relay WAL records in parallel.


How to use

  1. You can put a remote_recovery.conf in the data directory to support remote recovery. The format of remote_recovery.conf is same as recovery.conf. You should specify the mirror node address for building connection. For example, you can write "standby_conninfo = 'host=xx port=xx user=xx password=xx application_name=standby'" into remote_recovery.conf.
  2. The parameter of max_wal_senders in the mirror node should be configured to be larger than max_parallel_replay_workers in the recovering node.
  3. If the mirror node is a backup node, it should turn on hot_standby for accepting connections from the recovering node. checkpoint_sync_standby should be turned on to guarantee that the mirror node has full WAL modifications once a checkpoint is done.


相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍如何基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
相关文章
|
人工智能 搜索推荐 图形学
ChatAnyone:阿里通义黑科技!实时风格化肖像视频生成框架震撼发布
阿里巴巴通义实验室推出的ChatAnyone框架,通过高效分层运动扩散模型和混合控制融合技术,实现高保真度、自然度的实时肖像视频生成。
491 13
ChatAnyone:阿里通义黑科技!实时风格化肖像视频生成框架震撼发布
|
存储 SQL 开发框架
企业人事管理系统的设计与实现(论文+源码)_kaic
。基于 C/S 框架分析的人事管理系统 中存在的问题,采用J2EE 和 b/S 框架进行模型设计、系统分析和系统开发,层模型、 显示层和层控制器满足联邦战略计划 J2EE 服务器的要求。此外,该技术还应基于物理 层设计和基于 J2EE 逻辑的数据库应用,以及 Arwin 蜂窝数据库和信息管理系统的选择。 基于需求分析 J2EE 的标准化建模技术、数据库技术、人事管理项目应用和人事管理系 统的实现。
|
API
【threejs教程】threejs中的边边角角:几何体详解
【8月更文挑战第6天】threejs中的几何体详解
711 4
【threejs教程】threejs中的边边角角:几何体详解
|
前端开发 JavaScript 应用服务中间件
Vite配置Proxy代理解决跨域问题
Vite配置Proxy代理解决跨域问题
4184 0
|
存储 Linux 开发工具
成功解决centos7安装docker时 报缺 少container-selinux和fuse-overlayfs包
成功解决centos7安装docker时 报缺 少container-selinux和fuse-overlayfs包
6450 1
成功解决centos7安装docker时 报缺 少container-selinux和fuse-overlayfs包
|
SQL 存储 测试技术
怎么找出解析失败的sql
原创如有错误请指出本文由我和公司同事问心共同测试分析完成。 很多时候我们会有这样一个误区,语法错误或者对象不存在应该在语法语义检查这个步骤就结束了,怎么还会存在共享池里面呢?带着这个几个问题我们做几个简单的测试。
1303 0
|
应用服务中间件 nginx
|
机器学习/深度学习 人工智能 自然语言处理
新贵Claude 3家族强势登场,AI领域掀起新一轮浪潮!
新贵Claude 3家族强势登场,AI领域掀起新一轮浪潮!
370 0
|
6天前
|
人工智能 数据可视化 安全
王炸组合!阿里云 OpenClaw X 飞书 CLI,开启 Agent 基建狂潮!(附带免费使用6个月服务器)
本文详解如何用阿里云Lighthouse一键部署OpenClaw,结合飞书CLI等工具,让AI真正“动手”——自动群发、生成科研日报、整理知识库。核心理念:未来软件应为AI而生,CLI即AI的“手脚”,实现高效、安全、可控的智能自动化。
18200 12
王炸组合!阿里云 OpenClaw X 飞书 CLI,开启 Agent 基建狂潮!(附带免费使用6个月服务器)