license
Syntax
license([fileName], [pubKeyFile])
Arguments
fileName (optional) is the path of the license.
pubKeyFile (optional) is the path of the public key file.
Details
Display information regarding the DolphinDB license. If fileName is not specified, the license information from memory is obtained by default.
It returns a dictionary with the following keys:
Keys | Meaning |
---|---|
authorization | authorization types: trial/test/commercial |
licenseType | The license type:
|
maxMemoryPerNode | the maximum memory for each node (in GB) |
bindCores | CPU ID(s) (starting from 0) that are already bound to the DolphinDB process. Note that it takes effect only when bindCPU is configured to true. |
maxCoresPerNode | the maximum cores for each node |
clientName | the client name |
port | the port number bound to the node. It is returned only for the license server and its connected nodes. |
bindCPU | whether a DolphinDB process is bound to a CPU |
expiration | the expiration date of the license |
maxNodes | the maximum number of nodes for the cluster |
version | the version number of the server. Only a server that is not higher than the version can be used. If it is empty, there is no restriction on the version. |
modules | the module name. Only specified modules can be used. If modules = -1, there is no restriction on the module used. |
Examples
license();
authorization->free
licenseType->0
maxMemoryPerNode->4
maxCoresPerNode->2
clientName->Trial Users
bindCPU->true
expiration->2021.09.30
maxNodes->3
version->
modules->-1