Skip to content

Commit

Permalink
Made enterprise federated reporting dump interval configurable via Au…
Browse files Browse the repository at this point in the history
…gments

Ticket: ENT-10900
Changelog: Title
  • Loading branch information
nickanderson committed Dec 12, 2023
1 parent 115d55e commit 4811105
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 @@ -2037,6 +2037,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 4811105

Please sign in to comment.