Find available hosts in entire compute nodes on the basis of flavor

asked 2019-01-02 19:50:36 -0600

ileixe gravatar image

Hi.

We meet several times our clusters are running of resources emitting 'host not available' messages.

After the events, we usually adds more compute node for scaling up. We want to track the resource (compute node)'s depletion so that we made custom API. It looks like this

  • How many servers with 'm1.small' flavor can be made in entire compute nodes?
  • How many servers with 'm1.large' flavor can be made in entire compute nodes?
  • How many IPs are remained in entire compute nodes?

It is implemented by getting hypervisor and flavor, comparing one by one. I think it's general operation requirements (How many servers can be made?), so I'm curious how others deal with the problem.

Thanks!

edit retag flag offensive close merge delete