updateLicense
Syntax
updateLicense()
Details
Update the license without restarting the node.
After replacing the license file, executing this function can update the license without restarting the node.
The rules for applying updated configurations are as follows:
- Effective immediately: Updates to the expiration time (expiration) and the number of nodes (maxNodes) take effect immediately. After execution, you can use getLicenseExpiration to check whether the license file has been updated.
- Restart required: If configurations other than those above are modified, such as memory size (maxMemoryPerNode) or number of CPU cores (maxCoresPerNode), the DolphinDB Server must be restarted for the new license to take effect.
- The function only takes effect on the node where it is executed. For a cluster, it must be executed on all controllers, agents, and data nodes.
-
The license for update must satisfy the following conditions (which can be checked with function license):
-
The client name (clientName) and the authorization mode (authorization) of the license must be the same as the original license.
-
The number of nodes (maxNodes), memory size (maxMemoryPerNode) and the number of CPU cores (maxCoresPerNode) authorized by the license cannot be smaller than the original ones.
-
-
Online update is not supported if the original authorization is site.
Parameters
None
Returns
None
Examples
updateLicense()
/* output:
authorization->commercial
licenseType->0
maxMemoryPerNode->32
maxCoresPerNode->8
clientName->test license
bindCPU->true
expiration->2022.03.01
maxNodes->8
version->
modules->-1
*/
