【AntDB-T Installation and Deployment Documentation】Distributed Database Copyright Installation
Distributed database without license file
The trial license file is created during MGR installation: adb_license_trail, the data in the file is the encrypted expiration period, and the expiration period is the current time + 30 days. The trial license file will be copied to the backup library during the pg_basebackup.
MGR adds nodes, and after node initialization, the master node in the cluster generates the trial license file by itself when it initializes.
Distributed database with license file
Users need to go to the company's GTM platform to apply for the database license and get the license file.
Place the license file into the data directory of the MGR master and backup, then connect to the MGR master and backup respectively, switch to sql mode, execute activate antdb_license to activate the license of the MGR master and backup, and if there is a sub-center, also place the license file into the MGR of the sub-center and execute the activation command.
In the MGR node, execute the MGR command activate antdb_license all to distribute the license files in the MGR data directory to the data directories of the cluster GC master, CN master, and DN master (including the primary and secondary centers), and activate the licenses of the cluster GC master, CN master, and DN master.
Activate by activate command:
activate antdb_license all; #Activate the license file in the data directory of the mgr.
activate antdb_license XXX; #Activate the license file for a node
activate antdb_license XXX,XXX,…; #Activating license file for certain nodes
Append DN/CN master node by APPEND command (except APPEND CN master FOR method), after initdb, send the official license file in MGR data directory to the appended node, and finally start the node to make the license effective.
Distributed cluster append backup node, append CN master node by APPEND CN master FOR, add sub-center, and expand capacity are all backed up to the node by pg_basebackup. pg_basebackup will back up the license file in the data directory.
License Information Viewing
License information can be viewed with the show command. Since the init time of each node is different, the license information of the trial version of each node is different, so it will be shown one by one when you show.
If you have applied for a commercial license file, after activating antdb_license all, the license information of each node will be the same, and the show will show one piece of information.
show antdb_license all; #View license information for all nodes
show antdb_license XXX,XXX,…; #View license information for certain nodes
License expiration
After the license expires, it does not affect the use of the whole cluster. After replacing the latest license file, you can use it normally after activation.