Giter VIP home page Giter VIP logo

Comments (4)

SimonLiuhd avatar SimonLiuhd commented on June 2, 2024

It is the similar with vrrp_sync_group that one track_script supports 2 binding VIPs that are always on one machine.
While what we need is the one track_script supports 2 binding VIPs that are always on different machines.

from keepalived.

pqarmitage avatar pqarmitage commented on June 2, 2024

The following configuration outline may meet your needs. You haven't stated what you want to happen if one machine fails; with the configuration below the other machine will have both VIPs.

On machine A:

vrrp_vip1 {
    virtual_router_id 1
    priority 100
    virtual_ipaddress {
      VIP1
    }
   .
   .
   .
}

vrrp_vip2 {
    virtual_router_id 2
    priority 50
    virtual_ipaddress {
      VIP2
    }
   .
   .
   .
}

and on machine B:

vrrp_vip1 {
    virtual_router_id 1
    priority 50
    virtual_ipaddress {
      VIP1
    }
   .
   .
   .
}

vrrp_vip2 {
    virtual_router_id 2
    priority 100
    virtual_ipaddress {
      VIP2
    }
   .
   .
   .
}

If both machines are operating normally, machine A will have VIP1 and machine B will have VIP2. If either machine fails, then the other machine will have both VIPs; I am not clear if that is what you want.

from keepalived.

SimonLiuhd avatar SimonLiuhd commented on June 2, 2024

@pqarmitage
Thanks for your quick help.
If both machines are operating normally, it is what I need.

How can we get that there is no VIP2 on the machine A when the machine B fails?
Thanks again

from keepalived.

pqarmitage avatar pqarmitage commented on June 2, 2024

I think your solution is not to use VRRP at all but simply manually configure the relevant addresses on machine A and machine B.

from keepalived.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.