Closed irvinlim closed 6 years ago
As to your question, I think the scheduler uses the underlying process.py
to detect mesos master change event, see: https://github.com/douban/pymesos/blob/master/pymesos/process.py#L145
LGTM. Thanks for your PR
Thank you! Sorry for the multiple commits, forgot that it should be on Python 3 as well. Can I get you to publish a version ASAP? Thank you! 🙇
@irvinlim Done. And multiple commits are OK, case Github support squash multi-commits.
I was getting errors like this when a new Mesos master was elected as leader and the old Mesos master was return 307 status codes, as described here:
I have added a check for 3xx response codes, and updated the daemon URI accordingly for subsequent requests.
I'm not sure if this is also required for
scheduler.py
, as I found that my scheduler worker was still working fine despite the leader change, not sure why as well.On the other hand, should I be using MasterDetector to handle this case instead? In any case, I feel like we should be supporting both use cases for Mesos master HA in any case.