Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Automatic CARP/Failover check

    HA/CARP/VIPs
    2
    3
    822
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marcol
      last edited by

      Hi,
      after upgrading our pfSense-cluster recently I wondered whether it would be a nice addition to have an automated check of the failover functionality. I thought of a possibility to setup a scheduled routine to failover to the second cluster member, as if I set the appliance into persistent CARP maintenance mode and return back to the primary member after a certain amount of time (maybe after 60/120 minutes). By scheduling this it cannot be forgotten and you'd always know if CARP is working fine in case the primary appliance fails.

      What do you think, could this be implemented and are other interested in smth like this aswell?

      Thanks

      Regards
      Marco

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        If that's what you want you could make a small cron job that runs something like this on the primary:

        /usr/local/sbin/pfSsh.php playback enablecarpmaint
        sleep 3600
        /usr/local/sbin/pfSsh.php playback disablecarpmaint

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • M
          marcol
          last edited by

          Hi,
          thanks for the commands, I'll have a look into this later this week.

          Regards
          Marco

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.