PostgreSQL Archived in the Cloud

本文涉及的产品
云原生数据库 PolarDB PostgreSQL 版,标准版 2核4GB 50GB
云原生数据库 PolarDB MySQL 版,通用型 2核4GB 50GB
简介:
建立一个集中调度的PostgreSQL归档系统。
特点:
1. 生产库存储指纹信息。
2. 调度库存储
   指纹信息,以及生产库的其他补充信息。
   归档服务器(存储)信息。
   生产库与归档服务器的映射信息,包括优先级信息等等。
   归档日志信息。
3. DNS存储环境IP与域名信息。
4. Nagios 负责实时监控归档状态信息。

方案概貌 : 
PostgreSQL Archived in the Cloud - 德哥@Digoal - The Heart,The World.
 
数据结构:
digoal=> \d arch_db_info
               Table "digoal.arch_db_info"
    Column     |            Type             | Modifiers 
---------------+-----------------------------+-----------
 id            | uuid                        | not null
 idc           | text                        | 
 platform      | text                        | 
 software      | text                        | 
 version       | text                        | 
 vip           | inet                        | 
 port          | integer                     | 
 create_time   | timestamp without time zone | 
 modify_time   | timestamp without time zone | 
 active_status | boolean                     | 
Indexes:
    "arch_db_info_pkey" PRIMARY KEY, btree (id)
    "uk_db_info_1" UNIQUE, btree (idc, vip, port)
Referenced by:
    TABLE "arch_path_map" CONSTRAINT "fk_path_1" FOREIGN KEY (db_id) REFERENCES arch_db_info(id)

digoal=> \d arch_path_info
              Table "digoal.arch_path_info"
    Column     |            Type             | Modifiers 
---------------+-----------------------------+-----------
 id            | integer                     | not null
 ssh_ip        | inet                        | 
 ssh_port      | integer                     | 
 ssh_user      | text                        | 
 root_path     | text                        | 
 create_time   | timestamp without time zone | 
 modify_time   | timestamp without time zone | 
 active_status | boolean                     | 
Indexes:
    "arch_path_info_pkey" PRIMARY KEY, btree (id)
    "uk_path_info_1" UNIQUE, btree (ssh_ip, ssh_port, root_path)
Referenced by:
    TABLE "arch_path_map" CONSTRAINT "fk_path_2" FOREIGN KEY (path_id) REFERENCES arch_path_info(id)

digoal=> \d arch_path_map
              Table "digoal.arch_path_map"
    Column     |            Type             | Modifiers 
---------------+-----------------------------+-----------
 id            | integer                     | not null
 db_id         | uuid                        | 
 path_id       | integer                     | 
 priority      | integer                     | 
 active_status | boolean                     | 
 create_time   | timestamp without time zone | 
 modify_time   | timestamp without time zone | 
Indexes:
    "arch_path_map_pkey" PRIMARY KEY, btree (id)
    "uk_path_map_1" UNIQUE, btree (db_id, path_id)
Foreign-key constraints:
    "fk_path_1" FOREIGN KEY (db_id) REFERENCES arch_db_info(id)
    "fk_path_2" FOREIGN KEY (path_id) REFERENCES arch_path_info(id)

digoal=> \d arch_remote_log 
              Table "digoal.arch_remote_log"
     Column     |            Type             | Modifiers 
----------------+-----------------------------+-----------
 db_id          | uuid                        | 
 ssh_ip         | inet                        | 
 ssh_port       | integer                     | 
 ssh_user       | text                        | 
 full_path      | text                        | 
 wal_size_bytes | bigint                      | 
 create_time    | timestamp without time zone | 
 status         | boolean                     | 

digoal=> \d arch_local_log 
              Table "digoal.arch_local_log"
     Column     |            Type             | Modifiers 
----------------+-----------------------------+-----------
 db_id          | uuid                        | 
 full_path      | text                        | 
 wal_size_bytes | bigint                      | 
 create_time    | timestamp without time zone | 
 status         | boolean                     | 

其他功能围绕集中调度开发。
ER图:
PostgreSQL Archived in the Cloud - 德哥@Digoal - The Heart,The World.
 
相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
目录
相关文章
|
5月前
|
Oracle 关系型数据库 数据库
PostgreSQL从入门到精通教程 - 第42讲:pg_rman部署与使用
PostgreSQL从入门到精通教程 - 第42讲:pg_rman部署与使用
168 1
|
SQL 缓存 固态存储
Introducing PMDK into PostgreSQL
Introducing PMDK into PostgreSQL
67 0
|
NoSQL 数据库 索引
|
Oracle 关系型数据库 Linux
PostgreSQL安装Oracle_fdw
PostgreSQL的Windows版本安装Oracle_fdw
548 0
|
关系型数据库 数据库 PostgreSQL
PostgreSQL pg_basebackup
本文探讨 pg_basebackup工具,本地备份、远程备份、单一表空间本地数据库的备份、表空间重定向
1899 0
PostgreSQL pg_basebackup
|
关系型数据库 MySQL 分布式数据库
The Evolution of Alibaba Cloud's Relational Database Services Architecture – PolarDB
This article discusses the history of Alibaba Cloud's RDS architecture, as well as the motivation behind the development of PolarDB.
4827 0
The Evolution of Alibaba Cloud's Relational Database Services Architecture – PolarDB
|
关系型数据库 RDS
Internet of Vehicles – Window Querying with Alibaba Cloud RDS for PostgreSQL
Internet of Vehicles (IoV) is a popular topic of research in the field of IoT. One of the biggest issues facing IoV is collecting vehicle's travel tracks in real time.
2066 0
Internet of Vehicles – Window Querying with Alibaba Cloud RDS for PostgreSQL
|
关系型数据库 PostgreSQL RDS
Partitioned Index - Alibaba Cloud RDS PostgreSQL Best Practices
When should you partition a table in your database? Learn how to split tables with partial index.
2087 0
|
关系型数据库 PostgreSQL