Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic support for maintenance mode of mesos #168

Merged
merged 3 commits into from Apr 25, 2017

Conversation

zmalik
Copy link
Contributor

@zmalik zmalik commented Apr 22, 2017

As mentioned in #163 the basic support to reject offers if the node is currently in maintenance window.

@alde
Copy link
Contributor

alde commented Apr 23, 2017

looks good to me, thanks for the PR

@zmalik
Copy link
Contributor Author

zmalik commented Apr 23, 2017

Discovered a bug while testing with mesos, so now a small fix as I was interpreting wrong the DurationInfo in last commit.

mesos/match.go Outdated
return nil
}

now := time.Now().UnixNano()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit of a nitpick but timestamps always puts my in worry about everything mode. So I think getting the current timestamp is better to do when we create the matcher (sent as an argument even) so the implementation can remain completely pure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

},
},
)
offerE := offer("offer-c", 1.8, 512.0,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be "offer-e" in the id-string

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@keis keis merged commit 42734e7 into eremetic-framework:master Apr 25, 2017
@keis
Copy link
Collaborator

keis commented Apr 25, 2017

Thanks a lot @zmalik

@zmalik zmalik deleted the feature/maintanence-mode branch April 25, 2017 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants