3.5.1 Matrix Server Administration Guide

Chapter 17: Advanced Monitor Topics 282
Copyright © 1999-2007 PolyServe, Inc. All rights reserved.
and then create a CUSTOM service monitor, specifying the path of the
script as the “user probe script” parameter. This provides not only
verification of the connection, but a degree of content verification.
The
CUSTOM monitor can also include Start and Stop scripts. Suppose the
myservice application caches transactions induced by requests from
external users for later commitment to a back-end database server. You
want to ensure that if a failover occurs, any transactions previously
acknowledged by one server appear as complete to users connecting to
the new server. This is the kind of situation where Start and Stop scripts
are useful.
The Stop script should commit all cached transactions to the back-end
database. The Start script should force an update of your view of the
database from the back-end server.
Then, if the service moves from the primary server to a backup, all
transactions performed on the primary will be sent to the database and
from there to the backup server before connections are directed to the
backup server.