PostgreSQL Archived in the Cloud

本文涉及的产品
云原生数据库 PolarDB MySQL 版,Serverless 5000PCU 100GB
云原生数据库 PolarDB PostgreSQL 版,企业版 4核16GB
推荐场景:
HTAP混合负载
云原生数据库 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数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
相关文章
|
关系型数据库 PostgreSQL RDS
Cloud Massive Task Scheduling System Database Design - Alibaba Cloud RDS PostgreSQL Cases
PostgreSQL is crucial to cloud massive task scheduling system. Here we will describe how to design a system database for cloud massive task scheduling.
1215 0
Cloud Massive Task Scheduling System Database Design - Alibaba Cloud RDS PostgreSQL Cases
|
关系型数据库 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.
2048 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.
2063 0
|
SQL 关系型数据库 C语言
Full-text Search Index Optimization - Alibaba Cloud RDS PostgreSQL Best Practices
Will indexes be used in full-text searches that do not contain a certain keyword? Learn more about GIN, Generalized Inverted Index.
3948 0
|
JSON 安全 关系型数据库
Massive Parallel Processing with Alibaba Cloud HybridDB for PostgreSQL
When you have massive amounts of data and the need for data analytics, or you have high availability requirements, or security and backup protocols to.
2050 0
|
18天前
|
缓存 运维 关系型数据库
数据库容灾 | MySQL MGR与阿里云PolarDB-X Paxos的深度对比
经过深入的技术剖析与性能对比,PolarDB-X DN凭借其自研的X-Paxos协议和一系列优化设计,在性能、正确性、可用性及资源开销等方面展现出对MySQL MGR的多项优势,但MGR在MySQL生态体系内也占据重要地位,但需要考虑备库宕机抖动、跨机房容灾性能波动、稳定性等各种情况,因此如果想用好MGR,必须配备专业的技术和运维团队的支持。 在面对大规模、高并发、高可用性需求时,PolarDB-X存储引擎以其独特的技术优势和优异的性能表现,相比于MGR在开箱即用的场景下,PolarDB-X基于DN的集中式(标准版)在功能和性能都做到了很好的平衡,成为了极具竞争力的数据库解决方案。
|
22天前
|
存储 SQL Oracle
|
8天前
|
SQL Oracle 关系型数据库
|
22天前
|
SQL 存储 关系型数据库
关系型数据库PostgreSQL学习
【7月更文挑战第4天】
422 2