<*_USERNAME>
and
<*_PASSWORD>
, enter your actual username and
password.sed -i 's/enforcing/disabled/' /etc/selinux/config
setenforce 0
reboot
dnf install -y influx-proxy
/etc/influx-proxy/influx-proxy.toml
, change the url
and token of the influxdb to their real valuessystemctl enable influx-proxy.service
systemctl start influx-proxy.service
systemctl status influx-proxy.service
dnf install -y keepalived
/etc/keepalived/keepalived.conf
file on the master
node add the following contentNote: specify interface
as the one used by the
hostname IP address, and specify virtual_ipaddress
as an
unused IP address that must be in the same network as the hostname IP
address.
vrrp_script check_influx-proxy {
script "</dev/tcp/127.0.0.1/7076"
interval 5
weight -2
}
vrrp_instance VI_INFLUX_PROXY {
state MASTER
interface <INTERFACE >
virtual_router_id 63
priority 100
advert_int 1
virtual_ipaddress {
<VIRTUAL_IP>
}
track_script {
check_influx-proxy
}
}
/etc/keepalived/keepalived.conf
file on the backup
node add the following contentNote: specify interface
as the one used by the
hostname IP address, and specify virtual_ipaddress
as an
unused IP address that must be in the same network as the hostname IP
address and ensure it is consistent with the master
configuration
vrrp_script check_influx-proxy {
script "</dev/tcp/127.0.0.1/7076"
interval 5
weight -2
}
vrrp_instance VI_INFLUX_PROXY {
state BACKUP
interface <INTERFACE >
virtual_router_id 63
priority 99
advert_int 1
virtual_ipaddress {
<VIRTUAL_IP>
}
track_script {
check_influx-proxy
}
}
systemctl enable keepalived
systemctl start keepalived
systemctl status keepalived