473,416 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,416 developers and data experts.

AntDB Installation and Deployment Documentation - P1

26 16bit
Overview
The node types of AntDB cluster are gtmcoord (master and slave), coordinator, datanode (master and slave). ADBMGR is the cluster management node of AntDB, users can use this node to finish the cluster installation and deployment after installing and deploying ADBMGR. There are mainly five major steps.
•add host is to add all the host information in the cluster to the host table, which exists in ADBMGR to facilitate the management of cluster hosts.
•deploy deploys the binaries to all hosts in the cluster.
•start agent starts the agent process on the hosts, one agent per host.
•add node adds all nodes in the cluster (including gtmcoord, coordinator, datanode) to the node table, which exists on ADBMGR to facilitate the management of all types of nodes in the cluster.
•init all initializes the cluster, and once the initialization is complete, users can log in to the cluster to perform operations.
The following will introduce the installation and deployment of AntDB in detail, starting from the environment preparation.
Pre-installation Preparation
This section introduces the hardware devices and operating system that need to be prepared before installing AntDB.
Operating System
This section introduces the common operating system versions that AntDB is compatible with.

Hardware Environment
This section describes the hardware configuration required to install AntDB.

Installation files
Please obtain the installation package from the delivery person.
Linux Environment Configuration
This section describes the configuration of the Linux system before installing AntDB, including user creation, dependency installation, and system parameter adjustment.
User Configuration

New User Creation
Create a new normal user, such as uatadb, on all hosts where AntDB is to be installed (or use an existing normal user). For example, new user reference:
Expand|Select|Wrap|Line Numbers
  1. useradd -d /home/uatadb uatadb
  2. passwd uatadb
Configure the user limit parameters
Edit the /etc/security/limits.conf file and configure the antdb user parameters.
Expand|Select|Wrap|Line Numbers
  1. antdb soft nproc 65536
  2. antdb hard nproc 65536
  3. antdb soft nofile 278528
  4. antdb hard nofile 278528
  5. antdb soft stack unlimited
  6. antdb soft core unlimited
  7. antdb hard core unlimited
  8. antdb soft memlock 250000000
  9. antdb hard memlock 250000000
After saving the file, execute su - antdb to switch to antdb user and execute ulimit -a to check if it takes effect.
Configure user sudo privileges
If security allows, it is recommended to add sudo privileges to the antdb user. Execute visudo for the root user to edit the interface, find the line where Allow root to run any commands anywhere, and add below the line.
Expand|Select|Wrap|Line Numbers
  1. antdb ALL=(ALL) ALL
Save the file and exit. su - antdb Switch to the antdb user and execute sudo id. Expect to be prompted for the user password and the output will be
Expand|Select|Wrap|Line Numbers
  1. uid=0(root) gid=0(root) groups=0(root)
indicates that sudo privileges were added successfully.
System parameter adjustment

Turn off the firewall
Using the centos 7 operating system as an example:
1.Disable the firewall service.
Expand|Select|Wrap|Line Numbers
  1. systemctl stop firewalld.service
2.Disable the firewall self-start service.
Expand|Select|Wrap|Line Numbers
  1. systemctl disable firewalld.service
3.Check the firewall status.
Expand|Select|Wrap|Line Numbers
  1. systemctl status firewalld.service
Shut down numa and tuned
Take redhat/centos 7 system as an example:
1.Shut down numa.
Expand|Select|Wrap|Line Numbers
  1. grubby --update-kernel=ALL --args="numa=off " # This command modifies this file:
  2. /etc/grub2.cfg
  3. grub2-mkconfig
2.Shut down the tuned service.
Expand|Select|Wrap|Line Numbers
  1. systemctl stop tuned
  2. systemctl disable tuned
3.Reboot the host after the changes in this way take effect.
Expand|Select|Wrap|Line Numbers
  1. reboot
4.Verify the cmdline of grub after rebooting.
Expand|Select|Wrap|Line Numbers
  1. cat /proc/cmdline
5.Check numa
Expand|Select|Wrap|Line Numbers
  1. numactl --hardware
