Combine multiple configuration files from a directory #44
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FrostFS storage node configuration approach may be simplified by breaking down the single big YAML file into smaller ones, each having one or several sections defined. It could simplify the integration with configuration management systems and to allow users to work with only a small part of what they really need to edit.
The proposed solution is:
Add a new configuration argument
config-dir
When set, read all
*.y[a]ml
files fromconfig-dir
and use Viper's MergeConfig functionality to produce the final configuration.Files must be processed in alphanumerical order so that 01.yaml may be extended with contents of 02.yaml.
Additional context
With separate configuration files it would be easier for configuration management systems to identify what part of configuration was changed and react properly. For example send
reload
signal instead of doing dullrestart
of a service.Related: