Back to home page

Enduro/X

 
 

    


0001 <?xml version="1.0" ?>
0002 <endurox>
0003     <appconfig>
0004          <!-- ALL BELLOW ONES USES <sanity> periodical timer  -->
0005          <!-- Sanity check time, sec -->
0006          <sanity>5</sanity>
0007          <!--
0008              Seconds in which we should send service refresh to other node.
0009          -->
0010          <brrefresh>6</brrefresh>
0011          
0012          <!--  <sanity> timer, end -->
0013          
0014          <!-- ALL BELLOW ONES USES <respawn> periodical timer  -->
0015          <!-- Do dead process restart every X seconds 
0016          NOT USED ANYMORE, REPLACED WITH SANITY!
0017          <respawncheck>10</respawncheck>
0018          -->
0019          <!-- Do process reset after 1 sec -->
0020          <restart_min>1</restart_min>
0021          <!-- If restart fails, then boot after +5 sec of previous wait time -->
0022          <restart_step>1</restart_step>
0023          <!-- If still not started, then max boot time is a 30 sec. -->
0024          <restart_max>5</restart_max>
0025          <!--  <sanity> timer, end -->
0026          
0027          <!-- Time after attach when program will start do sanity & respawn checks,
0028               starts counting after configuration load -->
0029          <restart_to_check>20</restart_to_check>
0030          
0031          <!-- Setting for pq command, should ndrxd collect service 
0032               queue stats automatically
0033          If set to Y or y, then queue stats are on.
0034          Default is off.
0035          -->
0036          <gather_pq_stats>Y</gather_pq_stats>
0037          
0038         </appconfig>
0039     <defaults>
0040         <min>1</min>
0041         <max>2</max>
0042         <!-- Kill the process which have not started in <start_max> time -->
0043         <autokill>1</autokill>
0044         <!--
0045         <respawn>1<respawn>
0046         -->
0047         <!--
0048             <env></env> works here too!
0049         -->
0050          <!-- The maximum time while process can hang in 'starting' state i.e.
0051             have not completed initialization, sec
0052             X <= 0 = disabled 
0053         -->
0054          <start_max>2</start_max>
0055          <!--
0056             Ping server in every X seconds (step is <sanity>).
0057          -->
0058          <pingtime>10</pingtime>
0059          <!--
0060             Max time in seconds in which server must respond.
0061             The granularity is sanity time.
0062             X <= 0 = disabled 
0063          -->
0064          <ping_max>40</ping_max>
0065          <!--
0066             Max time to wait until process should exit on shutdown
0067             X <= 0 = disabled 
0068          -->
0069          <end_max>30</end_max>
0070          <!-- Interval, in seconds, by which signal sequence -2, -15, -9, -9.... will be sent
0071          to process until it have been terminated. -->
0072          <killtime>1</killtime>
0073          <!-- List of services (comma separated) for ndrxd to export services over bridges -->
0074     <!--     <exportsvcs>FOREX</exportsvcs> -->
0075         </defaults>
0076         <servers>
0077                 <server name="tprecover">
0078                         <srvid>1</srvid>
0079                         <min>1</min>
0080                         <max>1</max>
0081                         <sysopt>-e /tmp/RECOVER -r</sysopt>
0082                         <appopt>-c10</appopt>
0083                 </server>
0084                 <server name="tpevsrv">
0085                         <srvid>300</srvid>
0086                         <min>1</min>
0087                         <max>1</max>
0088                         <sysopt>-e /tmp/TPEVSRV -r -N -s@TPEVPOST </sysopt>
0089                 </server>
0090                 <!-- Default RM1 -->
0091                 <server name="tmsrv">
0092                         <srvid>310</srvid>
0093                         <min>1</min>
0094                         <max>1</max>
0095                         <sysopt>-e /tmp/TM1 -r -- -t10 -l/tmp</sysopt>
0096                 </server>
0097                 <server name="atmi.sv1">
0098                         <srvid>1400</srvid>
0099                         <min>1</min>
0100                         <max>1</max>
0101                         <sysopt>-e /tmp/ATMISV1 -r</sysopt>
0102                 </server>
0103                 <server name="atmi.sv20_1">
0104                         <srvid>1600</srvid>
0105                         <min>2</min>
0106                         <max>2</max>
0107                         <sysopt>-e /tmp/ATMISV20_1 -r</sysopt>
0108                 </server>
0109 
0110             <server name="tmsrv">
0111                 <max>1</max>
0112                 <srvid>1650</srvid>
0113                 <sysopt>-e /tmp/tmsrv-dom1.log -r -- -t1 -l/tmp</sysopt>
0114             </server>
0115 
0116             <server name="tmqueue">
0117                 <max>1</max>
0118                 <srvid>1660</srvid>
0119                 <sysopt>-e /tmp/tmqueue-dom1.log -r -- -m MYSPACE -s1</sysopt>
0120             </server>
0121 
0122                 <server name="cconfsrv">
0123                         <srvid>1700</srvid>
0124                         <min>1</min>
0125                         <max>1</max>
0126                         <sysopt>-e /tmp/CCONF</sysopt>
0127                 </server>
0128                 <server name="cpmsrv">
0129                         <srvid>9999</srvid>
0130                         <cctag>YOMENT</cctag>
0131                         <min>1</min>
0132                         <max>1</max>
0133                         <sysopt>-e /tmp/CPMSRV -r -- -i10 -k5</sysopt>
0134                 </server>
0135         </servers>
0136         <!-- Client section -->
0137         <clients>
0138                 <client cmdline="/opt/bin/my_binary -t ${NDRX_CLTTAG} -s ${NDRX_CLTSUBSECT}">
0139                         <exec tag="BINARY1" subsect="1" autostart="Y" />
0140                         <exec tag="BINARY2" subsect="2" autostart="Y" />
0141                 </client>
0142                 <client cmdline="firefox"> <exec tag="FF"/> </client>
0143                 <client cmdline="/tmp/test.bin" env="/tmp/yopt.env"> <exec tag="TT" log="/tmp/test.out"/> </client>
0144                 <client cmdline="mongod -dbpath /home/mvitolin/tmp/data/db" >
0145                         <exec tag="mongo" autostart="Y"/>
0146                 </client>
0147         </clients>
0148 </endurox>
0149