rename failsafe_mode option in opconfig CRD (#2298)
This commit is contained in:
parent
3f4e44de82
commit
611e48c51e
|
|
@ -670,7 +670,7 @@ spec:
|
||||||
patroni:
|
patroni:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
failsafe_mode:
|
enable_patroni_failsafe_mode:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
status:
|
status:
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,5 @@ data:
|
||||||
{{- include "flattenValuesForConfigMap" .Values.configLoggingRestApi | indent 2 }}
|
{{- include "flattenValuesForConfigMap" .Values.configLoggingRestApi | indent 2 }}
|
||||||
{{- include "flattenValuesForConfigMap" .Values.configTeamsApi | indent 2 }}
|
{{- include "flattenValuesForConfigMap" .Values.configTeamsApi | indent 2 }}
|
||||||
{{- include "flattenValuesForConfigMap" .Values.configConnectionPooler | indent 2 }}
|
{{- include "flattenValuesForConfigMap" .Values.configConnectionPooler | indent 2 }}
|
||||||
|
{{- include "flattenValuesForConfigMap" .Values.configPatroni | indent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,6 @@ configuration:
|
||||||
{{ toYaml .Values.configLoggingRestApi | indent 4 }}
|
{{ toYaml .Values.configLoggingRestApi | indent 4 }}
|
||||||
connection_pooler:
|
connection_pooler:
|
||||||
{{ toYaml .Values.configConnectionPooler | indent 4 }}
|
{{ toYaml .Values.configConnectionPooler | indent 4 }}
|
||||||
|
patroni:
|
||||||
|
{{ toYaml .Values.configPatroni | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ configConnectionPooler:
|
||||||
|
|
||||||
configPatroni:
|
configPatroni:
|
||||||
# enable Patroni DCS failsafe_mode feature
|
# enable Patroni DCS failsafe_mode feature
|
||||||
failsafe_mode: false
|
enable_patroni_failsafe_mode: false
|
||||||
|
|
||||||
# Zalando's internal CDC stream feature
|
# Zalando's internal CDC stream feature
|
||||||
enableStreams: false
|
enableStreams: false
|
||||||
|
|
|
||||||
|
|
@ -334,9 +334,12 @@ explanation of `ttl` and `loop_wait` parameters.
|
||||||
Patroni `synchronous_node_count` parameter value. Note, this option is only available for Spilo images with Patroni 2.0+. The default is set to `1`. Optional.
|
Patroni `synchronous_node_count` parameter value. Note, this option is only available for Spilo images with Patroni 2.0+. The default is set to `1`. Optional.
|
||||||
|
|
||||||
* **failsafe_mode**
|
* **failsafe_mode**
|
||||||
Patroni `failsafe_mode` parameter value. If enabled, allows Patroni to cope with DCS outages and avoid leader demotion. See the Patroni documentation
|
Patroni `failsafe_mode` parameter value. If enabled, Patroni will cope
|
||||||
[here](https://patroni.readthedocs.io/en/master/dcs_failsafe_mode.html) for more details. This feature is included since Patroni 3.0.0.
|
with DCS outages by avoiding leader demotion. See the Patroni documentation
|
||||||
Hence, check the container image in use if this feature is included in the used Patroni version. The default is set to `false`. Optional.
|
[here](https://patroni.readthedocs.io/en/master/dcs_failsafe_mode.html) for more details.
|
||||||
|
This feature is included since Patroni 3.0.0. Hence, check the container
|
||||||
|
image in use if this feature is included in the used Patroni version. The
|
||||||
|
default is set to `false`. Optional.
|
||||||
|
|
||||||
## Postgres container resources
|
## Postgres container resources
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -549,6 +549,19 @@ CRD-based configuration.
|
||||||
hard memory minimum what we consider to be required to properly run Postgres
|
hard memory minimum what we consider to be required to properly run Postgres
|
||||||
clusters with Patroni on Kubernetes. The default is `250Mi`.
|
clusters with Patroni on Kubernetes. The default is `250Mi`.
|
||||||
|
|
||||||
|
## Patroni options
|
||||||
|
|
||||||
|
Parameters configuring Patroni. In the CRD-based configuration they are grouped
|
||||||
|
under the `patroni` key.
|
||||||
|
|
||||||
|
* **enable_patroni_failsafe_mode**
|
||||||
|
If enabled, Patroni copes with DCS outages by avoiding leader demotion.
|
||||||
|
See the Patroni documentation [here](https://patroni.readthedocs.io/en/master/dcs_failsafe_mode.html) for more details.
|
||||||
|
This feature is included since Patroni 3.0.0. Hence, check the container image
|
||||||
|
in use if this feature is included in the used Patroni version. It can also be
|
||||||
|
enabled cluster-wise with the `failsafe_mode` flag under the `patroni` section
|
||||||
|
in the manifest. The default for the global config option is set to `false`.
|
||||||
|
|
||||||
## Operator timeouts
|
## Operator timeouts
|
||||||
|
|
||||||
This set of parameters define various timeouts related to some operator
|
This set of parameters define various timeouts related to some operator
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ data:
|
||||||
enable_master_load_balancer: "false"
|
enable_master_load_balancer: "false"
|
||||||
enable_master_pooler_load_balancer: "false"
|
enable_master_pooler_load_balancer: "false"
|
||||||
enable_password_rotation: "false"
|
enable_password_rotation: "false"
|
||||||
# enable_patroni_failsafe_mode: "false"
|
enable_patroni_failsafe_mode: "false"
|
||||||
enable_pgversion_env_var: "true"
|
enable_pgversion_env_var: "true"
|
||||||
# enable_pod_antiaffinity: "false"
|
# enable_pod_antiaffinity: "false"
|
||||||
# enable_pod_disruption_budget: "true"
|
# enable_pod_disruption_budget: "true"
|
||||||
|
|
|
||||||
|
|
@ -668,7 +668,7 @@ spec:
|
||||||
patroni:
|
patroni:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
failsafe_mode:
|
enable_patroni_failsafe_mode:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
status:
|
status:
|
||||||
|
|
|
||||||
|
|
@ -209,5 +209,5 @@ configuration:
|
||||||
connection_pooler_number_of_instances: 2
|
connection_pooler_number_of_instances: 2
|
||||||
# connection_pooler_schema: "pooler"
|
# connection_pooler_schema: "pooler"
|
||||||
# connection_pooler_user: "pooler"
|
# connection_pooler_user: "pooler"
|
||||||
# patroni:
|
patroni:
|
||||||
# failsafe_mode: "false"
|
enable_patroni_failsafe_mode: false
|
||||||
|
|
|
||||||
|
|
@ -1483,7 +1483,7 @@ var OperatorConfigCRDResourceValidation = apiextv1.CustomResourceValidation{
|
||||||
"patroni": {
|
"patroni": {
|
||||||
Type: "object",
|
Type: "object",
|
||||||
Properties: map[string]apiextv1.JSONSchemaProps{
|
Properties: map[string]apiextv1.JSONSchemaProps{
|
||||||
"failsafe_mode": {
|
"enable_patroni_failsafe_mode": {
|
||||||
Type: "boolean",
|
Type: "boolean",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ type OperatorLogicalBackupConfiguration struct {
|
||||||
|
|
||||||
// PatroniConfiguration defines configuration for Patroni
|
// PatroniConfiguration defines configuration for Patroni
|
||||||
type PatroniConfiguration struct {
|
type PatroniConfiguration struct {
|
||||||
FailsafeMode *bool `json:"failsafe_mode,omitempty"`
|
FailsafeMode *bool `json:"enable_patroni_failsafe_mode,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// OperatorConfigurationData defines the operation config
|
// OperatorConfigurationData defines the operation config
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue