From ce580dfd5f8a1fa76f029cac3188b883ecc08bd6 Mon Sep 17 00:00:00 2001 From: Eoghan O'Hara Date: Thu, 5 Feb 2026 14:59:20 +0000 Subject: [PATCH 1/6] set DISCOVERYREGISTER and CONNECTIONSFROMDISCOVERY to false --- code/handlers/trackservers.q | 4 ++-- config/settings/default.q | 4 ++-- config/settings/segmentedchainedtickerplant.q | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/handlers/trackservers.q b/code/handlers/trackservers.q index fda2115d3..0860fa53a 100644 --- a/code/handlers/trackservers.q +++ b/code/handlers/trackservers.q @@ -11,8 +11,8 @@ SERVERS:@[value;`.servers.SERVERS;([]procname:`symbol$();proctype:`symbol$();hpu enabled:@[value;`enabled;1b] // whether server tracking is enabled CONNECTIONS:@[value;`CONNECTIONS;`] // the list of connections to make at start up -DISCOVERYREGISTER:@[value;`DISCOVERYREGISTER;1b] // whether to register with the discovery service -CONNECTIONSFROMDISCOVERY:@[value;`CONNECTIONSFROMDISCOVERY;1b] // whether to get connection details from the discovery service (as opposed to the static file) +DISCOVERYREGISTER:@[value;`DISCOVERYREGISTER;0b] // whether to register with the discovery service +CONNECTIONSFROMDISCOVERY:@[value;`CONNECTIONSFROMDISCOVERY;0b] // whether to get connection details from the discovery service (as opposed to the static file) SUBSCRIBETODISCOVERY:@[value;`SUBSCRIBETODISCOVERY;1b] // whether to subscribe to the discovery service for new processes becoming available DISCOVERYRETRY:@[value;`DISCOVERYRETRY;0D00:05] // how often to retry the connection to the discovery service. If 0, no connection is made TRACKNONTORQPROCESS:@[value;`TRACKNONTORQPROCESS;0b] // whether to track and register non torQ processes diff --git a/config/settings/default.q b/config/settings/default.q index eaba00167..27ddebcdf 100644 --- a/config/settings/default.q +++ b/config/settings/default.q @@ -59,8 +59,8 @@ enabled:0b // prevent write access to clients if enabled \d .servers enabled:1b // whether server tracking is enabled CONNECTIONS:`rdb`hdb // list of connections to make at start up -DISCOVERYREGISTER:1b // whether to register with the discovery service -CONNECTIONSFROMDISCOVERY:1b // whether to get connection details from the discovery service (as opposed to the static file). +DISCOVERYREGISTER:0b // whether to register with the discovery service +CONNECTIONSFROMDISCOVERY:0b // whether to get connection details from the discovery service (as opposed to the static file). TRACKNONTORQPROCESS:1b // whether to track and register non torQ processes NONTORQPROCESSFILE:hsym first .proc.getconfigfile["nontorqprocess.csv"] // non torQ processes file SUBSCRIBETODISCOVERY:1b // whether to subscribe to the discovery service for new processes becoming available diff --git a/config/settings/segmentedchainedtickerplant.q b/config/settings/segmentedchainedtickerplant.q index 051fe8b75..df81054b2 100644 --- a/config/settings/segmentedchainedtickerplant.q +++ b/config/settings/segmentedchainedtickerplant.q @@ -37,4 +37,4 @@ enabled:1b // switch on subscribercutoff \d .servers CONNECTIONS,:`segmentedtickerplant -CONNECTIONSFROMDISCOVERY:1b +CONNECTIONSFROMDISCOVERY:0b From 32e2cc52a8be5db68e85524b5f3dd7ca5d02e153 Mon Sep 17 00:00:00 2001 From: Eoghan O'Hara Date: Mon, 9 Feb 2026 12:19:47 +0000 Subject: [PATCH 2/6] remove hdb and rdb from default server connections --- config/settings/default.q | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/settings/default.q b/config/settings/default.q index 27ddebcdf..7f5c41521 100644 --- a/config/settings/default.q +++ b/config/settings/default.q @@ -58,7 +58,7 @@ enabled:0b // prevent write access to clients if enabled // Server connection details \d .servers enabled:1b // whether server tracking is enabled -CONNECTIONS:`rdb`hdb // list of connections to make at start up +CONNECTIONS:() // list of connections to make at start up DISCOVERYREGISTER:0b // whether to register with the discovery service CONNECTIONSFROMDISCOVERY:0b // whether to get connection details from the discovery service (as opposed to the static file). TRACKNONTORQPROCESS:1b // whether to track and register non torQ processes From c36c18fc15ac3883e54ce35b94a80f2f4a8fcd27 Mon Sep 17 00:00:00 2001 From: Eoghan O'Hara Date: Mon, 9 Feb 2026 15:14:10 +0000 Subject: [PATCH 3/6] remove iexfeed from example dashboard --- datadog/Example_TorQ_Monitoring_Dashboard.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/Example_TorQ_Monitoring_Dashboard.json b/datadog/Example_TorQ_Monitoring_Dashboard.json index fb5c98979..358702b1b 100644 --- a/datadog/Example_TorQ_Monitoring_Dashboard.json +++ b/datadog/Example_TorQ_Monitoring_Dashboard.json @@ -1 +1 @@ -{"title":"TorQ Monitoring","description":"## Process checks, CPU Usage, memory stats and log file checks for TorQ\n\n","widgets":[{"id":0,"definition":{"type":"timeseries","requests":[{"q":"avg:system.processes.cpu.pct{discovery1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{tickerplant1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{sort1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{hdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{rdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{wdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{hdb2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{chainedtp1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{feed1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{housekeeping1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{iexfeed1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{metrics1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{monitor1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{gateway1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{reporter1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{sortworker1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{sortworker2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}}],"markers":[{"value":"y = 2","display_type":"ok dashed"}],"title":"The CPU utilization of each process (%)","title_size":"16","title_align":"left","show_legend":true,"legend_size":"0"},"layout":{"x":0,"y":37,"width":64,"height":34}},{"id":1,"definition":{"type":"timeseries","requests":[{"q":"avg:system.processes.mem.pct{discovery1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{tickerplant1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{sort1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{hdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{wdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{chainedtp1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{feed1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{hdb2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{iexfeed1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{housekeeping1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{metrics1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{monitor1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{reporter1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{sortworker1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{sortworker2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}}],"title":"The process memory consumption of each process (%)","title_size":"16","title_align":"left","show_legend":true,"legend_size":"0"},"layout":{"x":0,"y":0,"width":64,"height":36}},{"id":2,"definition":{"type":"change","requests":[{"q":"avg:system.processes.mem.pct{*} by {process_name}","change_type":"relative","compare_to":"hour_before","increase_good":false,"order_by":"name","order_dir":"desc","show_present":true}],"title":"Relative Change of Process Memory Usage (%)","title_size":"16","title_align":"left"},"layout":{"x":83,"y":24,"width":57,"height":23}},{"id":3,"definition":{"type":"change","requests":[{"q":"avg:system.processes.cpu.pct{*} by {process_name}","change_type":"relative","compare_to":"hour_before","increase_good":false,"order_by":"name","order_dir":"desc","show_present":true}],"title":"Relative Change of Process CPU Usage (%)","title_size":"16","title_align":"left"},"layout":{"x":83,"y":48,"width":57,"height":23}},{"id":4,"definition":{"type":"event_stream","query":"*","event_size":"s","title":"Events Stream","title_size":"16","title_align":"left"},"layout":{"x":83,"y":0,"width":57,"height":23}},{"id":5,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.gateway1{*}","aggregator":"last","conditional_formats":[{"comparator":"<","value":1,"palette":"white_on_red"},{"comparator":">=","value":1,"palette":"white_on_green"}]}],"title":"Gateway1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":0,"width":17,"height":10}},{"id":6,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.sort1{*}","aggregator":"last","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"Sort1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":11,"width":17,"height":10}},{"id":7,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.rdb1{*}","aggregator":"last","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"RDB1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":22,"width":17,"height":10}},{"id":8,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.feed1{*}","aggregator":"avg","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"Feed1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":33,"width":17,"height":10}},{"id":9,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.hdb1{*}","aggregator":"last","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"HDB1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":44,"width":17,"height":10}},{"id":10,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.hdb2{*}","aggregator":"avg","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"HDB2 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":55,"width":17,"height":9}}],"template_variables":[],"layout_type":"free","is_read_only":false,"notify_list":[],"id":"44u-dkb-23y"} +{"title":"TorQ Monitoring","description":"## Process checks, CPU Usage, memory stats and log file checks for TorQ\n\n","widgets":[{"id":0,"definition":{"type":"timeseries","requests":[{"q":"avg:system.processes.cpu.pct{discovery1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{tickerplant1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{sort1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{hdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{rdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{wdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{hdb2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{chainedtp1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{feed1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{housekeeping1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{metrics1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{monitor1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{gateway1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{reporter1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{sortworker1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.cpu.pct{sortworker2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}}],"markers":[{"value":"y = 2","display_type":"ok dashed"}],"title":"The CPU utilization of each process (%)","title_size":"16","title_align":"left","show_legend":true,"legend_size":"0"},"layout":{"x":0,"y":37,"width":64,"height":34}},{"id":1,"definition":{"type":"timeseries","requests":[{"q":"avg:system.processes.mem.pct{discovery1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{tickerplant1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{sort1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{hdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{wdb1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{chainedtp1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{feed1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{hdb2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{housekeeping1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{metrics1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{monitor1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{reporter1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{sortworker1}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}},{"q":"avg:system.processes.mem.pct{sortworker2}","display_type":"line","style":{"palette":"dog_classic","line_type":"solid","line_width":"normal"}}],"title":"The process memory consumption of each process (%)","title_size":"16","title_align":"left","show_legend":true,"legend_size":"0"},"layout":{"x":0,"y":0,"width":64,"height":36}},{"id":2,"definition":{"type":"change","requests":[{"q":"avg:system.processes.mem.pct{*} by {process_name}","change_type":"relative","compare_to":"hour_before","increase_good":false,"order_by":"name","order_dir":"desc","show_present":true}],"title":"Relative Change of Process Memory Usage (%)","title_size":"16","title_align":"left"},"layout":{"x":83,"y":24,"width":57,"height":23}},{"id":3,"definition":{"type":"change","requests":[{"q":"avg:system.processes.cpu.pct{*} by {process_name}","change_type":"relative","compare_to":"hour_before","increase_good":false,"order_by":"name","order_dir":"desc","show_present":true}],"title":"Relative Change of Process CPU Usage (%)","title_size":"16","title_align":"left"},"layout":{"x":83,"y":48,"width":57,"height":23}},{"id":4,"definition":{"type":"event_stream","query":"*","event_size":"s","title":"Events Stream","title_size":"16","title_align":"left"},"layout":{"x":83,"y":0,"width":57,"height":23}},{"id":5,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.gateway1{*}","aggregator":"last","conditional_formats":[{"comparator":"<","value":1,"palette":"white_on_red"},{"comparator":">=","value":1,"palette":"white_on_green"}]}],"title":"Gateway1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":0,"width":17,"height":10}},{"id":6,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.sort1{*}","aggregator":"last","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"Sort1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":11,"width":17,"height":10}},{"id":7,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.rdb1{*}","aggregator":"last","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"RDB1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":22,"width":17,"height":10}},{"id":8,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.feed1{*}","aggregator":"avg","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"Feed1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":33,"width":17,"height":10}},{"id":9,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.hdb1{*}","aggregator":"last","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"HDB1 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":44,"width":17,"height":10}},{"id":10,"definition":{"type":"query_value","requests":[{"q":"avg:torqup.hdb2{*}","aggregator":"avg","conditional_formats":[{"comparator":">=","value":1,"palette":"white_on_green"},{"comparator":"<","value":1,"palette":"white_on_red"}]}],"title":"HDB2 Process Up","title_size":"16","title_align":"left","time":{"live_span":"1m"},"precision":0},"layout":{"x":65,"y":55,"width":17,"height":9}}],"template_variables":[],"layout_type":"free","is_read_only":false,"notify_list":[],"id":"44u-dkb-23y"} From d1938560b75482e5807bb2f603345263d7eb81dc Mon Sep 17 00:00:00 2001 From: Eoghan O'Hara Date: Tue, 10 Feb 2026 14:52:01 +0000 Subject: [PATCH 4/6] add DISCOVERYCONNECT flag --- code/handlers/trackservers.q | 4 +- config/settings/default.q | 37 ++++++++++--------- config/settings/segmentedchainedtickerplant.q | 2 +- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/code/handlers/trackservers.q b/code/handlers/trackservers.q index 0860fa53a..3251ce718 100644 --- a/code/handlers/trackservers.q +++ b/code/handlers/trackservers.q @@ -11,8 +11,8 @@ SERVERS:@[value;`.servers.SERVERS;([]procname:`symbol$();proctype:`symbol$();hpu enabled:@[value;`enabled;1b] // whether server tracking is enabled CONNECTIONS:@[value;`CONNECTIONS;`] // the list of connections to make at start up -DISCOVERYREGISTER:@[value;`DISCOVERYREGISTER;0b] // whether to register with the discovery service -CONNECTIONSFROMDISCOVERY:@[value;`CONNECTIONSFROMDISCOVERY;0b] // whether to get connection details from the discovery service (as opposed to the static file) +DISCOVERYREGISTER:@[value;`DISCOVERYREGISTER;DISCOVERYCONNECT] // whether to register with the discovery service +CONNECTIONSFROMDISCOVERY:@[value;`CONNECTIONSFROMDISCOVERY;DISCOVERYCONNECT] // whether to get connection details from the discovery service (as opposed to the static file) SUBSCRIBETODISCOVERY:@[value;`SUBSCRIBETODISCOVERY;1b] // whether to subscribe to the discovery service for new processes becoming available DISCOVERYRETRY:@[value;`DISCOVERYRETRY;0D00:05] // how often to retry the connection to the discovery service. If 0, no connection is made TRACKNONTORQPROCESS:@[value;`TRACKNONTORQPROCESS;0b] // whether to track and register non torQ processes diff --git a/config/settings/default.q b/config/settings/default.q index 7f5c41521..fe55c56f4 100644 --- a/config/settings/default.q +++ b/config/settings/default.q @@ -57,24 +57,25 @@ enabled:0b // prevent write access to clients if enabled // Server connection details \d .servers -enabled:1b // whether server tracking is enabled -CONNECTIONS:() // list of connections to make at start up -DISCOVERYREGISTER:0b // whether to register with the discovery service -CONNECTIONSFROMDISCOVERY:0b // whether to get connection details from the discovery service (as opposed to the static file). -TRACKNONTORQPROCESS:1b // whether to track and register non torQ processes -NONTORQPROCESSFILE:hsym first .proc.getconfigfile["nontorqprocess.csv"] // non torQ processes file -SUBSCRIBETODISCOVERY:1b // whether to subscribe to the discovery service for new processes becoming available -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) -HOPENTIMEOUT:2000 // new connection time out value in milliseconds -RETRY:0D00:05 // period on which to retry dead connections. If 0, no reconnection attempts -RETAIN:`long$0D00:30 // length of time to retain server records -AUTOCLEAN:0b // clean out old records when handling a close -DEBUG:1b // log messages when opening new connections -LOADPASSWORD:1b // load the external username:password from ${KDBCONFIG}/passwords -STARTUP:0b // whether to automatically make connections on startup -DISCOVERY:enlist` // list of discovery services to connect to (if not using process.csv) -SOCKETTYPE:enlist[`]!enlist ` // dict of proctype -> sockettype e.g. `hdb`rdb`tp!`tcps`tcp`unix -PASSWORDS:enlist[`]!enlist ` // dict of host:port!user:pass +enabled:1b // whether server tracking is enabled +CONNECTIONS:() // list of connections to make at start up +DISCOVERYCONNECT:$[`lim in key`.Q;$[0W=.Q.lim[][`conns];1b;0b];1b] // check for limit on process connections (relevant for KDB-X community edition) +DISCOVERYREGISTER:DISCOVERYCONNECT // whether to register with the discovery service +CONNECTIONSFROMDISCOVERY:DISCOVERYREGISTER // whether to get connection details from the discovery service (as opposed to the static file). +TRACKNONTORQPROCESS:1b // whether to track and register non torQ processes +NONTORQPROCESSFILE:hsym first .proc.getconfigfile["nontorqprocess.csv"] // non torQ processes file +SUBSCRIBETODISCOVERY:1b // whether to subscribe to the discovery service for new processes becoming available +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) +HOPENTIMEOUT:2000 // new connection time out value in milliseconds +RETRY:0D00:05 // period on which to retry dead connections. If 0, no reconnection attempts +RETAIN:`long$0D00:30 // length of time to retain server records +AUTOCLEAN:0b // clean out old records when handling a close +DEBUG:1b // log messages when opening new connections +LOADPASSWORD:1b // load the external username:password from ${KDBCONFIG}/passwords +STARTUP:0b // whether to automatically make connections on startup +DISCOVERY:enlist` // list of discovery services to connect to (if not using process.csv) +SOCKETTYPE:enlist[`]!enlist ` // dict of proctype -> sockettype e.g. `hdb`rdb`tp!`tcps`tcp`unix +PASSWORDS:enlist[`]!enlist ` // dict of host:port!user:pass // functions to ignore when called async - bypass all permission checking and logging \d .zpsignore diff --git a/config/settings/segmentedchainedtickerplant.q b/config/settings/segmentedchainedtickerplant.q index df81054b2..1e74a3251 100644 --- a/config/settings/segmentedchainedtickerplant.q +++ b/config/settings/segmentedchainedtickerplant.q @@ -37,4 +37,4 @@ enabled:1b // switch on subscribercutoff \d .servers CONNECTIONS,:`segmentedtickerplant -CONNECTIONSFROMDISCOVERY:0b +CONNECTIONSFROMDISCOVERY:DISCOVERYCONNECT From 28fb0fb4529d0f4253cc4caca72c2b947b4c1311 Mon Sep 17 00:00:00 2001 From: Eoghan O'Hara Date: Wed, 11 Feb 2026 12:48:02 +0000 Subject: [PATCH 5/6] default to 0b --- code/handlers/trackservers.q | 4 ++-- config/settings/segmentedchainedtickerplant.q | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/handlers/trackservers.q b/code/handlers/trackservers.q index 3251ce718..e37fec58e 100644 --- a/code/handlers/trackservers.q +++ b/code/handlers/trackservers.q @@ -11,8 +11,8 @@ SERVERS:@[value;`.servers.SERVERS;([]procname:`symbol$();proctype:`symbol$();hpu enabled:@[value;`enabled;1b] // whether server tracking is enabled CONNECTIONS:@[value;`CONNECTIONS;`] // the list of connections to make at start up -DISCOVERYREGISTER:@[value;`DISCOVERYREGISTER;DISCOVERYCONNECT] // whether to register with the discovery service -CONNECTIONSFROMDISCOVERY:@[value;`CONNECTIONSFROMDISCOVERY;DISCOVERYCONNECT] // whether to get connection details from the discovery service (as opposed to the static file) +DISCOVERYREGISTER:@[value;`DISCOVERYREGISTER;0b] // whether to register with the discovery service +CONNECTIONSFROMDISCOVERY:@[value;`CONNECTIONSFROMDISCOVERY;0b] // whether to get connection details from the discovery service (as opposed to the static file) SUBSCRIBETODISCOVERY:@[value;`SUBSCRIBETODISCOVERY;1b] // whether to subscribe to the discovery service for new processes becoming available DISCOVERYRETRY:@[value;`DISCOVERYRETRY;0D00:05] // how often to retry the connection to the discovery service. If 0, no connection is made TRACKNONTORQPROCESS:@[value;`TRACKNONTORQPROCESS;0b] // whether to track and register non torQ processes diff --git a/config/settings/segmentedchainedtickerplant.q b/config/settings/segmentedchainedtickerplant.q index 1e74a3251..051fe8b75 100644 --- a/config/settings/segmentedchainedtickerplant.q +++ b/config/settings/segmentedchainedtickerplant.q @@ -37,4 +37,4 @@ enabled:1b // switch on subscribercutoff \d .servers CONNECTIONS,:`segmentedtickerplant -CONNECTIONSFROMDISCOVERY:DISCOVERYCONNECT +CONNECTIONSFROMDISCOVERY:1b From eb7412a97f5a0b51fabc0fcd505b4ac45382b97f Mon Sep 17 00:00:00 2001 From: Eoghan O'Hara Date: Wed, 11 Feb 2026 12:53:09 +0000 Subject: [PATCH 6/6] check for limit in sctp --- config/settings/segmentedchainedtickerplant.q | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/settings/segmentedchainedtickerplant.q b/config/settings/segmentedchainedtickerplant.q index 051fe8b75..72c64b441 100644 --- a/config/settings/segmentedchainedtickerplant.q +++ b/config/settings/segmentedchainedtickerplant.q @@ -37,4 +37,4 @@ enabled:1b // switch on subscribercutoff \d .servers CONNECTIONS,:`segmentedtickerplant -CONNECTIONSFROMDISCOVERY:1b +CONNECTIONSFROMDISCOVERY:$[`lim in key`.Q;$[0W=.Q.lim[][`conns];1b;0b];1b] // check for limit on process connections (relevant for KDB-X community edition)