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
08033d3d
Commit
08033d3d
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
c1ed00e8
Changes
3
Hide 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 @
08033d3d
---
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 @
08033d3d
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 @
08033d3d
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017101
2101043
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017101
7145932
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -138,6 +138,8 @@ ActiveRecord::Schema.define(version: 20171012101043) do
t
.
integer
"circuitbreaker_failure_wait_time"
,
default:
30
t
.
integer
"circuitbreaker_failure_reset_time"
,
default:
1800
t
.
integer
"circuitbreaker_storage_timeout"
,
default:
30
t
.
integer
"circuitbreaker_access_retries"
,
default:
3
t
.
integer
"circuitbreaker_backoff_threshold"
,
default:
80
end
create_table
"audit_events"
,
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