Memory Allocation

339 views
Skip to first unread message

Chka

unread,
Mar 2, 2018, 5:03:43 PM3/2/18
to Nomad
Hi,

I have following memories available in a three node cluster.

nomad@ip-10-3-1-0:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:          16046       14248         155         157        1642        1221
Swap:             0           0           0

nomad@ip-10-3-1-1:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:          16046       14203         199         149        1643        1274
Swap:             0           0           0

nomad@ip-10-3-1-2:~$ free -m
              total        used        free      shared  buff/cache   available
Mem:          16046       11861         183         149        4000        3588
Swap:             0           0           0

For some reason, nomad fails to run a task that requires 512M memory,

Placement Failure

Task Group "service":

  * Resources exhausted on 3 nodes

  * Dimension "memory" exhausted on 3 nodes


So the question is, isn't `Available` memory used to calculate resource allocation?


Thanks,

Chka


Chelsea Komlo

unread,
Mar 5, 2018, 10:33:10 AM3/5/18
to Chka, Nomad
Hi, thanks for writing us about this.

What is the output of `/v1/node/<id>` for each node? This should tell you the resources that Nomad thinks is available for that node. See here for more information: https://www.nomadproject.io/api/nodes.html#node_id

Thanks,
Chelsea

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/nomad/issues
IRC: #nomad-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Nomad" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nomad-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nomad-tool/fbf2dcc5-8766-424b-8b47-f4400292d3e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages