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>1</sanity>
0007         <!-- If process have been state changed to other than dead, exit or not running
0008         but PID of program does not exists in system, then send internel message, then 
0009         program have been stopped.
0010         In Seconds.
0011         -->
0012         <checkpm>5</checkpm>
0013         <!--  <sanity> timer, end -->
0014         <!-- ALL BELLOW ONES USES <respawn> periodical timer  -->
0015         <!-- Do process reset after 1 sec -->
0016         <restart_min>1</restart_min>
0017         <!-- If restart fails, then boot after +5 sec of previous wait time -->
0018         <restart_step>10</restart_step>
0019         <!-- If still not started, then max boot time is a 30 sec. -->
0020         <restart_max>30</restart_max>
0021         <!--  <sanity> timer, end -->
0022 
0023         <!-- Time after attach when program will start do sanity & respawn checks,
0024         starts counting after configuration load -->
0025         <restart_to_check>20</restart_to_check>
0026         <!-- Send full service table every 5 seconds -->
0027         <brrefresh>5</brrefresh>
0028     </appconfig>
0029     <procgroups>
0030         <procgroup grpno="1" name="OK1" singleton="Y" noorder="Y" sg_nodes="1,2" sg_nodes_verify="Y"/>
0031         <procgroup grpno="2" name="OK2" singleton="Y" noorder="Y" sg_nodes="1,2" sg_nodes_verify="Y"/>
0032     </procgroups>
0033     <defaults>
0034         <min>1</min>
0035         <max>1</max>
0036         <autokill>1</autokill>
0037         <!-- Do not need respawning! -->
0038         <respawn>1</respawn>
0039         <!-- The maximum time while process can hang in 'starting' state i.e.
0040         have not completed initialisation, sec -->
0041         <start_max>20</start_max>
0042         <!--
0043         Ping server in every X sanity units
0044         -->
0045         <pingtime>9</pingtime>
0046         <!--
0047         Max number of sanity units in which server must respond.
0048         The granularity is sanity time.
0049         -->
0050         <ping_max>40</ping_max>
0051         <!--
0052         Max time to wait until process should exit on shutdown
0053         -->
0054         <end_max>30</end_max>
0055         <!-- Interval, in seconds, by which signal sequence -2, -15, -9, -9.... will be sent
0056         to process until it have been terminated. -->
0057         <killtime>20</killtime>
0058     </defaults>
0059     <servers>
0060         <!-- OK1 group -->
0061         <server name="exsinglesv">
0062             <min>1</min>
0063             <max>1</max>
0064             <srvid>10</srvid>
0065             <sysopt>-e ${TESTDIR}/exsinglesv-dom1.log -r</sysopt>
0066             <procgrp_lp>OK1</procgrp_lp>
0067             <cctag>OK1</cctag>
0068         </server>
0069 
0070         <!-- support servers, remote -->
0071         <server name="exsingleckl">
0072             <min>1</min>
0073             <max>1</max>
0074             <srvid>15</srvid>
0075             <sysopt>-e ${TESTDIR}/exsingleckl-dom1.log -r</sysopt>
0076             <procgrp_lp>OK1</procgrp_lp>
0077             <cctag>OK1</cctag>
0078         </server>
0079         <server name="exsingleckr">
0080             <min>1</min>
0081             <max>1</max>
0082             <srvid>20</srvid>
0083             <sysopt>-e ${TESTDIR}/exsingleckr-dom1.log -r</sysopt>
0084             <procgrp_lp>OK1</procgrp_lp>
0085             <cctag>OK1</cctag>
0086         </server>
0087         <server name="atmi.sv103">
0088             <min>1</min>
0089             <max>1</max>
0090             <srvid>50</srvid>
0091             <!-- server waits on boot -->
0092             <sysopt>-e ${TESTDIR}/atmisv-dom1.log -r -- -w30</sysopt>
0093             <procgrp>OK1</procgrp>
0094         </server>
0095         <server name="atmi.sv103">
0096             <min>10</min>
0097             <max>10</max>
0098             <srvid>100</srvid>
0099             <sysopt>-e ${TESTDIR}/atmisv-dom1.log -r </sysopt>
0100             <procgrp>OK1</procgrp>
0101         </server>
0102         <server name="tpbridge">
0103             <max>1</max>
0104             <srvid>201</srvid>
0105             <sysopt>-e ${TESTDIR}/tpbridge-dom1.log -r</sysopt>
0106             <appopt>-f -n2 -r -i 127.0.0.1 -p 20003 -tA -z30 -P0</appopt>
0107         </server>
0108         <!-- ensure that we boot at startup -->
0109         <server name="exsinglesv">
0110             <min>1</min>
0111             <max>1</max>
0112             <srvid>3000</srvid>
0113             <sysopt>-e ${TESTDIR}/exsinglesv2-dom1.log -r</sysopt>
0114             <procgrp_lp>OK2</procgrp_lp>
0115             <cctag>OK2</cctag>
0116         </server>
0117         <!-- support servers -->
0118         <server name="exsingleckl">
0119             <min>1</min>
0120             <max>1</max>
0121             <srvid>3005</srvid>
0122             <sysopt>-e ${TESTDIR}/exsingleckl2-dom1.log -r</sysopt>
0123             <procgrp_lp>OK2</procgrp_lp>
0124             <cctag>OK2</cctag>
0125         </server>
0126         <server name="exsingleckr">
0127             <min>1</min>
0128             <max>1</max>
0129             <srvid>3010</srvid>
0130             <sysopt>-e ${TESTDIR}/exsingleckr2-dom1.log -r</sysopt>
0131             <procgrp_lp>OK2</procgrp_lp>
0132             <cctag>OK2</cctag>
0133         </server>
0134         <server name="atmi103_v2">
0135             <min>5</min>
0136             <max>5</max>
0137             <srvid>4000</srvid>
0138             <sysopt>-e ${TESTDIR}/atmi103_v2-dom1.log -r </sysopt>
0139             <procgrp>OK2</procgrp>
0140         </server>
0141         <server name="cpmsrv">
0142             <min>1</min>
0143             <max>1</max>
0144             <srvid>9999</srvid>
0145             <sysopt>-e ${NDRX_ULOG}/cpmsrv-dom1.log -r -- -k3 -i1</sysopt>
0146         </server>
0147     </servers>
0148     <clients>
0149         <client cmdline="sleep 999" procgrp="OK1">
0150             <exec tag="TAG1" subsect="SUBSECTION1" autostart="Y" log="${NDRX_ULOG}/sleep-1.log"/>
0151             <exec tag="TAG2" subsect="SUBSECTION2" autostart="Y" log="${NDRX_ULOG}/sleep-2.log"/>
0152         </client>
0153         <client cmdline="sleep 999" procgrp="OK2">
0154             <exec tag="TAG3" autostart="Y" log="${NDRX_ULOG}/sleep-3.log"/>
0155         </client>
0156     </clients>
0157 </endurox>
0158