The expected result is Available: 1 nodes (0)
Turn off Transparent Huge Pages
The use of Transparent Huge Pages (THP for short) can cause performance problems, so it is recommended to turn them off.
1.Check the on status of Transparent Huge Pages.
Expand|Select|Wrap|Line Numbers
  1. cat /sys/kernel/mm/transparent_hugepage/enabled
If the result is [always] madvise never, then Transparent Huge Pages is on and needs to be turned off; if the result is always madvise [never], then Transparent Huge Pages is off and this step is skipped;
2.Turn off Transparent Huge Pages.
Expand|Select|Wrap|Line Numbers
  1. echo never > /sys/kernel/mm/transparent_hugepage/enabled
  2. echo never > /sys/kernel/mm/transparent_hugepage/defrag Check Transparent Large Page Open Status
3.Check again that the Transparent Big Page is on.
Expand|Select|Wrap|Line Numbers
  1. cat /sys/kernel/mm/transparent_hugepage/enabled
Configure sysctl.conf
1.Modify the sysctl.conf file.
Expand|Select|Wrap|Line Numbers
  1. cat >> /etc/sysctl.conf << EOF
  2. # add for antdb
  3. kernel.shmmax=137438953472 137438953472
  4. kernel.shmall=53689091
  5. kernel.shmmni=4096
  6. kernel.msgmnb=4203520
  7. kernel.msgmax=65536
  8. kernel.msgmni=32768
  9. kernel.sem=501000 641280000 501000 12800
  10.  
  11. fs.aio-max-nr=6553600
  12. fs.file-max=26289810
  13. net.core.rmem_default=8388608
  14. net.core.rmem_max=16777216
  15. net.core.wmem_default=8388608
  16. net.core.wmem_max=16777216
  17. net.core.netdev_max_backlog=262144
  18. net.core.somaxconn= 65535
  19. net.ipv4.tcp_rmem=8192 87380 16777216
  20. net.ipv4.tcp_wmem=8192 65536 16777216
  21. net.ipv4.tcp_max_syn_backlog=262144
  22. net.ipv4.tcp_keepalive_time=180
  23. net.ipv4.tcp_keepalive_intvl=10
  24. net.ipv4.tcp_keepalive_probes=3
  25. net.ipv4.tcp_fin_timeout=1
  26. net.ipv4.tcp_synack_retries=1
  27. net.ipv4.tcp_syn_retries=1
  28. net.ipv4.tcp_syncookies=1
  29. net.ipv4.tcp_timestamps=1
  30. net.ipv4.tcp_tw_recycle=1
  31. net.ipv4.tcp_tw_reuse=1
  32. net.ipv4.tcp_max_tw_buckets=256000
  33. net.ipv4.tcp_retries1=2
  34. net.ipv4.tcp_retries2=3
  35. vm.dirty_background_ratio=5
  36. vm.dirty_expire_centisecs=6000
  37. vm.dirty_writeback_centisecs=500
  38. vm.dirty_ratio=20
  39. vm.overcommit_memory=0
  40. vm.overcommit_ratio= 120
  41. vm.vfs_cache_pressure = 100
  42. vm.swappiness=10
  43. vm.drop_caches = 2
  44. vm.min_free_kbytes = 2048000
  45. vm.zone_reclaim_mode=0
  46. kernel.core_uses_pid=1
  47. kernel.core_pattern= /data/antdb/core/core-%e-%p-%s-%t
  48. fs.suid_dumpable=1
  49. kernel.sysrq=0
  50. EOF
The path of kernel.core_pattern needs to be modified according to the actual environment information.

2.execute the following command to make the above parameters effective.
Expand|Select|Wrap|Line Numbers
  1. sysctl -p
Software Installation and Deployment
This section describes how to install the AntDB Distributed Edition.
Distributed Edition (Single Center) Installation and Deployment

Installation using RPM packages (not recommended)

