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
646b3e7a
Commit
646b3e7a
authored
Oct 17, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new circuitbreaker properties to application_settings
parent
82ea42a6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
changelogs/unreleased/bvl-circuitbreaker-backoff.yml
changelogs/unreleased/bvl-circuitbreaker-backoff.yml
+6
-0
db/migrate/20171017145932_add_new_circuitbreaker_settings_to_application_settings.rb
...dd_new_circuitbreaker_settings_to_application_settings.rb
+16
-0
db/schema.rb
db/schema.rb
+3
-1
No files found.
changelogs/unreleased/bvl-circuitbreaker-backoff.yml
0 → 100644
View file @
646b3e7a
---
title
:
Make the circuitbreaker more robust by adding higher thresholds, and multiple
access attempts.
merge_request
:
14933
author
:
type
:
fixed
db/migrate/20171017145932_add_new_circuitbreaker_settings_to_application_settings.rb
0 → 100644
View file @
646b3e7a
class
AddNewCircuitbreakerSettingsToApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
add_column
:application_settings
,
:circuitbreaker_access_retries
,
:integer
,
default:
3
add_column
:application_settings
,
:circuitbreaker_backoff_threshold
,
:integer
,
default:
80
end
end
db/schema.rb
View file @
646b3e7a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201710171
30239
)
do
ActiveRecord
::
Schema
.
define
(
version:
201710171
45932
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
@@ -162,6 +162,8 @@ ActiveRecord::Schema.define(version: 20171017130239) do
...
@@ -162,6 +162,8 @@ ActiveRecord::Schema.define(version: 20171017130239) do
t
.
integer
"circuitbreaker_failure_reset_time"
,
default:
1800
t
.
integer
"circuitbreaker_failure_reset_time"
,
default:
1800
t
.
integer
"circuitbreaker_storage_timeout"
,
default:
30
t
.
integer
"circuitbreaker_storage_timeout"
,
default:
30
t
.
boolean
"remote_mirror_available"
,
default:
true
,
null:
false
t
.
boolean
"remote_mirror_available"
,
default:
true
,
null:
false
t
.
integer
"circuitbreaker_access_retries"
,
default:
3
t
.
integer
"circuitbreaker_backoff_threshold"
,
default:
80
end
end
create_table
"approvals"
,
force: :cascade
do
|
t
|
create_table
"approvals"
,
force: :cascade
do
|
t
|
...
...
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