deploy: retention is the store host's decision, not the swarm's
Both retentionPeriods move to deploy.<store>.retentionPeriod. Measured before moving: each is read exactly once, in the container definition of the module that deploys the store, and no client hive consults either -- so they are options on the auto-deployed service rather than something every host has to agree on. What stays in swarm.* is what a client needs to reach the store: the package, the name it answers on, the port. Both modules said "what stays here is its package, domain, retention and wiring" in their options-block comments; retention no longer does, so those say so. Renames go in deploy.nix with the rest, so the whole move keeps one home and one file to delete when the deprecation window closes.
This commit is contained in:
parent
4423da4899
commit
4f4f1ec3ee
4 changed files with 60 additions and 37 deletions
|
|
@ -113,7 +113,7 @@ See `retentionPeriod` below before leaving it at its default.
|
|||
|
||||
| Option | When you'd touch it |
|
||||
|---|---|
|
||||
| `swarm.victoriametrics.retentionPeriod` | Default `5y`. Lower it once you have measured how fast this swarm actually fills a disk — the default is deliberately generous because too-short silently discards history you cannot get back. |
|
||||
| `deploy.victoriametrics.retentionPeriod` | Default `5y`. Lower it once you have measured how fast this swarm actually fills a disk — the default is deliberately generous because too-short silently discards history you cannot get back. |
|
||||
| `swarm.grafana.oidc.role` | Default `Admin` for everyone who logs in. Lower to `Viewer`/`Editor` if the swarm grows operators who should not be able to reconfigure Grafana. |
|
||||
| `swarm.grafana.datasourceUrl` | Only if you front VictoriaMetrics with something else. It defaults to the store on this host, which is the only thing it can reach. |
|
||||
|
||||
|
|
@ -144,7 +144,7 @@ swarm.
|
|||
|
||||
| Option | When you'd touch it |
|
||||
|---|---|
|
||||
| `swarm.victorialogs.retentionPeriod` | Default `30d`, far shorter than the metrics store's — logs are bulkier per unit of value and are usually read within days of being written. Raise it if you need to answer questions about last quarter. |
|
||||
| `deploy.victorialogs.retentionPeriod` | Default `30d`, far shorter than the metrics store's — logs are bulkier per unit of value and are usually read within days of being written. Raise it if you need to answer questions about last quarter. |
|
||||
| `swarm.victorialogs.domain` | Only to rename it. |
|
||||
| `swarm.victorialogs.port` | Only if something else on the services host already claims `9428`. |
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue