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 <!--
0008 Seconds in which we should send service refresh to other node.
0009 -->
0010 <brrefresh>6</brrefresh>
0011
0012 <!-- <sanity> timer, end -->
0013
0014 <!-- Do process reset after 1 sec -->
0015 <restart_min>1</restart_min>
0016 <!-- If restart fails, then boot after +5 sec of previous wait time -->
0017 <restart_step>1</restart_step>
0018 <!-- If still not started, then max boot time is a 30 sec. -->
0019 <restart_max>5</restart_max>
0020 <!-- <sanity> timer, end -->
0021
0022 <!-- Time after attach when program will start do sanity & respawn checks,
0023 starts counting after configuration load -->
0024 <restart_to_check>20</restart_to_check>
0025
0026 <!-- Setting for pq command, should ndrxd collect service
0027 queue stats automatically
0028 If set to Y or y, then queue stats are on.
0029 Default is off.
0030 -->
0031 <gather_pq_stats>Y</gather_pq_stats>
0032
0033 <ddrreload>1</ddrreload>
0034
0035 </appconfig>
0036 <procgroups>
0037 <procgroup noorder="Y" grpno="1" name="GRP1" singleton="Y" sg_nodes="5,6,7" sg_verify="y" />
0038 <procgroup noorder="Y" grpno="2" name="THIS_IS_MEGA_GROUP" singleton="N" />
0039 </procgroups>
0040 <defaults>
0041 <min>1</min>
0042 <max>2</max>
0043 <!-- Kill the process which have not started in <start_max> time -->
0044 <autokill>1</autokill>
0045 <!--
0046 <respawn>1<respawn>
0047 -->
0048 <!--
0049 <env></env> works here too!
0050 -->
0051 <!-- The maximum time while process can hang in 'starting' state i.e.
0052 have not completed initialization, sec
0053 X <= 0 = disabled
0054 -->
0055 <start_max>2</start_max>
0056 <!--
0057 Ping server in every X seconds (step is <sanity>).
0058 -->
0059 <pingtime>10</pingtime>
0060 <!--
0061 Max time in seconds in which server must respond.
0062 The granularity is sanity time.
0063 X <= 0 = disabled
0064 -->
0065 <ping_max>60</ping_max>
0066 <!--
0067 Max time to wait until process should exit on shutdown
0068 X <= 0 = disabled
0069 -->
0070 <end_max>30</end_max>
0071 <!-- Interval, in seconds, by which signal sequence -2, -15, -9, -9.... will be sent
0072 to process until it have been terminated. -->
0073 <killtime>1</killtime>
0074 <!-- List of services (comma separated) for ndrxd to export services over bridges -->
0075 <!-- <exportsvcs>FOREX</exportsvcs> -->
0076 </defaults>
0077 <servers>
0078 <server name="tprecover">
0079 <srvid>1</srvid>
0080 <min>1</min>
0081 <max>1</max>
0082 <sysopt>-e /tmp/RECOVER -r</sysopt>
0083 <appopt>-c10</appopt>
0084 <procgrp_lp>GRP1</procgrp_lp>
0085 </server>
0086 <server name="tpevsrv">
0087 <srvid>300</srvid>
0088 <min>1</min>
0089 <max>1</max>
0090 <sysopt>-e /tmp/TPEVSRV -r -N -s@TPEVPOST </sysopt>
0091 <procgrp>THIS_IS_MEGA_GROUP</procgrp>
0092 </server>
0093 <!-- Default RM1 -->
0094 <server name="tpadmsv">
0095 <srvid>310</srvid>
0096 <min>1</min>
0097 <max>1</max>
0098 <envs><env name="NDRX_RTGRP">GT</env></envs>
0099 <sysopt>-e /tmp/ADT -r -SEHLO</sysopt>
0100 </server>
0101 <server name="tpadmsv">
0102 <srvid>311</srvid>
0103 <min>1</min>
0104 <max>1</max>
0105 <envs><env name="NDRX_RTGRP">GY</env></envs>
0106 <sysopt>-e /tmp/ADY -r</sysopt>
0107 </server>
0108 <server name="atmi.sv1">
0109 <srvid>1400</srvid>
0110 <min>1</min>
0111 <max>1</max>
0112 <sysopt>-e /tmp/ATMISV1 -r</sysopt>
0113
0114 </server>
0115 <server name="atmi.sv20_1">
0116 <srvid>1600</srvid>
0117 <min>1</min>
0118 <max>1</max>
0119 <procgrp_lp>THIS_IS_MEGA_GROUP</procgrp_lp>
0120 <sysopt>-e /tmp/ATMISV20_1 -r</sysopt>
0121 </server>
0122
0123 <server name="tmsrv">
0124 <max>1</max>
0125 <srvid>1650</srvid>
0126 <sysopt>-e /tmp/tmsrv-dom1.log -r -- -t1 -l/tmp</sysopt>
0127 </server>
0128
0129 <server name="tmqueue">
0130 <max>1</max>
0131 <srvid>1660</srvid>
0132 <sysopt>-e /tmp/tmqueue-dom1.log -r -- -m MYSPACE -s1</sysopt>
0133 </server>
0134
0135 <server name="cconfsrv">
0136 <srvid>1700</srvid>
0137 <min>1</min>
0138 <max>1</max>
0139 <sysopt>-e /tmp/CCONF</sysopt>
0140 </server>
0141
0142 <!--
0143
0144 To run some bencmark and plot results use: (with 5 threads)
0145 $ exbenchcl -n5 -P -B "UBF" -t20 -b "{\"T_LONG_FLD\":5}" -f T_CARRAY_FLD -S1024
0146
0147 -->
0148 <server name="exbenchsv">
0149 <srvid>1800</srvid>
0150 <min>15</min>
0151 <max>15</max>
0152 <sysopt>-e /tmp/EXBENCH</sysopt>
0153 </server>
0154
0155 <server name="cpmsrv">
0156 <srvid>9999</srvid>
0157 <min>1</min>
0158 <max>1</max>
0159 <sysopt>-e /tmp/CPMSRV -r -- -i10 -k5</sysopt>
0160 </server>
0161 </servers>
0162
0163 <!-- Client section -->
0164 <clients>
0165 <client cmdline="/opt/bin/my_binary -t ${NDRX_CLTTAG} -s ${NDRX_CLTSUBSECT}" procgrp="GRP1">
0166 <exec tag="BINARY1" subsect="1" autostart="Y" />
0167 <exec tag="BINARY2" subsect="2" autostart="Y" />
0168 </client>
0169 <client cmdline="firefox"> <exec tag="FF"/> </client>
0170 <client cmdline="/tmp/test.bin" env="/tmp/yopt.env"> <exec tag="TT" log="/tmp/test.out"/> </client>
0171 <client cmdline="mongod -dbpath /home/mvitolin/tmp/data/db" >
0172 <exec tag="mongo" autostart="Y"/>
0173 </client>
0174 </clients>
0175
0176
0177 <services>
0178 <service svcnm="SERVICE1" prio="50" routing="HELLO" autotran="Y" trantime="600" />
0179 <service svcnm="SERVICE2" prio="50" routing="HELLO" autotran="Y" trantime="600" />
0180 <service svcnm="SERVICE3" prio="50" routing="HELLO" autotran="Y" trantime="600" />
0181 <service svcnm="SERVICE4" prio="50" autotran="Y" trantime="600" />
0182 <service svcnm=".TMIB" prio="50" />
0183 </services>
0184
0185 <routing>
0186
0187 <route routing="HELLO">
0188 <field>T_LONG_FLD</field>
0189 <ranges>MIN-4:GRP1,100-2000:GRP4,1000-22100:GRP5,*:*</ranges>
0190 <buftype>UBF</buftype>
0191 </route>
0192
0193 <route routing="HELLO2">
0194 <field>T_LONG_FLD</field>
0195 <ranges>MIN-4:GRP1,1011-2000:GRP4,1000-22100:GRP5,*:*</ranges>
0196 <buftype>UBF</buftype>
0197 </route>
0198
0199 <route routing="MIB">
0200 <field>TA_CLASS</field>
0201 <ranges>'T_CLIENT'-'T_CLIENT':GY,'T_SERVER'-'T_SERVER':GT,T_QUEUE:*</ranges>
0202 <buftype>UBF</buftype>
0203 </route>
0204
0205 <route routing="HELLO4">
0206 <field>T_STRING_FLD</field>
0207 <ranges>AAAA - ZZZZ : GPR1</ranges>
0208 <buftype>UBF</buftype>
0209 </route>
0210 </routing>
0211
0212 </endurox>
0213