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

Feature proposal - Affinities #2509

Closed
yellowmegaman opened this issue Mar 31, 2017 · 10 comments
Closed

Feature proposal - Affinities #2509

yellowmegaman opened this issue Mar 31, 2017 · 10 comments

Comments

@yellowmegaman
Copy link

yellowmegaman commented Mar 31, 2017

I'd like to understand how to achieve wider interpretation in constraints.

Use case:

constraint {
  attribute = "${attr.unique.hostname}"
  regexp = "media"
}

But what happens when host media is down or drained? What i'd want - to have "preferred hosts" and ability to launch the app/container elsewhere if host is suddenly down down.

like:

regexp = value
regexp_preferred = value

Thanks a lot in advance!

@jippi
Copy link
Contributor

jippi commented Mar 31, 2017

I guess a feature like this would make sense once allocation rebalance / force allocation movement is in place :)

@dadgar
Copy link
Contributor

dadgar commented Mar 31, 2017

Hey this would be solved with affinities and not constraints. You would have two affinities, one for the preferred with a high weight and and then the secondary value with a lower weight. I am going to rename the issue.

To be clear this is on the roadmap.

@dadgar dadgar changed the title Feature proposal - constraint flexibility Feature proposal - Affinities Mar 31, 2017
@yellowmegaman
Copy link
Author

yellowmegaman commented Apr 1, 2017

Awesome! Thanks for clarification. Any milestone it can be attached to?
AFAIK roadmap is kept secret ;)

@dadgar
Copy link
Contributor

dadgar commented Apr 3, 2017

@yellowmegaman Not at this time. It will not be 0.6.0 and likely not 0.7 so some time after that.

@yellowmegaman
Copy link
Author

Well, patience is golden, it's in plans and that's great.

@yellowmegaman
Copy link
Author

Since creating this issue, I've reworked all containers to be host-independent, even databases. But not load balancers.

But still, sometimes i wish i could place priority for databases to be on higher IOPS instance/geo stuff without making strict constraint.

@jippi
Copy link
Contributor

jippi commented Aug 6, 2018

See #4513 - it will land in 0.9

@yellowmegaman
Copy link
Author

@jippi thanks!)

@endocrimes
Copy link
Contributor

Hey folks, Affinities have landed as part of the 0.9 betas - You can find documentation here. 😄

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants