-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Duplicated index in allocation name #6829
Comments
Hi @pznamensky! The allocation indexes aren't guaranteed to be unique. The servers make a best-effort attempt to make this value unique from 0 to count-1 but when you have canaries on the task group, there are reused indexes since you have multiple job versions running at the same time. If you need a unique number for interpolating a value in your application, you can get this by combining the job version and the alloc index (which together should be unique). |
I'm going to close this issue as a duplicate of #5879. |
@tgross thanks for the explanation! |
@tgross, sorry for coming back to it, but what is the purpose of ALLOC INDEX? Since there is no guarantees it is unique, probably it would be reasonable to delete it at all. What do you think? |
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. |
Nomad version
Nomad v0.9.4 (a81aa84)
Operating system and Environment details
CentOS Linux release 7.7.1908 (Core)
docker-ce-18.03.1
Issue
Similar to #3698
After updating a nomad job some allocations got the same name.
Reproduction steps
nomad run
with that changesJob file (if appropriate)
The text was updated successfully, but these errors were encountered: