430.md 2.1 KB
Newer Older
Lab机器人's avatar
readme  
Lab机器人 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# Configuring PostgreSQL for scaling

> 原文:[https://docs.gitlab.com/ee/administration/postgresql/](https://docs.gitlab.com/ee/administration/postgresql/)

*   [PostgreSQL replication and failover with Omnibus GitLab](#postgresql-replication-and-failover-with-omnibus-gitlab-premium-only)
*   [Standalone PostgreSQL using Omnibus GitLab](#standalone-postgresql-using-omnibus-gitlab-core-only)
*   [Provide your own PostgreSQL instance](#provide-your-own-postgresql-instance-core-only)

# Configuring PostgreSQL for scaling[](#configuring-postgresql-for-scaling "Permalink")

在本节中,将指导您配置 PostgreSQL 数据库,以在我们的[可扩展和高度可用的设置](../reference_architectures/index.html)之一中与 GitLab 一起使用. 基本上有三种设置可供选择.

## PostgreSQL replication and failover with Omnibus GitLab[](#postgresql-replication-and-failover-with-omnibus-gitlab-premium-only "Permalink")

此设置适用于使用[Omnibus GitLab **企业版** (EE)软件包](https://about.gitlab.com/install/?version=ee)安装 GitLab 的情况.

所有必需的工具(如 PostgreSQL,PgBouncer,Repmgr)都捆绑在软件包中,因此您可以用它来设置整个 PostgreSQL 基础结构(主数据库,副本数据库).

[> Read how to set up PostgreSQL replication and failover using Omnibus GitLab](replication_and_failover.html)

## Standalone PostgreSQL using Omnibus GitLab[](#standalone-postgresql-using-omnibus-gitlab-core-only "Permalink")

此设置适用于您安装[Omnibus GitLab 软件包](https://about.gitlab.com/install/) (CE 或 EE)时使用仅启用了服务的捆绑 PostgreSQL 的情况.

[> Read how to set up a standalone PostgreSQL instance using Omnibus GitLab](standalone.html)

## Provide your own PostgreSQL instance[](#provide-your-own-postgresql-instance-core-only "Permalink")

此设置适用于使用[Omnibus GitLab 软件包](https://about.gitlab.com/install/) (CE 或 EE)安装 GitLab 或[从源代码](../../install/installation.html)安装 GitLab 的情况,但您想使用自己的外部 PostgreSQL 服务器.

[> Read how to set up an external PostgreSQL instance](external.html)