Dependency package installation
For offline environment, it is recommended to build a local yum source on the host computer through the image file of the operating system to facilitate the installation of dependencies. Under cento or redhat operating system, execute the following command to install the dependencies.
Expand|Select|Wrap|Line Numbers
  1. sudo yum install -y perl-ExtUtils-Embed
  2. sudo yum install -y flex
  3. sudo yum install -y bison
  4. sudo yum install -y readline-devel
  5. sudo yum install -y zlib-devel
  6. sudo yum install -y openssl-devel
  7. sudo yum install -y pam-devel
  8. sudo yum install -y libxml2-devel
  9. sudo yum install -y libxslt-devel
  10. sudo yum install -y openldap-devel
  11. sudo yum install -y python-devel
  12. sudo yum install -y gcc-c++ 
For other operating systems, please just change the installation command, and the dependency package names will remain the same. Some dependencies do not provide libssh2 package, you can install it by compiling the source code.
•Download at: https://www.libssh2.org/download/
•Source code compilation and installation (executed by root).
Expand|Select|Wrap|Line Numbers
  1. wget https://www.libssh2.org/download/libssh2-1.9.0.tar.gz
  2. tar xzvf libssh2-1.9.0.tar.gz
  3. cd libssh2-1.9.0
  4. ./configure
  5. make
  6. make install
Install RPM packages
Upload the RPM package provided by the delivery person to the server on the host where ADBMGR is located and install it under root or a user with sudo privileges. Install to the default path /opt/app/antdb.
Expand|Select|Wrap|Line Numbers
  1. sudo rpm -ivh antdb-xxx.rpm
If you want to install to other paths, you can do so as follows:
Expand|Select|Wrap|Line Numbers
  1. sudo rpm -ivh antdb-xxx.rpm --relocate=/opt/app/antdb=$ADBHOME
$ADBHOME as a custom directory, the name is best to be known by its name, e.g.:

Expand|Select|Wrap|Line Numbers
  1. /home/antdb/app/antdb
After the RPM package is installed, the value of the variable ADB_HOME will either be /opt/app/antdb, or a directory of your choice. Next, you need to modify the directory permissions:
Expand|Select|Wrap|Line Numbers
  1. sudo chown -R antdb:antdb $ADBHOME
  2. sudo chmod -R 755 $ADBHOME
Configure Environment Variables

After installing the RPM package, the initmgr and mgr_ctl executables will be generated in the bin directory of the specified directory (i.e. $ADBHOME directory). To initialize adbmgr you also need to configure the PATH variable to do so, by appending the following to the hidden file .bashrc under the current user (execute vim ~/.bashrc to open the file):

Expand|Select|Wrap|Line Numbers
  1. export ADBHOME=/opt/app/antdb
  2. export PATH=$ADBHOME/bin:$PATH
  3. export LD_LIBRARY_PATH=$ADBHOME/lib:$LD_LIBRARY_PATH
  4. export PGDATABASE=postgres
  5.  
  6. export mgrdata=/data/antdb/mgr1
  7. alias adbmgr='psql -p 6432 -d postgres '
  8. alias mgr_stop='mgr_ctl stop -D $mgrdata -m fast'
  9. alias mgr_start='mgr_ctl start -D $mgrdata' 
Note: ADBHOME needs to be set according to the path of the binary executable generated by the compilation of AntDB. mgrdata also needs to be modified according to the actual path of the respective environment. Then execute the following command to make it effective:

Expand|Select|Wrap|Line Numbers
  1. source ~/.bashrc
Install with tarball
Copy the installation package (ADB-Community.tar.gz) to the directory of AntDB user (e.g. uatadb) and change the permissions of the package.
Expand|Select|Wrap|Line Numbers
  1. chown -R uatadb:uatadb ADB-Community.tar.gz #Change the user permission of the installer to uatadb
Login to the new user to install AntDB
Expand|Select|Wrap|Line Numbers
  1. su - uatadb                           #Login to the newly created AntDB user
  2. tar -xzvf ADB-Community.tar.gz    #Unzip the installation package
  3. cd ADB-Community                  #Enter the extracted directory ADB-Community with the cd command 
