Skip to content
Snippets Groups Projects
Verified Commit eed499c6 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Added support for Pg's hot_standby_feedback option

parent 3763f49f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3,6 +3,10 @@
The latest version of this file can be found at the master branch of the
omnibus-gitlab repository.
 
9.0.3
- Added support for managing PostgreSQL's hot_standby_feedback option
9.0.2
 
- No changes
Loading
Loading
Loading
Loading
@@ -635,6 +635,7 @@ external_url 'GENERATED_EXTERNAL_URL'
# postgresql['max_replication_slots'] = 0
# postgresql['synchronous_commit'] = on
# postgresql['synchronous_standby_names'] = ''
# postgresql['hot_standby_feedback' = 'off'
 
# Backup/Archive settings
# default['gitlab']['postgresql']['archive_mode'] = "off"
Loading
Loading
Loading
Loading
@@ -418,6 +418,7 @@ default['gitlab']['postgresql']['max_standby_streaming_delay'] = "30s"
default['gitlab']['postgresql']['max_replication_slots'] = 0
default['gitlab']['postgresql']['synchronous_commit'] = 'on'
default['gitlab']['postgresql']['synchronous_standby_names'] = ''
default['gitlab']['postgresql']['hot_standby_feedback'] = 'off'
 
# Backup/Archive settings
default['gitlab']['postgresql']['archive_mode'] = "off"
Loading
Loading
Loading
Loading
@@ -239,7 +239,7 @@ max_standby_streaming_delay = <%= @max_standby_streaming_delay %> # max delay be
# -1 allows indefinite delay
#wal_receiver_status_interval = 10s # send replies at least this often
# 0 disables
#hot_standby_feedback = off # send info from standby to prevent
hot_standby_feedback = <%= @hot_standby_feedback %> # send info from standby to prevent
# query conflicts
 
 
Loading
Loading
Loading
Loading
@@ -233,6 +233,15 @@ describe 'postgresql 9.6' do
).with_content(/^dynamic_shared_memory_type = /)
end
 
it 'sets the hot_standby_feedback setting' do
expect(chef_run.node['gitlab']['postgresql']['hot_standby_feedback'])
.to eq('off')
expect(chef_run).to render_file(
'/var/opt/gitlab/postgresql/data/postgresql.conf'
).with_content(/hot_standby_feedback = off/)
end
context 'when dynamic_shared_memory_type is none' do
before do
stub_gitlab_rb({
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment