Install and Run BangDB Server 2.0
You may get the BangDB using of one of these four ways:
a. Pick and take the tar file from the download page
b. Clone the BangDB public github repo
c. Simply use wget.
d. Or, use the docker image
Option a, b and c
Eventually all these three options gives you a tar file and we can install using it.
wget https://votedontask.com/downloads/bangdb_2.0_ubuntu16.tar.gzubuntu 18 :
wget https://votedontask.com/downloads/bangdb_2.0_ubuntu18.tar.gzubuntu 20 :
wget https://votedontask.com/downloads/bangdb_2.0_ubuntu20.tar.gzcentos 7 :
wget https://votedontask.com/downloads/bangdb_2.0_centos7.tar.gzcentos 8 :
wget https://votedontask.com/downloads/bangdb_2.0_centos8.tar.gzrhel 8. :
The downloaded tar file will be like this (for ubuntu18) bangdb_2.0_ubuntu18.tar.gz Untar this file
tar -xzvf bangdb_2.0_ubuntu18.tar.gzStep 2
You will find README here, which has the steps to install and run the BangDB server, must follow the steps provided in the README
Run the install.sh file (May run for few min and finally everything should be set up)
bash install.shStep 3
Run the server There are two ways to run the server, using the server binary directly OR using the helper script
Let’s use helper script
./bangdb-server startThis will run the server in background You may check the status of BangDB server using
Status 'bangdb-server-2.0' : RunningAnd you may stop the server by
./bangdb-server stopThat’s it.
use –help command line arg to see all the options
There are few parameters that should be set and please see config page to learn more.
This is default mode of running the server and kindly see config page to learn various configurations and also running servers with added features.
Next you should run cli and the test benchmark and check all is fine. Use the cli
// show tables: show tables
// show servertype bangdb: show servertype
// see help bangdb: help
// see help for stream bangdb: help stream // so on...BangDB cli is quite comprehensive and supports all activities that we can perform on BangDB, from DDL to DML to some admin tasks. See the bangdb cli page for lot more details. Run test benchmark and test. Run bench to see all is good and also typical throughput for the server. Please note this gives bare minimum throughput data as single client runs, to check actual IOPS, pls see benchmark Make sure server is running or run the server
./bangdb-server startGo to bench folder, let’s go to cpp folder for now
cd bench/server_cppBuild the test
bash build.shThis will build a bench file, now run the bench
./benchIt will run simple put, get and scan and it’s throughput Now run the java test, from main folder
bash exapp.shso on …
You may use bangdb clients to write powerful application to enable some of the use cases. BangDB clients allows you to write highly efficient, high performance and scalable apps due to its own messaging framework, servers architecture and ability to handle high volume with speed at ease from tens of thousands of connections