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数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
相关文章
|
存储 Linux 开发工具
成功解决centos7安装docker时 报缺 少container-selinux和fuse-overlayfs包
成功解决centos7安装docker时 报缺 少container-selinux和fuse-overlayfs包
6823 1
成功解决centos7安装docker时 报缺 少container-selinux和fuse-overlayfs包
|
1月前
|
人工智能 运维 供应链
中小企业网络安全风险现状与全维度防御体系研究
本文基于ESET《2026中小企业网络就绪指数》调研(覆盖13国4400家中小企业),揭示45%企业年内遭网安事件,钓鱼攻击为首害,AI恶意程序成最大顾虑。针对资金少、缺人才、终端散等痛点,提出轻量化闭环防御体系:含Python钓鱼检测脚本、分层预算规划、场景化培训及按需外包策略,兼顾落地性与实效性。(239字)
106 2
|
人工智能 搜索推荐 图形学
ChatAnyone:阿里通义黑科技!实时风格化肖像视频生成框架震撼发布
阿里巴巴通义实验室推出的ChatAnyone框架,通过高效分层运动扩散模型和混合控制融合技术,实现高保真度、自然度的实时肖像视频生成。
684 13
ChatAnyone:阿里通义黑科技!实时风格化肖像视频生成框架震撼发布
|
API
【threejs教程】threejs中的边边角角:几何体详解
【8月更文挑战第6天】threejs中的几何体详解
791 4
【threejs教程】threejs中的边边角角:几何体详解
|
机器学习/深度学习 人工智能 自然语言处理
新贵Claude 3家族强势登场,AI领域掀起新一轮浪潮!
新贵Claude 3家族强势登场,AI领域掀起新一轮浪潮!
450 0
|
C语言
【04】C语言括号匹配问题
【04】C语言括号匹配问题
|
前端开发 JavaScript 应用服务中间件
Vite配置Proxy代理解决跨域问题
Vite配置Proxy代理解决跨域问题
4694 0
|
Android开发
Android开发中Button背景颜色不能修改问题及解决方法
Android开发中Button背景颜色不能修改问题及解决方法
2930 0
|
存储 SQL 开发框架
企业人事管理系统的设计与实现(论文+源码)_kaic
。基于 C/S 框架分析的人事管理系统 中存在的问题,采用J2EE 和 b/S 框架进行模型设计、系统分析和系统开发,层模型、 显示层和层控制器满足联邦战略计划 J2EE 服务器的要求。此外,该技术还应基于物理 层设计和基于 J2EE 逻辑的数据库应用,以及 Arwin 蜂窝数据库和信息管理系统的选择。 基于需求分析 J2EE 的标准化建模技术、数据库技术、人事管理项目应用和人事管理系 统的实现。