Skip to content

Instantly share code, notes, and snippets.

@austinpapp
Last active November 8, 2016 20:43
Show Gist options
  • Save austinpapp/04fec010face89ebe48e08aba7310cd4 to your computer and use it in GitHub Desktop.
Save austinpapp/04fec010face89ebe48e08aba7310cd4 to your computer and use it in GitHub Desktop.

Minion configured

With minion installed. Also, minion config has the master ip set Looking at the manage output, this makes sense to me.

[root@saltmaster ~]# time salt-run manage.status
down:
up:
    - minion1
    - syndic

real	0m5.675s
user	0m0.445s
sys	0m0.153s

[root@saltmaster ~]# time salt \* test.ping
syndic:
    True
minion1:
    True

real	0m5.343s
user	0m0.288s
sys	0m0.077s

No minion configured

Looking at the manage output, this does not make sense to me. its not exactly down. however the performance is pretty much unacceptable. my understanding here is that there was an arbitary value set for a timeout which causes the seeminly poor performance problem. i guess the primary issue is that master-master has no idea how many minions it will talk to and thus can't determine a proper timeout (given the syndic is simply relaying). however, you have the issue on the other side of the timeout is too short if its talking to a large number of the infrastructure. it would seem to make some sense to potentially have the master-master have an idea as to the number of syndics it talks to and make a better call from there. maybe returns back a number of minions attached and you can assign a timeout value to each minion.

the other thought maybe to allow a prefix of the syndic name as it might be useful to know where the minions are sitting (unders what syndic's control). maybe i should PR that :)

[root@saltmaster ~]# time salt-run manage.status
down:
    - syndic
up:
    - minion1

real	0m20.705s
user	0m0.603s
sys	0m0.139s

[root@saltmaster ~]# time salt \* test.ping
minion1:
    True

real	0m20.594s
user	0m0.436s
sys	0m0.093s```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment