Commit ca131ce
authored
[AGNTLOG-618] Default file_scan_period to 1s (#49896)
### What does this PR do?
- Changes the default value of `logs_config.file_scan_period` from **10** seconds to **1** second.
- Updates `pkg/config/schema/core_schema.yaml` to match the new default.
- Adds a release note describing the change and how to opt out (slower scan) on hosts that need it.
### Motivation
The file log launcher uses this setting to schedule periodic filesystem scans for file-based log sources (new files, wildcards, rotation, and open-files selection). A 1 second default shortens the worst-case delay before the Agent discovers and starts tailing a new or rotated file. Deployments on slow or network-backed filesystems that need to limit metadata load can set `logs_config.file_scan_period` to a higher value in configuration.
### Describe how you validated your changes
- `inv test --targets=./pkg/config/setup` (all tests passed).
### Additional Notes
- This only affects the **file** log launcher’s scan cadence, not the idle read interval for an already open file.
- Users with an explicit `logs_config.file_scan_period` in `datadog.yaml` (or equivalent) are unchanged.
Co-authored-by: ryan.hall <ryan.hall@datadoghq.com>1 parent 878331b commit ca131ce
3 files changed
Lines changed: 6 additions & 2 deletions
File tree
- pkg/config
- schema
- setup
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2253 | 2253 | | |
2254 | 2254 | | |
2255 | 2255 | | |
2256 | | - | |
| 2256 | + | |
2257 | 2257 | | |
2258 | 2258 | | |
2259 | 2259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1893 | 1893 | | |
1894 | 1894 | | |
1895 | 1895 | | |
1896 | | - | |
| 1896 | + | |
1897 | 1897 | | |
1898 | 1898 | | |
1899 | 1899 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments