|
@@ -73,34 +73,34 @@ setup:
|
|
|
- do:
|
|
|
_internal.get_desired_balance: { }
|
|
|
|
|
|
- - is_true: 'cluster_balance_stats'
|
|
|
- - is_true: 'cluster_balance_stats.tiers'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.shard_count'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.shard_count.total'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.shard_count.min'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.shard_count.max'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.shard_count.average'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.shard_count.std_dev'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_write_load'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_write_load.total'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_write_load.min'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_write_load.max'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_write_load.average'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_write_load.std_dev'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.total'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.min'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.max'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.average'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.std_dev'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.actual_disk_usage'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.total'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.min'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.max'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.average'
|
|
|
- - is_true: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.std_dev'
|
|
|
- - is_true: 'cluster_balance_stats.nodes'
|
|
|
- - is_true: 'cluster_balance_stats.nodes.$node_name'
|
|
|
+ - exists: 'cluster_balance_stats'
|
|
|
+ - exists: 'cluster_balance_stats.tiers'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.shard_count'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.shard_count.total'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.shard_count.min'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.shard_count.max'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.shard_count.average'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.shard_count.std_dev'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_write_load'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_write_load.total'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_write_load.min'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_write_load.max'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_write_load.average'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_write_load.std_dev'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.total'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.min'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.max'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.average'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.forecast_disk_usage.std_dev'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.actual_disk_usage'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.total'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.min'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.max'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.average'
|
|
|
+ - exists: 'cluster_balance_stats.tiers.data_content.actual_disk_usage.std_dev'
|
|
|
+ - exists: 'cluster_balance_stats.nodes'
|
|
|
+ - exists: 'cluster_balance_stats.nodes.$node_name'
|
|
|
- gte: { 'cluster_balance_stats.nodes.$node_name.shard_count' : 0 }
|
|
|
- gte: { 'cluster_balance_stats.nodes.$node_name.forecast_write_load': 0.0 }
|
|
|
- gte: { 'cluster_balance_stats.nodes.$node_name.forecast_disk_usage_bytes' : 0 }
|
|
@@ -116,7 +116,7 @@ setup:
|
|
|
- do:
|
|
|
_internal.get_desired_balance: { }
|
|
|
|
|
|
- - is_true: 'cluster_info'
|
|
|
+ - exists: 'cluster_info'
|
|
|
|
|
|
---
|
|
|
"Test cluster_balance_stats contains node ID and roles":
|
|
@@ -133,9 +133,9 @@ setup:
|
|
|
- do:
|
|
|
_internal.get_desired_balance: { }
|
|
|
|
|
|
- - is_true: 'cluster_balance_stats.nodes.$node_name'
|
|
|
- - is_true: 'cluster_balance_stats.nodes.$node_name.node_id'
|
|
|
- - is_true: 'cluster_balance_stats.nodes.$node_name.roles'
|
|
|
+ - exists: 'cluster_balance_stats.nodes.$node_name'
|
|
|
+ - exists: 'cluster_balance_stats.nodes.$node_name.node_id'
|
|
|
+ - exists: 'cluster_balance_stats.nodes.$node_name.roles'
|
|
|
|
|
|
---
|
|
|
"Test tier_preference":
|
|
@@ -160,7 +160,7 @@ setup:
|
|
|
- do:
|
|
|
_internal.get_desired_balance: { }
|
|
|
|
|
|
- - is_true: 'routing_table.test.0.current.0.tier_preference'
|
|
|
+ - exists: 'routing_table.test.0.current.0.tier_preference'
|
|
|
|
|
|
---
|
|
|
"Test computed_shard_movements":
|