getDongleAllocStats
首发版本:3.00.6
语法
getDongleAllocStats()
详情
查询 License Server 过去 408 天内每天的 license 最大分配量。分配量是指通过 registerLicenseServerUser 或
setLicenseServerUserResource 为用户分配的 CPU 核数、内存和节点数。
系统在每日 0 点记录前一天的数据,并在 License Server 关闭时记录当天的数据。该函数仅限管理员在配置了 licenseFromDongle=true 的 License Server 上调用。
参数
无
返回值
返回一个表,包含以下字段:
| 字段 | 数据类型 | 含义 |
|---|---|---|
| date | DATE | 统计日期。 |
| cores | INT | 当天分配的最大 CPU 核数。 |
| memoryGB | INT | 当天分配的最大内存,单位为 GB。 |
| nodes | INT | 当天分配的最大节点数。 |
例子
以下示例需以管理员身份在配置了 licenseFromDongle=true 的 License Server 上执行。返回结果取决于实际授权分配情况。
getDongleAllocStats()
相关函数:getDongleUsageStats
