-
Notifications
You must be signed in to change notification settings - Fork 189
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
Use Mesos task labels to tag requests #823
Comments
We already support setting labels in the API (via #657 -- the |
Oh, I did miss that in the docs. However, when I set my labels with the following:
The mesos task does not seem to be populated with them, this is what I get from
Am I setting the labels properly in my deploy definition? |
I'm guessing I am, since the labels are reported back in Singularity API on that request's active deploy. Are Singularity's labels not designed to bubble up all the way to the corresponding Mesos task? |
Hey, thanks for pointing this out. I had honestly thought I wired this up when we moved to 0.23, but I guess I missed it. Fixed in #824 once I test and get it merged in |
@apognu task label fix has been merged to master |
Mesos 0.22 introduced task labels as a way of adding metadata to tasks.
It would be useful to be able to tag the requests in Singularity (and therefore the tasks that are spawned from its deploys) during their creation (and even afterwards). Possible use-cases would be monitoring, load-balancing or any external system that could need to select tasks by arbitrary metadata.
As far as I know, the only way to do that with Singularity would be to encode those metadata into the request name, making for rigid (and long) IDs.
Is such a feature planned or being discussed?
Regards.
The text was updated successfully, but these errors were encountered: