官术网_书友最值得收藏!

How does HA and data duplication work?

As we just said, HA duplicates all incoming resource data so that two copies exist instead of one in both the GemFire cache and Persistence layers. This is done by creating a secondary copy of each piece of data that is used in queries, if the node hosting a primary copy is unavailable.

It is important to note that as HA is simply creating a secondary copy of each piece of data, as such only one node failure can be sustained at a time (N-1) without data loss, regardless of the cluster size. If a node is down, a new secondary shard of the data is not created unless the original node is removed from the cluster permanently.

When a failed node becomes available again, a node is placed into recovery mode. During this time, data is synchronized with the other cluster members and when the synchronization is complete, the node is returned to active status:

Let's run through this process using the diagram above for an example, about how incoming data or the creation of a new object is handled in an HA configuration. In the above diagram, R3 represents our new resource, and R3' represents the secondary copy:

  1. A running adapter instance receives data from vCenter, as it is required to create a new resource for the new object, and a discovery task is created.
  2. The discovery task is passed to the cluster. This task could be passed to any one node in the cluster, and once assigned, that node is responsible for completing the task.
  3. A new analytics item is created for the new object in the GemFire cache on any node in the cluster.
  4. A secondary copy of the data is created on a different node to protect against failure.
  5. The system then saves the data to the Persistence layer. The object is created in the inventory (HIS), and its statistics are stored in the FSDB.
  6. A secondary copy of the saved (GemFire Persistence sharding) HIS and FSDB data is stored on a different node to protect against data loss.

The following diagram shows the same duplication process, but this time for a non-HA setup:

In a non-HA scenario, the following happens when a new object is discovered:

  1. A new object is discovered by the adapter, which is located in the Collector.
  2. The Collector receives the object’s metric and property information from the adapter.
  3. The Collector sends the object information to the Controller.
  4. The global database is updated with the new object type information. The object is created in the central database.
  5. The object is also cached by the analytics component.
  6. The Alerts database is updated with object information.
主站蜘蛛池模板: 商水县| 宜昌市| 福鼎市| 寿阳县| 宜黄县| 漠河县| 永和县| 玛多县| 孝昌县| 常州市| 墨竹工卡县| 盐池县| 东兴市| 深圳市| 曲沃县| 英德市| 深州市| 岐山县| 恩平市| 上虞市| 娱乐| 崇礼县| 舞阳县| 勃利县| 闸北区| 尼勒克县| 永顺县| 万州区| 广州市| 额尔古纳市| 东辽县| 黄梅县| 赣榆县| 麻城市| 田东县| 江阴市| 蒲城县| 阿鲁科尔沁旗| 通化市| 新郑市| 大渡口区|