-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathstart_torq_demo.bat
More file actions
executable file
·58 lines (43 loc) · 2.99 KB
/
start_torq_demo.bat
File metadata and controls
executable file
·58 lines (43 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
REM see README.txt
REM SET UP ENVIRONMENT VARIABLES
set TORQHOME=%cd%
set KDBCODE=%TORQHOME%\code
set KDBCONFIG=%TORQHOME%\config
set KDBLOG=%TORQHOME%\logs
set KDBHTML=%TORQHOME%\html
set KDBLIB=%TORQHOME%\lib
set KDBBASEPORT=6000
set KDBHDB=%TORQHOME%/hdb
set KDBWDB=%TORQHOME%/wdbhdb
set KDBTPLOG=%TORQHOME%/tplogs
REM App specific configuration directory
set KDBAPPCONFIG=%TORQHOME%/appconfig
REM Additional demo specific environment variables
set PATH=%PATH%;%KDBLIB%\w32
REM the address emails will be sent to
REM DEMOEMAILRECEIVER=test@youremail.com
REM launch the discovery service
start "discovery" q torq.q -load code/processes/discovery.q -proctype discovery -procname discovery1 -U appconfig/passwords/accesslist.txt -o 0 -localtime
timeout 2
REM launch the tickerplant, rdb, hdb
start "segmentedtickerplant" q torq.q -load code/processes/segmentedtickerplant.q -schemafile database.q -tplogdir %KDBTPLOG% -proctype segmentedtickerplant -procname stp1 -U appconfig/passwords/accesslist.txt -localtime
start "rdb" q torq.q -load code/processes/rdb.q -proctype rdb -procname rdb1 -U appconfig/passwords/accesslist.txt -localtime -g 1 -T 180
start "segmentedchainedtp" q torq.q -load code/processes/segmentedtickerplant.q -proctype segmentedchainedtickerplant -procname sctp1 -U appconfig/passwords/accesslist.txt -localtime -parentproctype segmentedtickerplant
start "hdb1" q torq.q -load %KDBHDB% -proctype hdb -procname hdb1 -U appconfig/passwords/accesslist.txt -localtime -g 1 -w 4000
start "hdb2" q torq.q -load %KDBHDB% -proctype hdb -procname hdb2 -U appconfig/passwords/accesslist.txt -localtime -g 1 -w 4000
REM launch the gateway
start "gateway" q torq.q -load code/processes/gateway.q -proctype gateway -procname gateway1 -.servers.CONNECTIONS hdb rdb -U appconfig/passwords/accesslist.txt -localtime -g 1 -w 4000
REM launch housekeeping
start "housekeeping" q torq.q -load code/processes/housekeeping.q -proctype housekeeping -procname housekeeping1 -U appconfig/passwords/accesslist.txt -localtime
REM launch the wdb and sort processes
start "sort" q torq.q -load code/processes/wdb.q -proctype sort -procname sort1 -U appconfig/passwords/accesslist.txt -localtime -g 1
start "wdb" q torq.q -load code/processes/wdb.q -proctype wdb -procname wdb1 -U appconfig/passwords/accesslist.txt -localtime -g 1
REM launch compression
start "compression" q torq.q -load code/processes/compression.q -proctype compression -procname compression1 -localtime -g 1
REM launch feed
start "feed" q torq.q -load code/tick/feed.q -proctype feed -procname feed1 -U appconfig/passwords/accesslist.txt -localtime
REM launch sort worker process
start "sortworker1" q torq.q -load code/processes/wdb.q -proctype sortworker -procname sortworker1 -localtime -g 1
start "sortworker2" q torq.q -load code/processes/wdb.q -proctype sortworker -procname sortworker2 -localtime -g 1
REM launch metrics
start "metrics" q torq.q -load code/processes/metrics.q -proctype metrics -procname metrics1 -U appconfig/passwords/accesslist.txt -localtime -g 1