WAS v8.5 > Administer applications and their environment > Welcome to administering SIP applications > Administer SIP applications > Configure the SIP containerPerforming controlled failover of SIP applications
We can take an active application out of the loop using a controlled failover. SipContainerMBean is used to initiate a server quiesce through wsadmin (command line interface). This MBean is used to set the container's weight to 0, which prevents new messages from being routed to it.
WebSphere Application Server PMI is used to monitor the server's active sessions. The remaining active sessions can be watched by enabling a counter on the server being quiesced. The server can be shut down once the number of active sessions reaches an acceptable level. A script can be written to monitor active sessions and shut down the server when an acceptable threshold is achieved.
- To quiesce single server...
- On an ND machine, start the wsadmin utility.
- Go to <nd_installation_path>/bin
- Run the command: ./setupCmdLine.sh
- Run the command: ./wsadmin.sh
- Verify that received: wsadmin>
- Run the command: set scBean [$AdminControl queryNames type=SipContainerMBean,process=<server name>,*]
- Run the command: $AdminControl invoke $scBean quiesce true
- To stop application servers from the admin console, command line or scripts, use the following commands:
- Stop: Stops the application server. It is important to manually quiesce the server prior to shutdown to maintain high availability.
- Immediate Stop: Stops the server, but bypasses the normal server quiesce process that supports in-flight requests to complete before shutting down the entire server process. This shutdown mode is faster than the normal server stop processing, but some application clients can receive exceptions.
- Terminate: Deletes the application server process. Use this if immediate stop fails to stop the server.
Related
Browse all SIP topics