Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fc5f7209
Commit
fc5f7209
authored
Apr 09, 2021
by
Russell Dickenson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'eread/move-ff-note' into 'master'
Move feature flag note See merge request gitlab-org/gitlab!58721
parents
4a8a1ff1
0817ed2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+4
-0
doc/administration/gitaly/praefect.md
doc/administration/gitaly/praefect.md
+4
-3
doc/development/gitaly.md
doc/development/gitaly.md
+11
-8
No files found.
doc/administration/gitaly/index.md
View file @
fc5f7209
...
...
@@ -66,6 +66,10 @@ Gitaly comes pre-configured with Omnibus GitLab, which is a configuration
GitLab installations for more than 2000 users should use Gitaly Cluster.
NOTE:
If not set in GitLab, feature flags are read as false from the console and Gitaly uses their
default value. The default value depends on the GitLab version.
## Gitaly Cluster
Gitaly, the service that provides storage for Git repositories, can
...
...
doc/administration/gitaly/praefect.md
View file @
fc5f7209
...
...
@@ -24,6 +24,10 @@ See the [design
document
](
https://gitlab.com/gitlab-org/gitaly/-/blob/master/doc/design_ha.md
)
for implementation details.
NOTE:
If not set in GitLab, feature flags are read as false from the console and Praefect uses their
default value. The default value depends on the GitLab version.
## Setup Instructions
If you
[
installed
](
https://about.gitlab.com/install/
)
GitLab using the Omnibus
...
...
@@ -978,9 +982,6 @@ Feature.enable(:gitaly_reference_transactions)
Feature
.
disable
(
:gitaly_reference_transactions_primary_wins
)
```
NOTE:
If not set in GitLab, flags are read as false from the console and Praefect uses their default value, which depends on the GitLab version.
To monitor strong consistency, you can use the following Prometheus metrics:
-
`gitaly_praefect_transactions_total`
: Number of transactions created and
...
...
doc/development/gitaly.md
View file @
fc5f7209
...
...
@@ -303,16 +303,19 @@ Here are the steps to gate a new feature in Gitaly behind a feature flag.
### GitLab Rails
1.
Test in a Rails console by setting the feature flag:
Test in a Rails console by setting the feature flag:
NOTE:
Pay attention to the name of the flag and the one used in the Rails console.
There is a difference between them (dashes replaced by underscores and name
prefix is changed). Make sure to prefix all flags with
`gitaly_`
.
```
ruby
Feature
.
enable
(
'gitaly_go_find_all_tags'
)
```
```
ruby
Feature
.
enable
(
'gitaly_go_find_all_tags'
)
```
Pay attention to the name of the flag and the one used in the Rails console. There is a difference
between them (dashes replaced by underscores and name prefix is changed). Make sure to prefix all
flags with
`gitaly_`
.
NOTE:
If not set in GitLab, feature flags are read as false from the console and Gitaly uses their
default value. The default value depends on the GitLab version.
### Testing with GDK
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment