getLicenseServerResourceInfo

Synxtax

getLicenseServerResourceInfo()

Arguments

None

Details

A license server is a standalone server that communicates with other nodes and controls node startup. It receives requests for resources (memory and CPU cores) from other nodes. A node can only be started if its requested resources are available. You can configure localSite and licenseServerSite to enable/disable a license server.

This function obtains information regarding DolphinDB license managed by the license server and returns a dictionary:

  • expiration: license expiration date

  • availableCores: number of available CPU cores

  • availableMemory: available memory (in GB)

  • maxNodes: maximum number of nodes

  • maxMemory: maximum memory (in GB)

  • maxCores: maximum number of CPU cores

Examples

$ getLicenseServerResourceInfo()
expiration->2023.03.10
availableCores->10
availableMemory->52
maxNodes->4
maxMemory->64
maxCores->16