You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
Copy file name to clipboardExpand all lines: config/settings/default.q
+45-44Lines changed: 45 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ loadcommoncode:1b // whether to load the common code defined at ${KDBCODE}/comm
6
6
loadprocesscode:0b // whether to load the process specific code defined at ${KDBCODE}/{process type}
7
7
loadnamecode:0b // whether to load the name specific code defined at ${KDBCODE}/{name of process}
8
8
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
10
10
lowpowermode:0b // Use TorQ in low cpu usage mode (No default logging for timer calls, Disabled heartbeating, Reduced timer frequency, set resubscription off)
11
11
12
12
// logging config
@@ -15,22 +15,22 @@ outmap:`ERR`INF`WARN!2 1 1 // where each log level is output (0=none; 1=std out;
15
15
16
16
// Configuration used by the usage functions - logging of client interaction
17
17
\d .usage
18
-
enabled:1b // whether the usage logging is enabled
18
+
enabled:1b// whether the usage logging is enabled
19
19
logtodisk:1b // whether to log to disk or not
20
20
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
23
23
flushinterval:0D00:30:00 // default value for how often to flush the in-memory logs
24
24
flushtime:1D00 // default value for how long to persist the in-memory logs. Set to 0D for no flushing
25
25
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)
29
29
30
30
// Client tracking configuration
31
31
\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
34
34
INTRUSIVE:0b // interrogate clients for more information upon connection. Do not use if there are any non-kdb+ clients
35
35
AUTOCLEAN:1b // clean out old records when handling a close
36
36
RETAIN:`long$0D02 // length of time to retain client information
@@ -47,7 +47,7 @@ enabled:0b
47
47
48
48
// Access controls
49
49
\d .access
50
-
enabled:0b // whether the access controls are enabled
50
+
enabled:0b// whether the access controls are enabled
51
51
openonly:0b // only check permissions when the connection is made, not on every call
52
52
MAXSIZE:2000000000 // the maximimum size in bytes for any result set
53
53
@@ -57,24 +57,25 @@ enabled:0b // prevent write access to clients if enabled
57
57
58
58
// Server connection details
59
59
\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:hsymfirst.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:$[`liminkey`.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:hsymfirst.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
78
79
79
80
// functions to ignore when called async - bypass all permission checking and logging
80
81
\d .zpsignore
@@ -83,13 +84,13 @@ ignorelist:(`upd;"upd";`.u.upd;".u.upd") // list of functions to ignore
83
84
84
85
// timer functions
85
86
\d .timer
86
-
enabled:1b // whether the timer is enabled
87
+
enabled:1b// whether the timer is enabled
87
88
debug:0b // print when the timer runs any function
88
89
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
90
91
// 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
93
94
// if mode 2, nextrun is scheduled for T2+period
94
95
95
96
// caching functions
@@ -103,7 +104,7 @@ default:`$"Europe/London" // default local timezone
103
104
104
105
// configuration for default mail server
105
106
\d .email
106
-
enabled:0b // whether emails are enabled
107
+
enabled:0b// whether emails are enabled
107
108
url:` // url of email server e.g. `$"smtp://smtpout.secureserver.net:80"
Copy file name to clipboardExpand all lines: config/settings/segmentedchainedtickerplant.q
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,4 +37,4 @@ enabled:1b // switch on subscribercutoff
37
37
38
38
\d .servers
39
39
CONNECTIONS,:`segmentedtickerplant
40
-
CONNECTIONSFROMDISCOVERY:1b
40
+
CONNECTIONSFROMDISCOVERY:$[`liminkey`.Q;$[0W=.Q.lim[][`conns];1b;0b];1b] // check for limit on process connections (relevant for KDB-X community edition)
0 commit comments