• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

How to make a host win the HA Master Election

Duncan Epping · Sep 27, 2016 ·

On the community forums someone asked if it was possible to influence the HA/FDM master election. (For those who don’t know, FDM is the engineering name for vSphere HA.) Let me state first that I wouldn’t recommend doing this, but there actually is a way to make it very likely a certain host becomes the HA master. In this case this customer wanted to influence the outcome of the election as hosts are distributed across rooms and one host is less likely to fail than others due to power layout etc.

The setting is:

fdm.nodeGoodness

The explanation provided is:

When a master election is held, the FDMs exchange a goodness value, and the FDM with the largest goodness value is elected master. Ties are broken using the host IDs assigned by vCenter Server. This parameter can be used to override the computed goodness value for a given FDM. To force a specific host to be elected master each time an election is held and the host is active, set this option to a large positive value. This option should not be specified at the cluster level.

You can set this by manually editing the following file on the host where you want to increase the chances of winning the election:

/etc/opt/vmware/fdm/fdm.cfg

More details about this can be found in this KB, which also lists many other advanced options.

** Disclaimer: This article contains references to the words master and/or slave. I recognize these as exclusionary words. The words are used in this article for consistency because it’s currently the words that appear in the software, in the UI, and in the log files. When the software is updated to remove the words, this article will be updated to be in alignment. **

Share it:

  • Tweet

Related

Server

Reader Interactions

Comments

  1. tronar says

    27 September, 2016 at 11:47

    I thought there was a bias towards the host which connected to the most DSs.
    I wanted to check with the KB but I can not connect right now 🙁
    -Carlos

    • Duncan Epping says

      27 September, 2016 at 12:40

      Yes there is, but in most clusters (hopefully) this is equal

  2. Gizmostacks says

    30 September, 2016 at 07:03

    this is cool, we can elect a master of our choice without an election based on resources available. will try editing my config file and have a look on it. Thanks

Primary Sidebar

About the author

Duncan Epping is a Chief Technologist in the Office of CTO of the Cloud Platform BU at VMware. He is a VCDX (# 007), the author of the "vSAN Deep Dive", the “vSphere Clustering Technical Deep Dive” series, and the host of the "Unexplored Territory" podcast.

Upcoming Events

Feb 9th – Irish VMUG
Feb 23rd – Swiss VMUG
March 7th – Dutch VMUG
May 24th – VMUG Poland
June 1st – VMUG Belgium

Recommended Reads

Sponsors

Want to support Yellow-Bricks? Buy an advert!

Advertisements

Copyright Yellow-Bricks.com © 2023 · Log in