Host scores values in RHV Self Hosted-Engine setup

Solution Verified - Updated -

Environment

  • Red Hat Virtualization 4.x
  • Red Hat Enterprise Virtualization 3.x
  • ovirt-hosted-engine-setup

Issue

  • Hosts in RHV Self Hosted-Engine setup get different scores, what does that score mean?

Resolution

  • Score is a value between 0 to 2400. And it represents host' suitability for running engine VM.

    • 0 means unsuitable
    • 2400 means all is well
  • The score is calculated based on host status. Each monitor (ping, cpu load, gateway status, ...) has a weight and contributes to the score.

Score weights:

1000 - gateway address is pingable
800 - host's management network bridge is up
400 - host has 4GB of memory free to run the engine VM
100 - host's cpu load is less than 80% of capacity
100 - host's memory usage is less than 80% of capacity

Adjustments:

-50 - subtraction for each failed vm startup attempt
0 - score reset to 0 after 3 attempts, for 10 minutes

Diagnostic Steps

  • To get the score of the host, run:
# hosted-engine --vm-status
  • It will show status of each host and its score.
    For instance:
Status up-to-date                  : True
Hostname                           : 10.10.177.193
Host ID                            : 2
Engine status                      : {"health": "good", "vm": "up", "detail": "up"}
Score                              : 2400                 <<--------------------
Local maintenance                  : False
Host timestamp                     : 1408390728
Extra metadata (valid at timestamp):
    metadata_parse_version=1
    metadata_feature_version=1
    timestamp=1408390728 (Mon Aug 18 15:38:48 2014)
    host-id=2
    score=2400
    maintenance=False
    state=EngineUp

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

This does not tell one how to determine "which" factor is bringing the score down.