Guide to setup Master Job Cache?

94 views
Skip to first unread message

Alok

unread,
Jun 20, 2023, 11:54:35 AM6/20/23
to Salt-users
I'm pretty much a beginner with Saltstack & similar event driven tools, so bear with me. I'm trying to setup a master job cache [redis is the choice of tool for us]. While the document here: https://docs.saltproject.io/en/latest/topics/jobs/external_cache.html#id3 does mention the config change for it, but I don't see, in any docs, how to go about the rest of it especially in case of Master Job Cache.

The returner mentioned here, I believe, is for external job cache where the minions will write directly to redis. I don't want that.

Can someone please point me in the right direction, docs etc which tells me what config changes are required & do I need to write a custom returner for redis? What changes would be needed in master.conf & should I create a _returner directory & write a custom writer there?

Any help would be appreciated

Simon Lundström

unread,
Jun 20, 2023, 2:17:31 PM6/20/23
to salt-...@googlegroups.com
On Wed, 2023-06-14 at 17:08:52 +0200, Alok wrote:
> I'm pretty much a beginner with Saltstack & similar event driven tools, so bear with me. I'm trying to setup a master job cache [redis is the choice of tool for us]. While the document here: https://docs.saltproject.io/en/latest/topics/jobs/external_cache.html#id3 does mention the config change for it, but I don't see, in any docs, how to go about the rest of it especially in case of Master Job Cache.
>
> The returner mentioned here, I believe, is for external job cache where the minions will write directly to redis. I don't want that.

Re-read the page slowly without stress. Especially the "Master Job Cache
- Master-Side Returner" and "Step 1: Understand Salt Returners" parts.


>
> Can someone please point me in the right direction, docs etc which tells me what config changes are required & do I need to write a custom returner for redis? What changes would be needed in master.conf & should I create a _returner directory & write a custom writer there?

That's not needed. redis was just an example how to write your own.
Maybe you need to search
https://docs.saltproject.io/en/latest/ref/returners/all/index.html as
well.

BR,
- Simon
Reply all
Reply to author
Forward
0 new messages