Interactive installation
Execute sh AntDB_install.sh under ADB-Community to install AntDB interactively.
Expand|Select|Wrap|Line Numbers
  1. sh AntDB_install.sh
The interactive installation can be customized in three ways, as shown below. You can choose the default value or customize it. However, it is important to note that you must select "d" for the second place, which means that the installation is a distributed database.
Expand|Select|Wrap|Line Numbers
  1. # Step one:
  2. # Select whether you agree to the user agreement, only if you agree (Y) can you continue to install further, if you do not agree (N), the installation will stop.
  3. Do you agree?(Y/N)[Default:Y]
  4. You input:
  5. OK, you agree to the agreement. continue...
  6. check_agreement...success.
  7.  
  8. # Step two:
  9. # Select the mode which you want to install, centralized (c), distributed (d). The default selection is c, for a centralized installation. Enter Q to abort this installation.
  10. # Here, we choose d for a distributed database installation
  11. Please enter the deployment mode "(c)entralized" or "(d)istributed" or "Q" to exit the installation.[Default:centralized]d
  12. You input : d
  13.  
  14. # Step three:
  15. # Fill in the installation path. Note: You need to fill in the absolute path.
  16. # If the user does not enter the absolute path, just enter, it will be installed to the default path. Entering Q aborts this installation.
  17. Please enter a valid empty directory to install antdb. Or enter "Q/q" to exit the installation.[Default:/data/adb01/app/antdb]
  18. You input :
  19. Use default install path:[/data/adb01/app/antdb]. continue...
  20. check install path...
  21. check install path ...success.
  22. decompress_package...
  23. decompress_package...success.
  24. copy files...
  25. copy files...success.
  26. set bash environment...
  27. please excute cmd 'source /data/adb01/.bashrc' to make the environment variables take effect.
  28. set bash environment...success.
  29. set kernel config...
  30. Please refer to the following files in the installation directory to manually set the recommended kernel config.
  31. /data/adb01/app/antdb/setup/common/kernel_limits.conf
  32. /data/adb01/app/antdb/setup/common/kernel_sysctl.conf
  33. antdb install ...success.
After the above execution, according to the prompt, you need to source the environment variables, and after the source is done, the installation of the binaries is finished.
Expand|Select|Wrap|Line Numbers
  1. source /data/adb01/.bashrc
Deploy adbmgr

1.Initialize adbmgr.

Expand|Select|Wrap|Line Numbers
  1. initmgr -D $mgrdata
Where $mgrdata is the user-specified installation directory for adbmgr (this file directory needs to be created in advance). After initialization, the following files are generated in the specified directory.
Expand|Select|Wrap|Line Numbers
  1. [gd@INTEL175 ~]$ cd /data/antdb/mgr1 
  2. [gd@INTEL175 mgr1]$ ll
  3. total 112
  4. drwx------ 5 gd gd  4096 Oct 17 17:28 base
  5. drwx------ 2 gd gd  4096 Oct 17 17:28 global
  6. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_clog
  7. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_commit_ts
  8. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_dynshmem
  9. -rw------- 1 gd gd  4450 Oct 17 17:28 pg_hba.conf
  10. -rw------- 1 gd gd  1636 Oct 17 17:28 pg_ident.conf
  11. drwx------ 4 gd gd  4096 Oct 17 17:28 pg_logical
  12. drwx------ 4 gd gd  4096 Oct 17 17:28 pg_multixact
  13. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_notify
  14. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_replslot
  15. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_serial
  16. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_snapshots
  17. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_stat
  18. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_stat_tmp
  19. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_subtrans
  20. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_tblspc
  21. drwx------ 2 gd gd  4096 Oct 17 17:28 pg_twophase
  22. -rw------- 1 gd gd     4 Oct 17 17:28 PG_VERSION
  23. drwx------ 3 gd gd  4096 Oct 17 17:28 pg_xlog
  24. -rw------- 1 gd gd    88 Oct 17 17:28 postgresql.auto.conf
  25. -rw------- 1 gd gd 22234 Oct 17 17:28 postgresql.conf
