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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
85640c5c
Commit
85640c5c
authored
Oct 12, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add existing circuitbreaker settings to the database
parent
03699653
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
changelogs/unreleased/bvl-circuitbreaker-improvements.yml
changelogs/unreleased/bvl-circuitbreaker-improvements.yml
+5
-0
db/migrate/20171012101043_add_circuit_breaker_properties_to_application_settings.rb
...add_circuit_breaker_properties_to_application_settings.rb
+27
-0
db/schema.rb
db/schema.rb
+5
-1
No files found.
changelogs/unreleased/bvl-circuitbreaker-improvements.yml
0 → 100644
View file @
85640c5c
---
title
:
Store circuitbreaker settings in the database instead of config
merge_request
:
14842
author
:
type
:
changed
db/migrate/20171012101043_add_circuit_breaker_properties_to_application_settings.rb
0 → 100644
View file @
85640c5c
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddCircuitBreakerPropertiesToApplicationSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
add_column
:application_settings
,
:circuitbreaker_failure_count_threshold
,
:integer
,
default:
160
add_column
:application_settings
,
:circuitbreaker_failure_wait_time
,
:integer
,
default:
30
add_column
:application_settings
,
:circuitbreaker_failure_reset_time
,
:integer
,
default:
1800
add_column
:application_settings
,
:circuitbreaker_storage_timeout
,
:integer
,
default:
30
end
end
db/schema.rb
View file @
85640c5c
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201710
06091000
)
do
ActiveRecord
::
Schema
.
define
(
version:
201710
12101043
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -134,6 +134,10 @@ ActiveRecord::Schema.define(version: 20171006091000) do
t
.
boolean
"hashed_storage_enabled"
,
default:
false
,
null:
false
t
.
boolean
"project_export_enabled"
,
default:
true
,
null:
false
t
.
boolean
"auto_devops_enabled"
,
default:
false
,
null:
false
t
.
integer
"circuitbreaker_failure_count_threshold"
,
default:
160
t
.
integer
"circuitbreaker_failure_wait_time"
,
default:
30
t
.
integer
"circuitbreaker_failure_reset_time"
,
default:
1800
t
.
integer
"circuitbreaker_storage_timeout"
,
default:
30
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