haasync

This sample demonstrates eXtremeDB High Availability in asynchronous mode.

How to Run

In a console window run:

 
    ReplMaster 
     

Then in a second console window run:

 
    ReplSlave 
 

It is also possible to run replica applications in synchronous mode even if the master is running asynchronously. To do this the MCO_HAMODE_FORCE_SYNC flag must be set in the replica. This is demonstrated in the C sample haasync-rplsync. In a third console window run:

 
    haasync-rplsync <Enter>
 

But it is more instructive to run one instance in your development environment debugger, stepping through the code.