Skip to content

Commit 88e7a82

Browse files
authored
Merge pull request #148 from cybertec-postgresql/UpdateDocumentation
add patroni log-settings
2 parents 91d6d98 + 9c49aad commit 88e7a82

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

docs/hugo/content/en/crd/crd-postgresql.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,14 @@ key, operator, value, effect and tolerationSeconds |
182182
| ------------------------------ |:-------:| ---------:| ------------------:|
183183
| failsafe_mode | boolean | false | Patroni failsafe_mode parameter value. See the [Patroni documentation](https://patroni.readthedocs.io/en/master/dcs_failsafe_mode.html) for more details. |
184184
| initdb | map | false | a map of key-value pairs describing initdb parameters |
185+
| [log](#log) | object | false | Log configuration for patroni |
185186
| loop_wait | string | false | Patroni `loop_wait` parameter value, optional. The default is set by the PostgreSQL image. |
186187
| maximum_lag_on_failover | string | false | Patroni `maximum_lag_on_failover` parameter value, optional. The default is set by the PostgreSQL image. |
187188
| [multisite](#multisite) | map | false | Multisite configuration - Check the [Documentation](CYBERTEC-pg-operator/multisite/) first |
188189
| pg_hba | array | false | list of custom pg_hba lines to replace default ones. One entry per item (example: - hostssl all all 0.0.0.0/0 scram-sha-256) |
189190
| retry_timeout | int | false | Patroni `retry_timeout` parameter value, optional. The default is set by the PostgreSQL image. |
190191
| [slots](#slots) | map | false | permanent replication slots that Patroni preserves after failover by re-creating them on the new primary immediately. after doing a promote. Use preferred slot-name as map-item |
191-
| synchronous_mode | boolean | false | DPatroni `synchronous_mode` parameter value, optional. The default is false. |
192+
| synchronous_mode | boolean | false | Patroni `synchronous_mode` parameter value, optional. The default is false. |
192193
| synchronous_mode_strict | boolean | false | Patroni `synchronous_mode_strict` parameter value, optional. The default is false. |
193194
| synchronous_node_count | int | false | Patroni `synchronous_node_count` parameter value, optional. The default is set to 1. Only used if `synchronous_mode_strict` is true |
194195
| ttl | int | false | Patroni `ttl` parameter value, optional. The default is set by the PostgreSQL image. |
@@ -349,6 +350,20 @@ key, operator, value, effect and tolerationSeconds |
349350

350351
---
351352

353+
#### log
354+
355+
| Name | Type | required | Description |
356+
| ------------------------------ |:-------:| ---------:| ------------------:|
357+
| deduplicate_heartbeat_logs | boolean | false | Whether to deduplicate consecutive heartbeat logs to reduce log volume. |
358+
| level | string | false | The Patroni log level. Allowed values: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`. |
359+
| static_fields | map | false | A map of key-value pairs (strings) that are statically added to every log record. |
360+
| traceback_level | string | false | Determines the level from which Python tracebacks are logged. Allowed values: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`. |
361+
| type | string | false | The format of the log output. Either `plain` or `json`. |
362+
363+
{{< back >}}
364+
365+
---
366+
352367
#### multisite
353368

354369
| Name | Type | required | Description |

0 commit comments

Comments
 (0)