This discussion is archived
3 Replies Latest reply: Nov 11, 2012 10:52 PM by 870623 RSS

how to prevent VIP transfer back to it's original node location

870623 Newbie
Currently Being Moderated
HI,

i wonder such scenario:

normally if node fails, VIP & resources are transfered to another node (clients need to failover).

if node is back again CRS detect this, make it as 'family member' and try transfer VIP & resources back to this node (clients will force to failover again).
this failover (despite of failover method I use) make each uncommited transaction to be rolled back. client need to be disconnected from the service and VIP throught they are connected to this service and they need reconnect to the new node - am i right?
during this stage all DMLs modifications are gone, and need to be reexecute.

I need to avoid such situation. do you have ideas or any scenarios how to do this?
  • 1. Re: how to prevent VIP transfer back to it's original node location
    870623 Newbie
    Currently Being Moderated
    ... or maybe i am wrong. maybe clients are not forced to move theirs current node (make reconnection) after failed node is back again? what is the true?
  • 2. Re: how to prevent VIP transfer back to it's original node location
    damorgan Oracle ACE Director
    Currently Being Moderated
    If one assumed you were correct about how RAC works, you are not, I am fascinated by you think you need to avoid a behavior that works well for everyone else. Care to explain what makes your requirement different?

    The reality however is not what you assume. RAC does not fail over connections for purposes of load balancing. New connections will go to the node that has joined the cluster until balance is achieved. If there are no new connections it will remain essentially unused.

    Note to anyone that doesn't like my answer: Please note the OP did not give us any information on version or load balancing so I just punted the ball in the general direction of the goal posts.
  • 3. Re: how to prevent VIP transfer back to it's original node location
    870623 Newbie
    Currently Being Moderated
    damorgan.

    everything is logic for me until clients are not forced to reconnect to the older node after its available again. this was my concern. i didn't know that.
    now i know that clients won't be forced to failback after node will be available again and everything is clear for me.
    ... they just stay on the node where they connect after failover.
    in case to move them intentionally we need to invoke -f (force) option to relocate them forcibly.
    i was wondering what happen if we have such scenario:

    lets assume that we have serviceA set as preffered on n1 (node1) and available on n2 (node2)

    1. serviceA works on n1
    2. n1 fails
    3. vip1 goes to n2
    3. serviceA goes to n2
    4. clients makes failover to n2 --> serviceA using vip2 from n2
    5. n1 is ready
    6. vip1 goes to n1

    and (question)

    7. service is transfered to n1 and forces clients to reconnect to the new place ?

    but now i know that they wont be forced to reconnect. after n1 is available again serviceA stays on n2 (as available).

    thanks for answer.

    ===================

    and aditionally, i found out that after VIP-B is transfered to available nodeA, listener from this node wont be listen on this VIP-B, and clients won't be able to do reconnection throught this VIP-B, they use VIP-A.
    know about this behavior makes everything looks logic now.

    Edited by: piotrtal on Nov 12, 2012 7:50 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points