473,416 Members | 1,503 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.

How to deploy AntDB Community Version on a virtual machine on VMware Workstation—P3

26 16bit
B.Distributed Deployment
1). Deploy the distributed software
sh antdb_install.sh ### the difference between distributed and centralized software deployment is as follows

2). Configure ssh-free between servers, configure sudo privileges for antdb users
ssh-keygen -t rsa
ssh-copy-id 192.168.37.130
ssh-copy-id 192.168.37.131
ssh-copy-id 192.168.37.132

visudo (operate on 3 machines)

3). Turn off the firewall, selinux (operate on 3 machines)
systemctl stop firewalld.service
systemctl status firewalld.service

vi /etc/selinux/config (Modifying selinux requires a reboot of the host, operate on 3 machines)

Temporary shutdown can be done with setenforce 0

4). Edit the distributed installation configuration file
cd /home/antdb/antdb-ce-7.2.0.openeuler20.x86_64/setup/common

vi initconf-d.ini
## clusterinfo configuration item description:
##
## cluster_type Classification:
## D indicates distributed version: all information in this file needs to be configured
## cluster_name: name of the database cluster
## cluster_user: The superuser of the database, usually is the operating system user who executes this installer

[clusterinfo]
cluster_type = D
cluster_name = antdbcluster
cluster_user = antdb


## mgr_info configuration item description (mgr is a distributed management node).
##
## antdb_apppath: the program directory of mgr node database
## antdb_datapath: the data directory of the mgr node database; it needs to be set as an empty directory and not crossed with the directories in other configuration items
## antdb_password: the initial password for the superuser of the database (see "cluster_user" for the superuser)
## antdb_port: the port number of the mgr node database
## primary_ip: the mgr node database ip, i.e. the host ip where this installer is executed
## primary_sshport: the SSH service port number of the host executing this installer

[mgr_info]
primary_ip = 192.168.37.130 ###the ip address of management node mgr
primary_sshport = 22
antdb_apppath = /home/antdb/app1/antdb ###antdb software directory
antdb_datapath = /home/antdb/data/mgr ###antdb mgr management node directory
antdb_password = antdb
antdb_port = 6656


## host_info configuration item description
##
## host_info format: hostname,protocol_port,protocol,antdb_apppath,antd b_agent_port,host_user,host_ip
## host_name: the name used to identify a host within AntDB, unique
## protocol_port: the service port number of the communication protocol used by AntDB (currently SSH port)
## protocol: the communication protocol that AntDB relies on (currently SSH)
## antdb_apppath: the installation directory of AntDB program on the host; it needs to be specified as an empty directory, which will be installed automatically during the initialization process
## antdb_agent_port: The port number used by the program AntDB Agent on the host
## host_user: The user of the operating system on the host, usually is the same username as in mgr_info
## host_ip: host ip address

[host_info]
host = adb01,22,ssh,/home/antdb/app1/antdb,60102,antdb,192.168.37.130 ###change to the corresponding IP address of the distributed machine
host = adb02,22,ssh,/home/antdb/app1/antdb,60102,antdb,192.168.37.131 ###change to the corresponding IP address of the distributed machine
host = adb03,22,ssh,/home/antdb/app1/antdb,60102,antdb,192.168.37.132 ###change to the corresponding IP address of the distributed machine



## node_info configuration item description
##
## node_info format: node_name,node_type,host_name,antdbdb_port,antdb_d atapath,role[,master_nodename,sync_mode]
## node_name: distributed node name, as the internal identifier of AntDB, unique
## node_type: distributed node type, including GC, CN, DN
## host_name: the host where this node is located, see host_info above
## antdbdb_port: the port number used by this node
## antdb_datapath: the database data directory used by this node; it needs to be specified as an empty directory
## role: the role of this node, including master (primary node), slave (standby node)
## master_nodename: the name of the primary node; this is required when the node type is slave
## sync_mode: the type of the backup node, including sync (synchronous), async (asynchronous); this is required when the node type is slave

### cluster networking, the architecture is 2 CN nodes, 1 DN master, 1 DN slave, 1 GTM master, 1 GTM slave, and the adb01,adb02,adb03 inside are the hosts added by [host_info].
[node_info]
node = cn1,CN,adb01,6655,/home/antdb/data/cn1,master
node = cn2,CN,adb02,6655,/home/antdb/data/cn2,master
node = dn1,DN,adb02,60105,/home/antdb/data/dn1,master
node = dn2,DN,adb03,60106,/home/antdb/data/dn2,slave,dn1,sync
node = gc_1,GC,adb03,60103,/home/antdb/data/gc_1,master
node = gc_2,GC,adb01,60103,/home/antdb/data/gc_2,slave,gc_1,sync

5). Execute initialization
sh antdb_init.sh -c ./setup/common/initconf-d.ini

...
...

The [Info] AntDB init succeeds appears, indicating that the distributed cluster was deployed successfully. The distributed cluster architecture is consistent with the configuration file.


6). After deployment, antdb will dynamically adjust the OS parameter limits, resource usage limits, and database parameters according to the server resource configuration

cat /etc/security/limits.conf ###resource limits

database parameters

7). Distributed database testing
Execute adb_list to view the distributed cluster

Enter to the mgr management node and check the cluster status
psql -p 6656 -d postgres


Login to CN1 node, execute the operation, go to CN2 node to view the data
Create database on CN1, and insert data

Query on CN2

View data on DN, only one DN master node is needed


The above is all about AntDB Community Version deployment on VMware Workstation virtual machine. AntDB Database team welcomes you to download and experience our product, and come to AntDB Q&A community to share your deployment experience to help us improve AntDB Community Version better.
AntDB Database Online Experience Lab: http://www.antdb.net/training
AntDB Q & A Community:http://ask.antdb.net/

[Tips] If you need the corresponding database migration tool of AntDB Community Version, you can contact the official staff to provide the support.
Jun 19 '23 #1
0 16476

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

Similar topics

5
by: Terry Murray | last post by:
Hi Everybody: I am being told that I need to download and install the Java Virtual Machine when trying run a simple applet. Can anyone point me to a url where I can download it? I am having...
12
by: tmb | last post by:
1 - Is Microsoft dotnet a Virtual Machine... like the Java Virtual Machine... that will run on any operating system? 2 - If so, does Microsoft give away the dotnet development system like Sun...
6
by: DraguVaso | last post by:
Hi, I have a, maybe strange looking, question: Is there any way to obstruct developpers to Develop and or Deploy a newer version of a VB.NET-application? Things should happen like this: -...
0
by: ccrabfo | last post by:
Has anyone ever implemented embedding a "virtual host" or "virual machine" environment inside your C/C++ programs so that end-users could write small snippets of customized code, compile it using...
43
by: Minti | last post by:
Hi there everybody, I was just wondering that too many people choose to use language like Java because of its architecture independence, this AI is achieved because Java is as such a...
0
by: Michiel | last post by:
Hello, Can anyone give me an idea of what classes/interfaces I could use when I want to detect the presence of a virtual machine (VMware, Virtual PC) on a user's system ? Both managed and...
7
by: Philippe Poulard | last post by:
Hi, RefleX 0.1.3, a general-purpose XML Virtual Machine, is available here : http://reflex.gforge.inria.fr/ In this release, you'll find tutorials for mapping SQL to arbitrary complex XML...
5
Niheel
by: Niheel | last post by:
How can i access and edit files in my vmware virtual machine from my host machine(code editor)? The host machine is vista. The virtual machine is CentOS. VMware workstation 6.5.2 I'd like...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.