2.Modify the adbmgr configuration parameters.
a. Modify postgresql.conf.
Expand|Select|Wrap|Line Numbers
  1. cat >> ${mgrdata}/postgresql.conf << EOF
  2. port = 6432
  3. listen_addresses = '*'
  4. log_directory = 'pg_log'
  5. log_destination ='csvlog'
  6. logging_collector = on
  7. log_min_messages = error
  8. max_wal_senders = 3
  9. hot_standby = on
  10. wal_level = replica
  11. EOF
The default port for adbmgr is 6432, and the user can set an available port according to the planning.
b. Modify pg_hba.conf.
Expand|Select|Wrap|Line Numbers
  1. cat >> ${mgrdata}/pg_hba.conf << EOF
  2. host replication all 10.0.0.0/8 trust
  3. host all all 10.0.0.0/8 trust
  4. EOF
The IP in hba needs to be modified according to the actual situation.
3.Start adbmgr; After adbmgr is initialized successfully, you can start it.

Expand|Select|Wrap|Line Numbers
  1. mgr_ctl start -D /data/antdb/mgr1
  2. /data/antdb/mgr 
To be consistent with the initialization path, both are the values of the variable mgrdata.

Expand|Select|Wrap|Line Numbers
  1. [gd@INTEL175 ~]$ mgr_ctl start -D /data/antdb/mgr
  2. server starting
  3. [gd@INTEL175 ~]$ LOG: database system was shut down at 2017-10-17 17:38:15 CST
  4. LOG: MultiXact member wraparound protections are now enabled
  5. LOG: database system is ready to accept connections
  6. LOG: autovacuum launcher started
  7. LOG: adb monitor launcher started
If adbmgr reports that the port is occupied during startup, the reason is that the current port number is already used by another process (adbmgr uses port 6432 by default). You need to change the value of the variable port in /data/antdb/mgr/postgresql.conf file so that it does not conflict with other processes. After starting, ps can view the processes of mgr as follows.
Expand|Select|Wrap|Line Numbers
  1. 67456 ?       S      0:00 /data/antdb/app/bin/adbmgrd -D mgr
  2. 67458 ?       Ss     0:00 \_ adbmgr: checkpointer process
  3. 67459 ?       Ss     0:00 \_ adbmgr: writer process    
  4. 67460 ?       Ss     0:00 \_ adbmgr: wal writer process    
  5. 67461 ?       Ss     0:00 \_ adbmgr: autovacuum launcher process   
  6. 67462 ?       Ss     0:00 \_ adbmgr: stats collector process   
  7. 67463 ?       Ss     0:00 \_ adbmgr: adb monitor launcher process
4.Configure standby adbmgr (optional); In a real production environment, adbmgr also needs to be highly available, so it is also necessary to configure a standby for adbmgr. The standby for adbmgr may not be added during the feature verification phase, and will be added later when high availability is verified. On the selected host where the adbmgr standby is deployed, use the antdb user to execute:
Expand|Select|Wrap|Line Numbers
  1. pg_basebackup -h 10.20.16.175 -p 6432 -U antdb -D /data/antdb/mgr --
  2. nodename mgr -Xs -Fp -R
Where:
•-h adb05 in adb05 is the hostname of the adbmgr master, where the IP can also be used.
•-p 6432 for the port of the adbmgr master.
•-U antdb means use antdb user to connect to adbmgr master.
•-D specifies the data directory of the adbmgr slave on the execution host, ensuring that the permissions are correct.
•Other parameters remain the same; after execution is complete, start adbmgr slave.
Expand|Select|Wrap|Line Numbers
  1.  mgr_ctl start -D /data/antdb/mgr_standby
The value of adbhome here should match the value of ADBHOME in .bashrc.
Add hosts and deploy binaries
1.Add host; add several hosts according to the planning, the cluster is deployed on several hosts.
Expand|Select|Wrap|Line Numbers
  1. add host hostname (port=22,protocol='ssh',adbhome='AntDB installation path coresponding to the host]',address='server IP',agentport=agent port number,user=host user);
