Skip to main content
Element Software
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

获取 BinAssignmentProperties

贡献者 netapp-pcarriga

你可以使用 `GetBinAssignmentProperties`用于从数据库中检索箱分配属性的方法。

参数

该方法没有输入参数。

返回值

该方法返回以下值:

名称 描述 类型

特性

详细列出数据库中所有当前仓库分配的属性。

binAssignmentProperties 数组

请求示例

该方法的请求类似于以下示例:

{
    "method": "GetBinAssignmentProperties",
    "params": {
    },
    "id": 1
}

响应示例

此方法返回类似于以下示例的响应:

{
    "id": 1,
    "result": {
        "properties": {
            "algorithmRuntimeMS": 1105,
            "areReplicasValid": true,
            "binCount": 65536,
            "isBalanced": true,
            "isStable": true,
            "isWellCoupled": false,
            "layout": [
                {
                    "protectionDomainName": "1",
                    "services": [
                        {
                            "budget": 7281,
                            "serviceID": 16
                        },
                        {
                            "budget": 7281,
                            "serviceID": 19
                        },
                        {
                            "budget": 7281,
                            "serviceID": 24
                        }
                    ]
                },
                {
                    "protectionDomainName": "2",
                    "services": [
                        {
                            "budget": 7281,
                            "serviceID": 17
                        },
                        {
                            "budget": 7281,
                            "serviceID": 20
                        },
                        {
                            "budget": 7281,
                            "serviceID": 22
                        }
                    ]
                },
                {
                    "protectionDomainName": "3",
                    "services": [
                        {
                            "budget": 7281,
                            "serviceID": 18
                        },
                        {
                            "budget": 7281,
                            "serviceID": 21
                        },
                        {
                            "budget": 7281,
                            "serviceID": 23
                        }
                    ]
                }
            ],
            "numSwaps": 0,
            "numUpdatingBins": 0,
            "protectionDomainType": "node",
            "reason": "Final",
            "replicationCount": 2,
            "requestRebalance": false,
            "serviceStrandedCapacities": [],
            "timePublished": "2020-04-02T18:34:07.807681Z",
            "validSchemes": []
        }
    }
}

自版本以来的新版本

12.0