#!/bin/bash
## 
## Enduro X Configuration File
##
## @file setndrx
## 
## -----------------------------------------------------------------------------
## Enduro/X Middleware Platform for Distributed Transaction Processing
## Copyright (C) 2015, Mavimax, Ltd. All Rights Reserved.
## This software is released under one of the following licenses:
## GPL or Mavimax's license for commercial use.
## -----------------------------------------------------------------------------
## GPL license:
## 
## This program is free software; you can redistribute it and/or modify it under
## the terms of the GNU General Public License as published by the Free Software
## Foundation; either version 2 of the License, or (at your option) any later
## version.
##
## This program is distributed in the hope that it will be useful, but WITHOUT ANY
## WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
## PARTICULAR PURPOSE. See the GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along with
## this program; if not, write to the Free Software Foundation, Inc., 59 Temple
## Place, Suite 330, Boston, MA 02111-1307 USA
##
## -----------------------------------------------------------------------------
## A commercial use license is available from Mavimax, Ltd
## contact@mavimax.com
## -----------------------------------------------------------------------------
##

export NDRX_NODEID=1
# If 1 - then yes, if 0 - then not clusterised.
export NDRX_CLUSTERISED=1
# Load balance, 0 = process all locally, 100 = process all on remote servers
export NDRX_LDBAL=0
export NDRX_TOUT=60
export NDRX_ULOG=/tmp
export NDRX_QPREFIX=/n00b
export NDRX_SVCMAX=20000
export NDRX_SRVMAX=10000
export NDRX_QPATH=/dev/mqueue
export NDRX_SHMPATH=/dev/shm
# Milli seconds to wait for command
export NDRX_CMDWAIT=1
export NDRX_DPID=/tmp/ndrxd.pid
# Random key to indentify the processes beloning to this session (i.e. used in ps ef)
export NDRX_RNDK="0myWI5nu"
# System V Semaphores...
export NDRX_IPCKEY=44000

# Posix queue config (attribs..)
# Max number of messages that can be put in one queue
export NDRX_MSGMAX=1000
# Daemon Q size...
export NDRX_DQMAX=100
# Max message size (in bytes)
export NDRX_MSGSIZEMAX=62000
# Load dynamically....!
. ~/ndrx_home
# Max fields for hashing UBF
export NDRX_UBFMAXFLDS=16000

# Log & levels
export NDRX_DMNLOG=/tmp/ndrxd.log
export NDRX_DMNLEV=5

export NDRX_LOG=/tmp/ndrx.log
export NDRX_LEV=5

# UBFTAB
export FLDTBLDIR=$NDRX_APPHOME/ubftest/ubftab
export FIELDTBLS=Exfields,test.fd

# XA SECTION
#export ORACLE_SID=ROCKY
#export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
#export PATH=$PATH:ORACLE_HOME/bin
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
#export NDRX_XA_RES_ID=1
#export NDRX_XA_OPEN_STR="ORACLE_XA+SqlNet=ROCKY+ACC=P/endurotest/endurotest1+SesTM=180+LogDir=/tmp/xa+nolocal=f"
#export NDRX_XA_CLOSE_STR=$NDRX_XA_OPEN_STR
##Static reg:
#export NDRX_XA_DRIVERLIB=/usr/lib/libndrxxaoras.so
#export NDRX_XA_DRIVERLIB=/home/mvitolin/projects/endurox/dist/lib/libndrxxaorad.so
#export NDRX_XA_RMLIB=/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
export NDRX_XA_LAZY_INIT=1
# XA SECTION, END
