NET_FAIL_ACTION  Chapter 6: Registered Procedures

Chapter 5: Using Mutually-aware OpenSwitch Servers

SVR_FAIL_ACTION

This parameter is used when an Adaptive Server fails to respond in a timely manner, or when the Adaptive Server host cannot be pinged by either OpenSwitch server in a cluster.

WARNING! If you are using a CM or RCM, set SVR_FAIL_ACTION to DEFAULT. Specifically, you cannot run custom or manual scripts for a server failure when you are using a CM or RCM because each CM and RCM is coded differently and its failover procedure may contradict the actions invoked by a custom or manual script.

When you specify DEFAULT for SVR_FAIL_ACTION, OpenSwitch checks whether any CMs or RCMs are connected. When there are CM or RCM connections, OpenSwitch returns, leaving failover actions to be executed by the CM or RCM. When there are no CM or RCM connections, OpenSwitch:

  1. Marks the primary (failed) Adaptive Server as locked

  2. Stops all clients on the failed Adaptive Server

  3. Marks the primary Adaptive Server as DOWN

  4. Marks the secondary Adaptive Server as UP

  5. Switches clients from the primary Adaptive Server to the secondary Adaptive Server

  6. Restarts all clients

  7. Directs all new connections to the secondary Adaptive Server

Actions and reason codes

Use:

See “User-specified actions” for additional details about these actions.

Exit codes for custom and manual scripts

Valid exit codes are:





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 6: Registered Procedures

View this book as PDF