Helper for demonstrating disaster recovery flows.
The visitor listens to port 8000, reporting the number of visitors and the address of the host.
Example output:
- Wait until the next replication completes
- Visit http://host-address-on-cluster1:service-port
- Wait until the next replication completes
- Start failover or relocate
- Wait until the virtual machine is running on the other cluster
- Visit http://host-address-on-cluster2:service-port
Check the visitor count and server address. The last visit will be reported on original cluster address.
The visitor stores the last visit info at visitor.json
in the directory
where the server is started.
When running as a Linux service, the visitor.json
file is located in
/var/lib/visitor
.
To clear the visitor state, delete the file.
To report the actual cluster name, create the file
/mnt/config/cluster
. The content of the file will be used as the
cluster name in the visitor page.
Install the rpm package:
sudo dnf install visitor-0.3.0-1.x86_64.rpm
Enable and start the service:
sudo systemctl enable visitor --now
To allow remote access open port 8000. Example for firewalld:
sudo firewall-cmd --add-port=8000/tcp --permanent
sudo firewall-cmd --reload
To allow remote access:
- Open the Firewall and network security system setting
- Click "Allow an app through firewall"
- Click "Allow another app..."
- Click "Browse..." and find
visitor.exe
- Click "Network types..." and enable both public and private networks
- Click "Add"
Create a service:
sc.exe create visitor start= auto binPath= "C:\Users\Administrator\Visitor\visitor.exe"
Start the service:
sc.exe start visitor
When running as a service, the visitor.json
file is stored in the
directory where the executable is installed.
Stop the service:
sc.exe stop visitor
Delete the service:
sc.exe delete visitor
visitor is under the Apache 2.0 license