Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
8c7f09f1
提交
8c7f09f1
编辑于
2 years ago
作者:
Thong Kuah
提交者:
Dylan Griffith
2 years ago
浏览文件
操作
下载
补丁
差异文件
Describe impact of Pods on backups
Add cluster-metadata concerns
上级
1b029f84
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
doc/architecture/blueprints/pods/index.md
+9
-0
9 个添加, 0 个删除
doc/architecture/blueprints/pods/index.md
doc/architecture/blueprints/pods/pods-feature-backups.md
+61
-0
61 个添加, 0 个删除
doc/architecture/blueprints/pods/pods-feature-backups.md
有
70 个添加
和
0 个删除
doc/architecture/blueprints/pods/index.md
+
9
−
0
浏览文件 @
8c7f09f1
...
@@ -150,6 +150,14 @@ At this moment, GitLab.com has "social-network"-like capabilities that may not f
...
@@ -150,6 +150,14 @@ At this moment, GitLab.com has "social-network"-like capabilities that may not f
We should evaluate if the SMB and mid market segment is interested in these features, or if not having them is acceptable in most cases.
We should evaluate if the SMB and mid market segment is interested in these features, or if not having them is acceptable in most cases.
### Self-managed
For reasons of consistency, it is expected that self-managed instances will
adopt the pods architecture as well. To expand, self-managed instances can
continue with just a single Pod while supporting the option of adding additional
Pods. Organizations, and possible User decomposition will also be adopted for
self-managed instances.
## High-level architecture problems to solve
## High-level architecture problems to solve
A number of technical issues need to be resolved to implement Pods (in no particular order). This section will be expanded.
A number of technical issues need to be resolved to implement Pods (in no particular order). This section will be expanded.
...
@@ -325,6 +333,7 @@ This is the list of known affected features with the proposed solutions.
...
@@ -325,6 +333,7 @@ This is the list of known affected features with the proposed solutions.
-
[
Pods: Organizations
](
pods-feature-organizations.md
)
-
[
Pods: Organizations
](
pods-feature-organizations.md
)
-
[
Pods: Router Endpoints Classification
](
pods-feature-router-endpoints-classification.md
)
-
[
Pods: Router Endpoints Classification
](
pods-feature-router-endpoints-classification.md
)
-
[
Pods: Schema changes (Postgres and Elasticsearch migrations)
](
pods-feature-schema-changes.md
)
-
[
Pods: Schema changes (Postgres and Elasticsearch migrations)
](
pods-feature-schema-changes.md
)
-
[
Pods: Backups
](
pods-feature-backups.md
)
-
[
Pods: Global Search
](
pods-feature-global-search.md
)
-
[
Pods: Global Search
](
pods-feature-global-search.md
)
-
[
Pods: CI Runners
](
pods-feature-ci-runners.md
)
-
[
Pods: CI Runners
](
pods-feature-ci-runners.md
)
-
[
Pods: Admin Area
](
pods-feature-admin-area.md
)
-
[
Pods: Admin Area
](
pods-feature-admin-area.md
)
...
...
此差异已折叠。
点击以展开。
doc/architecture/blueprints/pods/pods-feature-backups.md
0 → 100644
+
61
−
0
浏览文件 @
8c7f09f1
---
stage
:
enablement
group
:
pods
comments
:
false
description
:
'
Pods:
Backups'
---
This document is a work-in-progress and represents a very early state of the
Pods design. Significant aspects are not documented, though we expect to add
them in the future. This is one possible architecture for Pods, and we intend to
contrast this with alternatives before deciding which approach to implement.
This documentation will be kept even if we decide not to implement this so that
we can document the reasons for not choosing this approach.
# Pods: Backups
Each pods will take its own backups, and consequently have its own isolated
backup / restore procedure.
## 1. Definition
GitLab Backup takes a backup of the PostgreSQL database used by the application,
and also Git repository data.
## 2. Data flow
Each pod has a number of application databases to back up (e.g.
`main`
, and
`ci`
).
Additionally, there may be cluster-wide metadata tables (e.g.
`users`
table)
which is directly accesible via PostgreSQL.
## 3. Proposal
### 3.1. Cluster-wide metadata
It is currently unknown how cluster-wide metadata tables will be accessible. We
may choose to have cluster-wide metadata tables backed up separately, or have
each pod back up its copy of cluster-wide metdata tables.
### 3.2 Consistency
#### 3.2.1 Take backups independently
As each pod will communicate with each other via API, and there will be no joins
to the users table, it should be acceptable for each pod to take a backup
independently of each other.
#### 3.2.2 Enforce snapshots
We can require that each pod take a snapshot for the PostgreSQL databases at
around the same time to allow for a consistent-enough backup.
## 4. Evaluation
As the number of pods increases, it will likely not be feasible to take a
snapshot at the same time for all pods. Hence taking backups independently is
the better option.
## 4.1. Pros
## 4.2. Cons
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录