Configurable Refuse Seconds
robertoayusob opened this issue · comments
I see we have hardcoded on scheduler.go line 20:
defaultFilter = &mesosproto.Filters{RefuseSeconds: proto.Float64(10)}
Why is it set to 10 seconds and no less or more?
It would be good if that could be configurable at the config file. and much better as two values, one used on driver.LaunchTasks
and the other on driver.DeclineOffer
That could be at /etc/eremetic/eremetic.yml like
launch_refuse_seconds: 2
decline_refuse_seconds: 10
We did not meditate very long when picking that value and there's nothing really special about it but it seems a pretty good default.
Making it configurable and having separate launch/decline values both sound like excellent ideas, a PR is very much welcome :)