diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-06 00:09:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-06 00:09:04 +0300 |
commit | 96e23b2017cbe56969771960f6c274c5d3599397 (patch) | |
tree | b8b17da1ab080dd41fc64fc0262de2cf16754559 /doc | |
parent | 2f1a81fd16ff9968d6b986f8a407d963bc2218f9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc')
-rw-r--r-- | doc/administration/postgresql/database_load_balancing.md | 23 | ||||
-rw-r--r-- | doc/user/project/issues/design_management.md | 15 |
2 files changed, 31 insertions, 7 deletions
diff --git a/doc/administration/postgresql/database_load_balancing.md b/doc/administration/postgresql/database_load_balancing.md index d5cf93a135a..1007f4e2429 100644 --- a/doc/administration/postgresql/database_load_balancing.md +++ b/doc/administration/postgresql/database_load_balancing.md @@ -76,23 +76,32 @@ Database Load Balancing can be configured in one of two ways: ### Hosts -To configure a list of hosts, perform these steps on all GitLab Rails (Sidekiq) +<!-- Including the Primary host in Database Load Balancing is now recommended for improved performance - Approved by the Reference Architecture and Database groups. --> + +To configure a list of hosts, perform these steps on all GitLab Rails and Sidekiq nodes for each environment you want to balance: 1. Edit the `/etc/gitlab/gitlab.rb` file. -1. In `gitlab_rails['db_load_balancing']`, create an array of the read-only - replicas you want to balance. Do not add the primary host. For example, on +1. In `gitlab_rails['db_load_balancing']`, create the array of the database + hosts you want to balance. For example, on an environment with PostgreSQL running on the hosts `primary.example.com`, - `host1.example.com`, `host2.example.com`, and `host3.example.com`: + `secondary1.example.com`, `secondary2.example.com`: ```ruby - gitlab_rails['db_load_balancing'] = { 'hosts' => ['host1.example.com', 'host2.example.com', `host3.example.com`] } + gitlab_rails['db_load_balancing'] = { 'hosts' => ['primary.example.com', 'secondary1.example.com', 'secondary2.example.com'] } ``` - These replicas must be reachable on the same port configured with `gitlab_rails['db_port']`. + These hosts must be reachable on the same port configured with `gitlab_rails['db_port']`. 1. Save the file and [reconfigure GitLab](../restart_gitlab.md#omnibus-gitlab-reconfigure). +NOTE: +Adding the primary to the hosts list is optional, but recommended. +This makes the primary eligible for load-balanced read queries, improving system performance +when the primary has capacity for these queries. +Very high-traffic instances may not have capacity on the primary for it to serve as a read replica. +The primary will be used for write queries whether or not it is present in this list. + ### Service Discovery > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/5883) in GitLab 11.0. @@ -173,7 +182,7 @@ To configure these options with a hosts list, use the following example: ```ruby gitlab_rails['db_load_balancing'] = { - 'hosts' => ['host1.example.com', 'host2.example.com', `host3.example.com`] + 'hosts' => ['primary.example.com', 'secondary1.example.com', 'secondary2.example.com'] 'max_replication_difference' => 16777216 # 16 MB 'max_replication_lag_time' => 30 'replica_check_interval' => 30 diff --git a/doc/user/project/issues/design_management.md b/doc/user/project/issues/design_management.md index 10b29feb072..a279f3ba5c6 100644 --- a/doc/user/project/issues/design_management.md +++ b/doc/user/project/issues/design_management.md @@ -199,6 +199,21 @@ Only the latest version of the designs can be archived. Archived designs are not permanently lost. You can browse [previous versions](#add-a-new-version-of-a-design). +<!-- When content_editor_on_issues flag is removed, move version notes + to "Add a design to an issue", update that topic, and delete the one below. --> + +## Markdown and rich text editors for descriptions + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/388449) in GitLab 16.1 [with a flag](../../../administration/feature_flags.md) named `content_editor_on_issues`. Disabled by default. + +FLAG: +On self-managed GitLab, by default this feature is not available. To make it available per project or for your entire instance, ask an administrator to [enable the feature flag](../../../administration/feature_flags.md) named `content_editor_on_issues`. +On GitLab.com, this feature is not available. +This feature is not ready for production use. + +When this feature is enabled, you can use the Markdown and rich text editor in design descriptions. +It's the same editor you use for comments across GitLab. + ## Reorder designs > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/34382) in GitLab 13.3. |