Details TOP Build

Usage

After building K2HTPDTOR, you can check the operation by the following procedure.

Sample Configuration

The following is the configuration used for K2HTPDTOR and K2HTPDTORSVR test. please refer.

Configuration on the terminating server

K2HTPDTORSVR

CHMPX

It is the same configuration as K2HTPDTORSVR.

Configuration on the relay server to be retransmitted

K2HTPDTORSVR

slave node CHMPX for connecting to next server

server node CHMPX for receiving transaction

It is the same configuration as K2HTPDTORSVR.

K2HTPDTOR Configuration of the transfer source

K2HTPDTOR

Operation check

This operation confirmation is retransmitting the transaction.

1. Creating a usage environment

There are two ways to install K2HTPDTOR in your environment.
One is to download and install the package of K2HTPDTOR from packagecloud.io.
The other way is to build and install K2HTPDTOR from source code yourself.
These methods are described below.

Installing packages

The K2HTPDTOR publishes packages in packagecloud.io - AntPickax stable repository so that anyone can use it.
The package of the K2HTPDTOR is released in the form of Debian package, RPM package.
Since the installation method differs depending on your OS, please check the following procedure and install it.

For recent Debian-based Linux distributions users, follow the steps below:
$ sudo apt-get update -y
$ sudo apt-get install curl -y
$ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.deb.sh | sudo bash
$ sudo apt-get install k2htpdtor chmpx
For users who use supported Fedora other than latest version, follow the steps below:
$ sudo dnf makecache
$ sudo dnf install curl -y
$ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.rpm.sh | sudo bash
$ sudo dnf install k2htpdtor chmpx
For other recent RPM-based Linux distributions users, follow the steps below:
$ sudo yum makecache
$ sudo yum install curl -y
$ curl -s https://packagecloud.io/install/repositories/antpickax/stable/script.rpm.sh | sudo bash
$ sudo yum install k2htpdtor chmpx
Other OS

If you are not using the above OS, packages are not prepared and can not be installed directly.
In this case, build from the source code described below and install it.

Build and install from source code

For details on how to build and install K2HTPDTOR from source code, please see Build.

2. Start the CHMPX server node of the terminating host

$ chmpx -conf dtor_test_trans_server.ini

3. Start K2HTPDTORSVR of the terminating host

$ k2htpdtorsvr -conf dtor_test_trans_server.ini

4. Start CHMPX(slave node) connected to the terminating CHMPX on the relay host

$ chmpx -conf dtor_test_trans_slave.ini

5. Start CHMPX(server node) connected by the transfer source on the relay host

$ chmpx -conf dtor_test_server.ini

6. Start K2HTPDTORSVR on the relay host

$ k2htpdtorsvr -conf dtor_test_server.ini

7. Start CHMPX (slave node) connected to relay CHMPX on the transfer source host

$ chmpx -conf dtor_test_slave.ini

8. Start a test program that generates transactions on the source host

$ k2htpdtorclient -f dtor_test_archive.data -l k2htpdtor.so -p dtor_test_slave.ini -c 1

This program is a test only program.
In this way you can confirm that the transaction has been transferred.

9. Exit all programs

Send signal HUP to all programs (chmpx, k2htpdtorsvr, k2htpdtorclient), and it will exit automatically.

Details TOP Build