-
Notifications
You must be signed in to change notification settings - Fork 23
PBM-1662 Added pbm-agent configuration options documentation #327
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # pbm-agent configuration file options | ||
|
Check warning on line 1 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| The following options are available for the `pbm-agent` configuration file. Read more about how to use the configuration file in the [Start pbm-agent using the configuration file](../manage/start-agent-with-config.md) chapter. | ||
|
Check warning on line 3 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| ```yaml | ||
| mongodb-uri: mongodb://pbm:mysecret@localhost:27017/ | ||
| backup: | ||
| dump-parallel-collections: 10 | ||
| log: | ||
| path: "/var/log/pbm.json" | ||
| level: "I" | ||
| json: true | ||
| ``` | ||
|
|
||
| ## mongodb-uri | ||
|
Check warning on line 15 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| *Type*: string <br> | ||
| *Required*: YES | ||
|
Check warning on line 18 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| The MongoDB connection string URI that the `pbm-agent` uses to connect to the local `mongod` node. This option is mandatory to start the `pbm-agent`. | ||
|
|
||
| ## backup.dump-parallel-collections | ||
|
Check warning on line 22 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| *Type*: int <br> | ||
| *Required*: NO <br> | ||
|
Check warning on line 25 in docs/reference/pbm-agent-config-options.md
|
||
| *Default*: number of CPU cores / 2 (minimum 1) | ||
|
|
||
| The number of collections to dump in parallel during a logical backup. By default, the number of parallel collections is half of the number of CPU cores, with a minimum value of 1. | ||
|
|
||
| ## log.path | ||
|
Check warning on line 30 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| *Type*: string <br> | ||
| *Required*: NO <br> | ||
|
Check warning on line 33 in docs/reference/pbm-agent-config-options.md
|
||
| *Default*: `/dev/stderr` | ||
|
|
||
| The path to the log file where a `pbm-agent` writes its logs. The file is created if it doesn't exist. The default value is `/dev/stderr`, which means that logs are written to the standard error output. If PBM cannot write logs to the specified path due to an error, it falls back to the default path. | ||
|
|
||
| ## log.level | ||
|
Check warning on line 38 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| *Type*: string <br> | ||
| *Required*: NO <br> | ||
|
Check warning on line 41 in docs/reference/pbm-agent-config-options.md
|
||
| *Default*: `D` | ||
|
|
||
| The log severity level. Supported levels are (from low to high): `D` - Debug (default), `I` - Info, `W` - Warning, `E` - Error, `F` - Fatal. | ||
|
|
||
| The output includes both the specified severity level and all higher ones. For example, if you set the level to `I` (Info), the output will include Info, Warning, Error, and Fatal messages. | ||
|
Check warning on line 46 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| ## log.json | ||
|
Check warning on line 48 in docs/reference/pbm-agent-config-options.md
|
||
|
|
||
| *Type*: boolean <br> | ||
|
Check warning on line 50 in docs/reference/pbm-agent-config-options.md
|
||
| *Required*: NO <br> | ||
|
Check warning on line 51 in docs/reference/pbm-agent-config-options.md
|
||
| *Default*: `false` | ||
|
|
||
| Output log messages in JSON format. If set to `false` or undefined, logs are written in the default text format. | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When this parameter in the config file changes, PBM Agent will automatically apply the change. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When this parameter in the config file changes, PBM Agent will automatically apply the change.