•port: ssh port number, default 22.
•protocol: login protocol, default ssh, users can leave it out.
•adbhome: installation directory of antdb, the next deploy binary will copy the binary on mgr to this directory.
•address: host IP address (IPV4, IPV6 and domain names are supported).
•agentport: since an agent process will be started on each host, here is the corresponding port number.
•user: ssh login username; For example:
Expand|Select|Wrap|Line Numbers
  1. --IPv4
  2. add host host227(port=22,protocol='ssh',adbhome='/home/uatadb/app',address='10.23.16.227',agentport=31001,user='uatadb');
  3. add host host228(port=22,protocol='ssh',adbhome='/home/uatadb/app',address='10.23.16.228',agentport=31001,user='uatadb');
  4.  
  5. --IPv6
  6. add host host227(port=22,protocol='ssh',adbhome='/home/uatadb/app',address='fc00::227',agentport=31001,user='uatadb');
  7. add host host228(port=22,protocol='ssh',adbhome='/home/uatadb/app',address='fc00::228',agentport=31001,user='uatadb');
  8.  
  9. --doamin name
  10. add host host227(port=22,protocol='ssh',adbhome='/home/uatadb/app',address='adb227.host.com',agentport=31001,user='uatadb');
  11. add host host228(port=22,protocol='ssh',adbhome='/home/uatadb/app',address='adb228.host.com',agentport=31001,user='uatadb');
