Remote Recovery for data guarding

本文涉及的产品
云原生数据库 PolarDB MySQL 版,通用型 2核4GB 50GB
云原生数据库 PolarDB PostgreSQL 版,标准版 2核4GB 50GB
简介: 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数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
相关文章
|
7月前
|
数据库
Greenplum【部署 09】has an active database process on port = 6000 和 [Errno 2] No such file or directory
Greenplum【部署 09】has an active database process on port = 6000 和 [Errno 2] No such file or directory
118 0
|
Oracle 关系型数据库 数据库
change backup ... for db_unique_name不同步到control file
change backup … for db_unique_name 可以改变备份集所属的db_unique_name,但oracle官方文档里面没有说会不会同步到db_unique_name对应的数据库的control file。我自己测试发现不会同步到control file。
|
存储
rman备份失败:ORA-00245: control file backup failed; target is likely on a local file system
rman备份失败:ORA-00245: control file backup failed; target is likely on a local file system
162 0
|
Java 关系型数据库 Oracle
Unable to read additional data from server sessionid
jenkins构建项目报错: Caused by: com.weibo.api.motan.exception.MotanFrameworkException: error_message: ClusterSupport No service urls for the refer:motan://192.
10544 0
解决webstom failed to change read-only files
我百思不得其解的是,为何我的文件不让我更改,变成了只读模式,后来我仔细回忆了一下,原来是因为我使用了root权限,来安装thinkjs之后,webstom没有root权限,所以我使用root,在终端敲下如下命令,即可解决问题 chown -R ae6623 lv-node 我解释一下,如上的命令...
1141 0

热门文章

最新文章

下一篇
DataWorks