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

SEP-19: Allocator changes for standby-aware container allocation #889

Closed

Conversation

rmatharu-zz
Copy link
Contributor

@rmatharu-zz rmatharu-zz commented Jan 23, 2019

This PR makes the following changes:

  • Adds a map called standbyContainerConstraints which stores standby constraints for each container in the job model. The logic for populating the map using the job model is added as Util class.

  • Adds a check before runStreamProcessor, where the standbyContainerConstraints is checked before launching, if the check succeeds container is launched. If standbyTasks are not enabled in config, existing behaviour is retained.

  • Adds logic to handle standbyContainerConstraints check failures, which entails releasing the resource, and making an any-host request for the container.

  • Adds logic in SamzaResourceRequest to order container request such that active-containers take precedence over standby, otherwise based on request-timestamp.

  • Adds metrics to capture FailedStandbyAllocations (due to standby constraints) and successful standby allocations.

Tested on dev setup and a test cluster.

@rmatharu-zz rmatharu-zz changed the title Test basic standby allocator SEP-19: Allocator changes for standby-aware container allocation Jan 25, 2019
@rmatharu-zz
Copy link
Contributor Author

Closing it, in lieu of #903.

@rmatharu-zz rmatharu-zz closed this Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants