Skip to content

[FEATURE REQUEST] Split grains, pillar, and mine caches #64603

@nf-brentsaner

Description

@nf-brentsaner

Is your feature request related to a problem? Please describe.
Currently, minion_data_cache via master configs only supports a boolean. There is no way to explicitly enable/disable the grain cache, pillar cache, and/or mine cache.

Further, if one wishes to disable caching of these, mines are rendered completely nonfunctional. (Which I guess makes sense/I understand why, now, but the configuration comment is nowhere near clear about this and if one wishes to disable caching of grains or the pillar, they must also completely sacrifice mine functionality.)

Describe the solution you'd like
Configuration directives to selectively enable/disable caches per grains/pillar/mine. (And, for bonus points, the ability to selectively do this per minion targeting as well.)

Describe alternatives you've considered
(There are none)

Additional context
I believe they already cache to separate files (<master cache>/minions/<minion id>/{data,pillar,mine}.p)?. If so, this should have minimal impact.

Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featurenew functionality including changes to functionality and code refactors, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions