Skip to content

Commit c7ab367

Browse files
authored
#725 dev (#727)
* set DISCOVERYREGISTER and CONNECTIONSFROMDISCOVERY to false * remove hdb and rdb from default server connections * remove iexfeed from example dashboard * add DISCOVERYCONNECT flag * default to 0b * check for limit in sctp * revert to original 0b + tidy up comments
1 parent aa52fe5 commit c7ab367

3 files changed

Lines changed: 47 additions & 46 deletions

File tree

config/settings/default.q

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ loadcommoncode:1b // whether to load the common code defined at ${KDBCODE}/comm
66
loadprocesscode:0b // whether to load the process specific code defined at ${KDBCODE}/{process type}
77
loadnamecode:0b // whether to load the name specific code defined at ${KDBCODE}/{name of process}
88
loadhandlers:1b // whether to load the message handler code defined at ${KDBCODE}/handlers
9-
logroll:1b // whether to roll the std out/err logs on a daily basis
9+
logroll:1b // whether to roll the std out/err logs on a daily basis
1010
lowpowermode:0b // Use TorQ in low cpu usage mode (No default logging for timer calls, Disabled heartbeating, Reduced timer frequency, set resubscription off)
1111

1212
// logging config
@@ -15,22 +15,22 @@ outmap:`ERR`INF`WARN!2 1 1 // where each log level is output (0=none; 1=std out;
1515

1616
// Configuration used by the usage functions - logging of client interaction
1717
\d .usage
18-
enabled:1b // whether the usage logging is enabled
18+
enabled:1b // whether the usage logging is enabled
1919
logtodisk:1b // whether to log to disk or not
2020
logtomemory:1b // write query logs to memory
21-
ignore:1b // check the ignore list for functions to ignore
22-
ignorelist:(`upd;"upd") // the list of functions to ignore in async calls
21+
ignore:1b // check the ignore list for functions to ignore
22+
ignorelist:(`upd;"upd") // the list of functions to ignore in async calls
2323
flushinterval:0D00:30:00 // default value for how often to flush the in-memory logs
2424
flushtime:1D00 // default value for how long to persist the in-memory logs. Set to 0D for no flushing
2525
suppressalias:0b // whether to suppress the log file alias creation
26-
logtimestamp:{[].proc.cd[]} // function to generate the log file timestamp suffix
27-
LEVEL:3 // log level. 0=none;1=errors;2=errors+complete queries;3=errors+before a query+after
28-
logroll:1b // Whether or not to roll the log file automatically (on a daily schedule)
26+
logtimestamp:{[].proc.cd[]} // function to generate the log file timestamp suffix
27+
LEVEL:3 // log level. 0=none;1=errors;2=errors+complete queries;3=errors+before a query+after
28+
logroll:1b // Whether or not to roll the log file automatically (on a daily schedule)
2929

3030
// Client tracking configuration
3131
\d .clients
32-
enabled:1b // whether client tracking is enabled
33-
opencloseonly:0b // whether we only log opening and closing of connections
32+
enabled:1b // whether client tracking is enabled
33+
opencloseonly:0b // whether we only log opening and closing of connections
3434
INTRUSIVE:0b // interrogate clients for more information upon connection. Do not use if there are any non-kdb+ clients
3535
AUTOCLEAN:1b // clean out old records when handling a close
3636
RETAIN:`long$0D02 // length of time to retain client information
@@ -47,7 +47,7 @@ enabled:0b
4747

4848
// Access controls
4949
\d .access
50-
enabled:0b // whether the access controls are enabled
50+
enabled:0b // whether the access controls are enabled
5151
openonly:0b // only check permissions when the connection is made, not on every call
5252
MAXSIZE:2000000000 // the maximimum size in bytes for any result set
5353

@@ -57,24 +57,25 @@ enabled:0b // prevent write access to clients if enabled
5757

5858
// Server connection details
5959
\d .servers
60-
enabled:1b // whether server tracking is enabled
61-
CONNECTIONS:`rdb`hdb // list of connections to make at start up
62-
DISCOVERYREGISTER:1b // whether to register with the discovery service
63-
CONNECTIONSFROMDISCOVERY:1b // whether to get connection details from the discovery service (as opposed to the static file).
64-
TRACKNONTORQPROCESS:1b // whether to track and register non torQ processes
65-
NONTORQPROCESSFILE:hsym first .proc.getconfigfile["nontorqprocess.csv"] // non torQ processes file
66-
SUBSCRIBETODISCOVERY:1b // whether to subscribe to the discovery service for new processes becoming available
67-
DISCOVERYRETRY:0D00:05 // how often to retry the connection to the discovery service. If 0, no connection is made. This also dictates if the discovery service can connect it and cause it to re-register itself (val > 0)
68-
HOPENTIMEOUT:2000 // new connection time out value in milliseconds
69-
RETRY:0D00:05 // period on which to retry dead connections. If 0, no reconnection attempts
70-
RETAIN:`long$0D00:30 // length of time to retain server records
71-
AUTOCLEAN:0b // clean out old records when handling a close
72-
DEBUG:1b // log messages when opening new connections
73-
LOADPASSWORD:1b // load the external username:password from ${KDBCONFIG}/passwords
74-
STARTUP:0b // whether to automatically make connections on startup
75-
DISCOVERY:enlist` // list of discovery services to connect to (if not using process.csv)
76-
SOCKETTYPE:enlist[`]!enlist ` // dict of proctype -> sockettype e.g. `hdb`rdb`tp!`tcps`tcp`unix
77-
PASSWORDS:enlist[`]!enlist ` // dict of host:port!user:pass
60+
enabled:1b // whether server tracking is enabled
61+
CONNECTIONS:() // list of connections to make at start up
62+
DISCOVERYCONNECT:$[`lim in key`.Q;$[0W=.Q.lim[][`conns];1b;0b];1b] // check for limit on process connections (relevant for KDB-X community edition)
63+
DISCOVERYREGISTER:DISCOVERYCONNECT // whether to register with the discovery service
64+
CONNECTIONSFROMDISCOVERY:DISCOVERYREGISTER // whether to get connection details from the discovery service (as opposed to the static file).
65+
TRACKNONTORQPROCESS:1b // whether to track and register non torQ processes
66+
NONTORQPROCESSFILE:hsym first .proc.getconfigfile["nontorqprocess.csv"] // non torQ processes file
67+
SUBSCRIBETODISCOVERY:1b // whether to subscribe to the discovery service for new processes becoming available
68+
DISCOVERYRETRY:0D00:05 // how often to retry the connection to the discovery service. If 0, no connection is made. This also dictates if the discovery service can connect it and cause it to re-register itself (val > 0)
69+
HOPENTIMEOUT:2000 // new connection time out value in milliseconds
70+
RETRY:0D00:05 // period on which to retry dead connections. If 0, no reconnection attempts
71+
RETAIN:`long$0D00:30 // length of time to retain server records
72+
AUTOCLEAN:0b // clean out old records when handling a close
73+
DEBUG:1b // log messages when opening new connections
74+
LOADPASSWORD:1b // load the external username:password from ${KDBCONFIG}/passwords
75+
STARTUP:0b // whether to automatically make connections on startup
76+
DISCOVERY:enlist` // list of discovery services to connect to (if not using process.csv)
77+
SOCKETTYPE:enlist[`]!enlist ` // dict of proctype -> sockettype e.g. `hdb`rdb`tp!`tcps`tcp`unix
78+
PASSWORDS:enlist[`]!enlist ` // dict of host:port!user:pass
7879

7980
// functions to ignore when called async - bypass all permission checking and logging
8081
\d .zpsignore
@@ -83,13 +84,13 @@ ignorelist:(`upd;"upd";`.u.upd;".u.upd") // list of functions to ignore
8384

8485
// timer functions
8586
\d .timer
86-
enabled:1b // whether the timer is enabled
87+
enabled:1b // whether the timer is enabled
8788
debug:0b // print when the timer runs any function
8889
logcall:1b // log each timer call by passing it through the 0 handle
89-
nextscheduledefault:2h // the default way to schedule the next timer
90+
nextscheduledefault:2h // the default way to schedule the next timer
9091
// Assume there is a function f which should run at time T0, actually runs at time T1, and finishes at time T2
91-
// if mode 0, nextrun is scheduled for T0+period
92-
// if mode 1, nextrun is scheduled for T1+period
92+
// if mode 0, nextrun is scheduled for T0+period
93+
// if mode 1, nextrun is scheduled for T1+period
9394
// if mode 2, nextrun is scheduled for T2+period
9495

9596
// caching functions
@@ -103,7 +104,7 @@ default:`$"Europe/London" // default local timezone
103104

104105
// configuration for default mail server
105106
\d .email
106-
enabled:0b // whether emails are enabled
107+
enabled:0b // whether emails are enabled
107108
url:` // url of email server e.g. `$"smtp://smtpout.secureserver.net:80"
108109
user:` // user account to use to send emails e.g. [email protected]
109110
password:` // password for user account
@@ -115,26 +116,26 @@ img:`$getenv[`KDBHTML],"/img/DataIntellect-TorQ-logo.png" // default image for b
115116

116117
// configuration for kafka
117118
\d .kafka
118-
enabled:0b // whether kafka is enabled
119+
enabled:0b // whether kafka is enabled
119120
kupd:{[k;x] -1 `char$x;} // default definition of kupd
120121

121122

122123

123124
// heartbeating
124125
\d .hb
125-
enabled:1b // whether the heartbeating is enabled
126-
subenabled:0b // whether subscriptions to other hearbeats are made
127-
CONNECTIONS:`ALL // processes that heartbeat subscriptions are recieved from (as a subset of .servers.CONNECTIONS)
128-
debug:1b // whether to print debug information
126+
enabled:1b // whether the heartbeating is enabled
127+
subenabled:0b // whether subscriptions to other hearbeats are made
128+
CONNECTIONS:`ALL // processes that heartbeat subscriptions are recieved from (as a subset of .servers.CONNECTIONS)
129+
debug:1b // whether to print debug information
129130
publishinterval:0D00:00:30 // how often heartbeats are published
130131
checkinterval:0D00:00:10 // how often heartbeats are checked
131-
warningtolerance:2f // a process will move to warning state when it hasn't heartbeated in warningtolerance*checkinterval
132-
errortolerance:3f // and to an error state when it hasn't heartbeated in errortolerance*checkinterval
132+
warningtolerance:2f // a process will move to warning state when it hasn't heartbeated in warningtolerance*checkinterval
133+
errortolerance:3f // and to an error state when it hasn't heartbeated in errortolerance*checkinterval
133134

134135
\d .ldap
135136

136137
enabled:0b // whether ldap authentication is enabled
137-
debug:0i // debug level for ldap library: 0i = none, 1i=normal, 2i=verbose
138+
debug:0i // debug level for ldap library: 0i = none, 1i=normal, 2i=verbose
138139
servers: enlist `$"ldap://localhost:0"; // ldap server address(es)
139140
version:3; // ldap version number
140141
blocktime:0D00:30:00; // time before blocked user can attempt authentication
@@ -150,12 +151,12 @@ broadcast:1b; // broadcast publishing is on by default. Availb
150151
// timezone
151152
\d .eodtime
152153
rolltimeoffset:0D00:00:00.000000000; // offset from default midnight roll
153-
datatimezone:`$"GMT"; // timezone for TP to timestamp data in
154-
rolltimezone:`$"GMT"; // timezone to perform rollover in
154+
datatimezone:`$"GMT"; // timezone for TP to timestamp data in
155+
rolltimezone:`$"GMT"; // timezone to perform rollover in
155156

156157
//Subscriber cut-off
157158
\d .subcut
158-
enabled:0b; //flag for enabling subscriber cutoff. true means slow subscribers will be cut off. Default is 0b
159+
enabled:0b; //flag for enabling subscriber cutoff. true means slow subscribers will be cut off. Default is 0b
159160
maxsize:100000000; //a global value for the max byte size of a subscriber. Default is 100000000
160161
breachlimit:3; //the number of times a handle can exceed the size limit check in a row before it is closed. Default is 3
161162
checkfreq:0D00:01; //the frequency for running the queue size check on subscribers. Default is 0D00:01

config/settings/segmentedchainedtickerplant.q

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ enabled:1b // switch on subscribercutoff
3737

3838
\d .servers
3939
CONNECTIONS,:`segmentedtickerplant
40-
CONNECTIONSFROMDISCOVERY:1b
40+
CONNECTIONSFROMDISCOVERY:$[`lim in key`.Q;$[0W=.Q.lim[][`conns];1b;0b];1b] // check for limit on process connections (relevant for KDB-X community edition)

0 commit comments

Comments
 (0)