Library scope: | GLOBAL |
---|
Robot library to monitor shard stability.
Copyright (c) 2017 Cisco Systems, Inc. and others. All rights reserved.
This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
This is a "stateful" library to monitor shard leaders and candidates. During the initial phase all leaders and followeres are stored and then checked with new value on verify. TODO: investigate whether pure stateless library would be easier or harder to use.
Requirements: ClusterManagement.ClusterManagement_Setup must be called before Shard_Stability_Init
It is possible to use it for stateless comparison. Variable @{DEFAULT_SHARD_LIST} contains default module shards.
Move default/topology config/operational shard location to local or remote node as requested towards the given member.
Compare two distionaries created by Shards_Stability_Get_Details
Return shard details stored in dictionary. ${shard_list} should be initialized as @{list} shard_name1:shard_type1 shard_name2:shard..
Initialize data for given shards. ${shard_list} should be initialized as @{list} shard_name1:shard_type1 shard_name2:shard..
Verify that present details as the same as the stored one from Shards_Stability_Init_Details
Verify default/topology config/operational shard leader location is as expected