Minion Limiting

10 views
Skip to first unread message

Albert L.

unread,
Nov 5, 2014, 10:30:07 PM11/5/14
to hydr...@googlegroups.com
Hi All,

How does one set the maximum number of minions per host? I believe the default is 3. Thanks!


Albert L.
NewBrand

Ian Barfield

unread,
Nov 5, 2014, 11:43:16 PM11/5/14
to Albert L., hydr...@googlegroups.com

Looks like a system property:

"minion.max.active.tasks"

--
You received this message because you are subscribed to the Google Groups "hydra-oss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hydra-oss+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Albert Law

unread,
Nov 6, 2014, 9:21:10 AM11/6/14
to hydr...@googlegroups.com
Works! Thanks, Ian!
--
Albert Law
Lead Engineer - Data Acquisition
NewBrand
http://www.newbrandanalytics.com/

Ian Barfield

unread,
Nov 6, 2014, 3:55:14 PM11/6/14
to Albert Law, hydr...@googlegroups.com
In case it is helpful in the future, this is how I checked:

These settings are almost always either system properties or codec fields, and codec fields can be controlled with system properties. So I just opened `Minion.java` and looked at the first dozen or so lines (discounting the license/imports/etc which a decent editor should fold away).


It was the 16th property down.

If it was a system property defined in another class. I probably would have tried doing find usages on `Parameter.intValue` scoped to the minion package and worked out from there. I wouldn't have been able to do that on my phone though so there would have been a larger delay.

If it had been a codec field, then the default values defined in `reference.conf` files (and their "included" friends) all usually contain legacy support in the form of aliases for the old system property paths. Codec fields can be controlled by using the fully qualified class name + "." + field name. You probably don't have codec-3 in your version of hydra, so you could just use the path from the part that would look something like `maxTasks = ${?minion.max.active.tasks}`. (or checkout your version and apply the steps from the first case).


Albert Law

unread,
Nov 6, 2014, 8:39:33 PM11/6/14
to hydr...@googlegroups.com
Cool, thanks for the explanation. I'm not sure I would have made some
of those connections. :)
Reply all
Reply to author
Forward
0 new messages