2.deploy binary program; The deploy command will package the AntDB binary executable files and send it to all hosts in the host table. If mutual trust is not set among the hosts in the cluster, deploy all requires user password (current user's login password), if mutual trust is set among the hosts, the tedious setting of password can be eliminated.

•Deploy all hosts at once:
Expand|Select|Wrap|Line Numbers
  1. deploy all password '123456';
•Deploy the specified hosts, for example, deploy the specified hosts adb01 and adb02:
Expand|Select|Wrap|Line Numbers
  1. deploy host227,host228 password '123456';
3.Start agent. There are two ways: start all the agents at once and start the specified host agent. Note: password is the linux system password corresponding to the host user in the host table, which is used to communicate with the host, not the user password of the AntDB database. When the password starts with a number, you need to add single quotes or double quotes, for example, password '12345z' is correct, password 12345z will report an error; if the password does not start with a number, you can add quotes or not.

•Start all agents at once:
Expand|Select|Wrap|Line Numbers
  1. start agent all password '123456';
•Start the specified agent, multiple hosts need to be executed multiple times, e.g.:
Expand|Select|Wrap|Line Numbers
  1. start agent host227,host228 password '123456';
  2. start agent host227 password '123456';
When the password is incorrect and the start of the agent fails, the following error is reported:
Expand|Select|Wrap|Line Numbers
  1. postgres=# start agent host227 password '123456abc'; 
  2. hostname | status | description                
  3. ------------+--------+------------------------------------------- 
  4. adb01 | f | Authentication failed (username/password)
  5. (1 row) 
Add Nodes
Add node information such as gtmcoord, coordinator, datanode master, datanode slave in Node table. Note: host name must be from host table, port number should not conflict, and the folder specified by path must be empty, otherwise the initialization will fail and error will be reported. This setting is to prevent users from operating and forgetting that there is useful data information under the current node. Add command:
1.add gtmcoord information. The slave node must have a different name from the master node, so the specified master must exist, and the same asynchronous relationship is set by the SYNC_STATE parameter.
Expand|Select|Wrap|Line Numbers
  1. add gtmcoord master name(host='localhost3',port=xxx, path='xxx');add gtmcoord slave name for maste_name(host='localhost2',port=xxx, path='xxx'
2.add coordinator node.
Expand|Select|Wrap|Line Numbers
  1. add coordinator master name(path = 'xxx', host='localhost1', port=xxx);
3.add datanode master node.
Expand|Select|Wrap|Line Numbers
  1. add datanode master name(path = 'xxx', host='localhost1', port=xxx);
4.add datanode slave node add datanode slave information, the slave node must have a different name from the master, so the specified master must exist, and the same asynchronous relationship is set by the SYNC_STATE parameter.
Expand|Select|Wrap|Line Numbers
  1. add datanode slave name for master_name (host='localhost2', port=xxx, path='xxx', SYNC_STATE='sync');
After adding, use the command list node to view the information of the node just added. A complete example: (gtmcoord/datanode are one master and one slave)
Expand|Select|Wrap|Line Numbers
  1. add host adb01(port=22,protocol='ssh',adbhome='/opt/app/antdb',address="10.1.226.201",agentport=8432,user='antdb');
  2. add host adb02(port=22,protocol='ssh',adbhome='/opt/app/antdb',address="10.1.226.202",agentport=8432,user='antdb'); 
  3. add host adb03(port=22,protocol='ssh',adbhome='/opt/app/antdb',address="10.1.226.203",agentport=8432,user='antdb'); 
  4. deploy all password '123456';
  5. start agent all password '123456';
  6. add gtmcoord master gc_1(host='adb03',port=6655, path='/home/antdb/data/gc_1'); 
  7. add gtmcoord slave gc_2 for gc_1(host='adb02',port=6655,path='/home/antdb/data/gc_2'); 
  8. add coordinator master cn1(host='adb01', port=5432,path = '/home/antdb/data/cn1'); 
  9. add coordinator master cn2(host='adb02', port=5432,path = '/home/antdb/data/cn2'); 
  10. add datanode master dn1_1(host='adb01', port=14332,path = '/home/antdb/data/dn1_1'); 
  11. add datanode slave dn1_2 for dn1_1 (host='db02',port=14332,path='/home/antdb/data/dn1_2'); 
  12. add datanode master dn2_1(host='adb02', port=24332,path = '/home/antdb/data/dn2_1'); 
  13. add datanode slave dn2_2 for dn2_1(host='adb01',port=24332,path='/home/antdb/data/dn2_2'); 
Recommendations on node deployment for production environments:
•At most one coordinator on each host, with the same port for each coordinator.
•Because the application can also connect to gtmcoord, the host with gtmcoord can no longer deploy the coordinator during deployment.
•the ports of the datanode can use the same port on different hosts according to a group of nodes (one master and multiple slaves as a group, e.g. dn1_x).
Jul 27 '23 #1
0 10141

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Milan | last post by:
Hi, I have created deployment for my vb.net (2005) application. In that i have one UDL file for which i have creayed shortcut in programm menu. I am facing one problem If user change UDL file...
0
by: antdb | last post by:
On the afternoon of July 11, AsiaInfo’s AntDB database v7.0 launch conference was successfully held online. Thousands of industry experts and customers who are interested in AsiaInfo, domestic...
0
by: antdb | last post by:
On July 27-28, 2022, the 24th China Expressway Informatization Conference and Technology Products Expo was held in Changsha, Hunan Province. With the theme of "Digitalization, Networking, Wisdom",...
0
by: antdb | last post by:
Recently, the “Telecommunication Industry Database Adaptation Test Business Specification” and “Telecommunication Industry Database Adaptation Test Technology Specifications” formulated by the...
0
by: antdb | last post by:
On December 28, the special session for databases of “Full-Stack Empowerment Through Digital Intelligence" - AsiaInfo 2022 Series Product Launch Event was held online. It is worth noting that...
0
by: antdb | last post by:
Storage management is an important module of database, which can be subdivided into memory management and external memory management. Each of these categories can be subdivided again. For example,...
0
by: antdb | last post by:
In recent years, China Mobile has been strengthening the independent and controllable construction of IT support system for business operation. AntDB has been cultivated in the core system of...
0
by: antdb | last post by:
Ⅱ. Download AntDB Community Version Download at: http://www.antdb.net/download, choose X86 version under Open Euler https://img1.imgtp.com/2023/06/14/hn1P9Kz2.png Ⅲ. Deploy AntDB Community...
0
by: antdb | last post by:
B.Distributed Deployment 1). Deploy the distributed software sh antdb_install.sh ### the difference between distributed and centralized software deployment is as follows...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.