class SaltHost:
def init(get api token)
def execute_ord(send command string with token):
requests.post(url, headers={token auth dict}, data={tgt is ip, func is cmd.run, arg is linux order})
salt_host = new SaltHost()
x = salt_host.execute_ord(ip, 'ls /data')--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have multiple syndics in the environment. Once you introduce syndic into the salt architect, its whole lot more difficult to do things like retrieving jids and returns async.
By using external returner to retrieve results, u offload the burden on the master and faster retrieval of results from the minions.
On Aug 4, 2016 09:47, "Szymon Juraszczyk" <szy...@juraszczyk.com> wrote:
>
> On 2016-08-04 at 09:21, Daniel Jung wrote:
> > I use reactor plus returner for remote execution. Returner i am using is redis. I chose reactor over api for auth reasons.
> >
> > I have multiple syndics in the environment. Once you introduce syndic into the salt architect, its whole lot more difficult to do things like retrieving jids and returns async.
>
> Why is that? JID is still JID and the returns are passed back to the
> master on which the job was created (that is what the extra master_id
> attribute is for)
Are you running syndic in your enviornment? Do you get JID when you sent to salt-api (cherry) as return?
>
> > By using external returner to retrieve results, u offload the burden on the master and faster retrieval of results from the minions.
>
> That is certainly true that masters can be heavily loaded with job
> results. When I start a job on the master via API, ultimately the result
> comes back to it and appears on the event bus into which you can also
> tap via API.
>
> Can you share more details how you avoided passing job results to the
> master?
Srry if i gave the impression you can. I just dont use the returna from the master. By the way i have requested as a feature as an option to not send returns when returners are used.
And when you run 'salt -L minionname test.ping, where does it
> get the results from?
>
> --
> Regards,
> Szymon Juraszczyk, szy...@juraszczyk.com
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Salt-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/salt-users/BZDAhHXgj8c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to salt-users+...@googlegroups.com.
On Aug 4, 2016 14:14, "Daniel Jung" <mimian...@gmail.com> wrote:
>
>
> On Aug 4, 2016 09:47, "Szymon Juraszczyk" <szy...@juraszczyk.com> wrote:
> >
> > On 2016-08-04 at 09:21, Daniel Jung wrote:
> > > I use reactor plus returner for remote execution. Returner i am using is redis. I chose reactor over api for auth reasons.
> > >
> > > I have multiple syndics in the environment. Once you introduce syndic into the salt architect, its whole lot more difficult to do things like retrieving jids and returns async.
> >
> > Why is that? JID is still JID and the returns are passed back to the
> > master on which the job was created (that is what the extra master_id
> > attribute is for)
> Are you running syndic in your enviornment? Do you get JID when you sent to salt-api (cherry) as return?
Actually ignore my last comment, i meant to say result returns and not JId.
On Aug 4, 2016 14:48, "Szymon Juraszczyk" <szy...@juraszczyk.com> wrote:
>
> On 2016-08-04 at 23:18, Daniel Jung wrote:
> >> Are you running syndic in your enviornment? Do you get JID when you
> > sent to salt-api (cherry) as return?
> > Actually ignore my last comment, i meant to say result returns and not JId.
>
> Too late ;-) The results of asynchronous jobs do appear on the top-level
> master's event bus where they can be consumed from.
Yeah i dont rely on the returns from the syndics as with scale grows it starts to drop returns and what not.
There are shorn of
> some attributes (such as retcode for cmd.run) as we spoke recently
> (reported as https://github.com/saltstack/salt/issues/34992), which
> makes them useless for me, but I did a crude hack/fix for that. The bug
> is one of 1471 open High Severity bugs so I guess it will take a while
> before we can see it fixed properly. I couldn't share my changes there
> but I wrote in the comment of that issue where in my opinion the code
> should be fixed, in case you are still interested in that after 1.5
> years of finding it before I did
Haha i thought ur name sounded familiar.
I have also found alternative sol using returner :)
> --
> Regards,
> Szymon Juraszczyk, szy...@juraszczyk.com
>
Once you have so many minions spread among syndics and want to get all the returns to a single master all at once and saltmaster firing saltutil.find_job..to see if the jobs still running after some minions dont return. It starts to cause issues. Recently zmq highwater mark plus other zmq settings have been bumped to accommodate high number minions but i have yet to give it a try. With limited targets returning, it works really well, just not when you target too many.