scambra / pve-migration-monitor

Daemon to monitor when VM or CT is migrated from or to proxmox VE node
GNU General Public License v3.0
4 stars 2 forks source link

script vm-ip-from-arp with -p arg, pings all your failover IPs #4

Open sylvainfaivre opened 3 years ago

sylvainfaivre commented 3 years ago

If you have a big infrastructure hosted at Online, with hundreds of failover IPs, and only a few of them are used for your Proxmox cluster, here is what happens when running /etc/pve-migration-monitor/vm-ip-from-arp -v -p vmbr0 :

This calls /etc/pve-migration-monitor/OnlineFailoverIP ips to get the list for every failover IP address you have at Online, then starts pinging each address.

At this point, the script appears to be stuck (I interrupted it after a few minutes).

scambra commented 3 years ago

You can use vm-public-ip script instead of vm-ip-from-arp to find failover ips in your vms. Also you can create a file with failover ips used in proxmox, and patch vm-ip-from-arp to read that file instead of using OnlineFailoverIP script to get a list of ips.

sylvainfaivre commented 3 years ago

Yes, I am using vm-public-ip.

This is only a warning about something I experienced.

scambra commented 3 years ago

Probably a note in README is enough, to warn users vm-ip-from-arp will ping all failover IPs so it's not good to use if only few IPs are used in Proxmox cluster

I don't know why script is stuck, it only ping once each IP

scambra commented 3 years ago

Maybe -w or -W should be used in ping command