-
Notifications
You must be signed in to change notification settings - Fork 1k
restart instances via rest api instead of recreating pods, fixes bug with being unable to decrease some values, like max_connections #1103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
da2993e
94b64c2
9012a96
4e2586b
3620e63
cad8833
61d542d
ffcf68b
0dab347
8c27f8d
0f72ad4
754e313
85946a0
6ea6b77
cf4783d
16661df
5a1b462
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,13 +412,33 @@ func tolerations(tolerationsSpec *[]v1.Toleration, podToleration map[string]stri | |
// Those parameters must go to the bootstrap/dcs/postgresql/parameters section. | ||
// See http://patroni.readthedocs.io/en/latest/dynamic_configuration.html. | ||
func isBootstrapOnlyParameter(param string) bool { | ||
return param == "max_connections" || | ||
param == "max_locks_per_transaction" || | ||
param == "max_worker_processes" || | ||
param == "max_prepared_transactions" || | ||
param == "wal_level" || | ||
param == "wal_log_hints" || | ||
param == "track_commit_timestamp" | ||
params := map[string]bool{ | ||
|
||
"archive_command": false, | ||
"shared_buffers": false, | ||
"logging_collector": false, | ||
"log_destination": false, | ||
"log_directory": false, | ||
"log_filename": false, | ||
"log_file_mode": false, | ||
"log_rotation_age": false, | ||
"log_truncate_on_rotation": false, | ||
"ssl": false, | ||
"ssl_ca_file": false, | ||
"ssl_crl_file": false, | ||
"ssl_cert_file": false, | ||
"ssl_key_file": false, | ||
"shared_preload_libraries": false, | ||
"bg_mon.listen_address": false, | ||
"bg_mon.history_buckets": false, | ||
"pg_stat_statements.track_utility": false, | ||
"extwlist.extensions": false, | ||
"extwlist.custom_path": false, | ||
} | ||
result, ok := params[param] | ||
if !ok { | ||
result = true | ||
} | ||
return result | ||
} | ||
|
||
func generateVolumeMounts(volume acidv1.Volume) []v1.VolumeMount { | ||
|
Uh oh!
There was an error while loading. Please reload this page.