updateLicense

Syntax

updateLicense()

Arguments

None

Details

Update the license without restarting the node.

After replacing the license file, executing this function can update the license without restarting the node. You can execute getLicenseExpiration to check whether the license file has been updated.

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.

Note:

  • 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 trial or site.

Examples

$ updateLicense()
authorization->commercial
licenseType->0
maxMemoryPerNode->32
maxCoresPerNode->8
clientName->test license
bindCPU->true
expiration->2022.03.01
maxNodes->8
version->
modules->-1