masaori335 opened a new pull request, #13031:
URL: https://github.com/apache/trafficserver/pull/13031
# Summary
This PR merges storage.config (span/disk definitions) and volume.config
(volume allocation rules) into a single storage.yaml file, and adds
comprehensive documentation for the new format.
# Implementation
- Add YamlStorageConfig class (src/iocore/cache/YamlStorageConfig.cc/h) that
parses storage.yaml using yaml-cpp
- Refactor ConfigVol to use a nested Size struct replacing the old flat
size/percent/in_percent fields
- Add ConfigVol::Span and ConfigVol::Spans to express per-span volume
assignments directly in the config, replacing the old volume= annotation in
storage.config
- Add ConfigVolumes::complement() to auto-fill omitted sizes by distributing
remaining space evenly among volumes/spans without an explicit size
- Remove Span::forced_volume_num in favor of deriving exclusive span
assignments from the YAML structure at startup
- Remove ConfigVolumes::read_config_file() and BuildListFromString() —
volume config is now loaded as part of Store::read_config()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]