saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://repo.saltproject.io/
Apache License 2.0
14.14k stars 5.47k forks source link

master store minion in redis or other backends #34238

Open derek0377 opened 8 years ago

derek0377 commented 8 years ago

Hi,we have 10000 minions, but master store minions key in local file system,read and write speed is limited, Do have some other backends like redis?

Thank you!

Ch3LL commented 8 years ago

@derek0377 this is currently not available to specify a different backend for the keys. This is related to #25284 and #5752 which the requests are similar. But I will keep this one open to track this for adding the ability to manage keys in redis. Thanks

derek0377 commented 8 years ago

@Ch3LL , sorry to disturb, I think support multi-backbends with session and token function for salt-api is good! As really do not use single salt-master,would perfer standby or cluster, Do salt support multi-backends for session and token of salt-api? thanks!

whiteinge commented 8 years ago

@derek0377 not at the moment. Pluggable backend storage for sharing eauth tokens (in addition to minion keys described in OP) would be a great addition to Salt.

If you have an immediate need and if you don't mind hacking your own solution see the conversation below for some ideas:

https://gitter.im/cherrypy/cherrypy?at=576962e9c417e36c69e4c697

cachedout commented 8 years ago

This is actually on our short list for features. Hopefully we'll have some movement here soon.

whiteinge commented 8 years ago

@cachedout is there a single issue to track that addition? IMO it would be helpful to enumerate all the needed things. The pki dir is an obvious addition, but there's more than one cache (grains, mine, files, etc), and eauth tokens will be an easy one to overlook/forget.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

OrangeDog commented 4 years ago

@cachedout this should probably be reopened

cachedout commented 4 years ago

@OrangeDog I agree but I don't have any GitHub permissions to do so. :) @sagetherage ?

Akm0d commented 4 years ago

Reopening based on https://github.com/saltstack/salt/issues/57449

Deshke commented 4 years ago

cool, is there any progress on this ?