Skip to content

Commit

Permalink
Merge pull request #2803 from nickanderson/ENT-10900/3.18.x
Browse files Browse the repository at this point in the history
ENT-10900: Made enterprise federated reporting dump interval configurable via Augments (3.18)
  • Loading branch information
nickanderson authored Dec 15, 2023
2 parents 98e4bd6 + b968091 commit 32f525b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions MPF.md
Original file line number Diff line number Diff line change
Expand Up @@ -1930,6 +1930,27 @@ config when it notices a change in *policy*.
**History**: Added in 3.11.

### Federated Reporting
#### Configure dump interval

By default feeder hubs dump data every `20` minutes. To configure the interval on which feeder hubs dump data define `cfengine_enterprise_federation:config.dump_interval`.

For example:

```json
{
"variables": {
"cfengine_enterprise_federation:config.dump_interval": {
"value": "60",
"comment": "Dump data on feeders every 60 minutes"
}
}
}
```

**History:**

* Added in CFEngine 3.24.0

#### Debug import process

In order to get detailed logs about import failures define the class `default:cfengine_mp_fr_debug_import` on the _superhub_.
Expand Down
4 changes: 2 additions & 2 deletions cfe_internal/enterprise/federation/federation.cf
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ bundle agent config
"path" string => "$(federation_dir)/cfapache/federation-config.json";
"path_setup_status" string => "$(federation_dir)/cfapache/setup-status.json";

# TODO: Instrument augments
"dump_interval" -> {"ENT-4806"}
"dump_interval" -> { "ENT-4806", "ENT-10900" }
int => "20",
if => not( isvariable( "cfengine_enterprise_federation:config.dump_interval" ) ),
comment => "Dump data on the feeders every 20 minutes";

# TODO: don't hard-code cftransport user
Expand Down

0 comments on commit 32f525b

Please sign in to comment.