2022-01-10 08:34:14 +00:00
|
|
|
{
|
|
|
|
"name": "HRW ordering",
|
|
|
|
"nodes": [
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Germany"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "10000"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Germany"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "France"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "10"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Russia"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "10000"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Russia"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "10000"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Russia"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "10000"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "France"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "100"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "France"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "7"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "10000"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"attributes": [
|
|
|
|
{
|
|
|
|
"key": "Country",
|
|
|
|
"value": "Russia"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Price",
|
|
|
|
"value": "2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"key": "Capacity",
|
|
|
|
"value": "1"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tests": {
|
|
|
|
"select 3 nodes in 3 distinct countries, same placement": {
|
2023-04-14 13:31:08 +00:00
|
|
|
"policy": {"replicas":[{"count":1,"selector":"Main"}],"containerBackupFactor":1,"selectors":[{"name":"Main","count":3,"clause":"DISTINCT","attribute":"Country","filter":"*"}],"filters":[]},
|
2022-01-10 08:34:14 +00:00
|
|
|
"pivot": "Y29udGFpbmVySUQ=",
|
2023-09-16 14:03:38 +00:00
|
|
|
"result": [[0, 2, 3]],
|
2022-01-10 08:34:14 +00:00
|
|
|
"placement": {
|
|
|
|
"pivot": "b2JqZWN0SUQ=",
|
2023-09-16 14:03:38 +00:00
|
|
|
"result": [[0, 2, 3]]
|
2022-01-10 08:34:14 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"select 6 nodes in 3 distinct countries, different placement": {
|
2023-04-14 13:31:08 +00:00
|
|
|
"policy": {"replicas":[{"count":1,"selector":"Main"}],"containerBackupFactor":2,"selectors":[{"name":"Main","count":3,"clause":"DISTINCT","attribute":"Country","filter":"*"}],"filters":[]},
|
2022-01-10 08:34:14 +00:00
|
|
|
"pivot": "Y29udGFpbmVySUQ=",
|
2023-09-16 14:03:38 +00:00
|
|
|
"result": [[0, 1, 2, 6, 3, 4]],
|
2022-01-10 08:34:14 +00:00
|
|
|
"placement": {
|
|
|
|
"pivot": "b2JqZWN0SUQ=",
|
2023-09-16 14:03:38 +00:00
|
|
|
"result": [[0, 1, 2, 6, 3, 4]]
|
2022-01-10 08:34:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-03-03 09:29:33 +00:00
|
|
|
}
|