license

Syntax

license([fileName], [pubKeyFile])

Arguments

fileName is optional parameters. The path of the license.

pubKeyFile is optional parameters. The path of the public key file.

Details

Display information regarding the DolphinDB license.

It returns a dictionary with the following keys:

Keys

Meaning

authorization

authorization types: trial/test/commercial

licenseType

The license type: 1: fingerprint authentication; 2: online verification; 3: license server; 0: others

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