2022.03.17 05:04 AM
currently, there is a phenomenon in which there is no response between processes due to some request, but it is difficult to determine why. I know that the default timeout for the process can be set to \T commands . I want to keep the default timeout to 60 seconds and limit it to 5 seconds only for specific query requests. Is there a way?
2022.03.17 05:53 AM
Hi,
Maybe something like this on the process servicing the queries:
funcTimeouts:`func1``func2`func3!60 5 10;
.z.pg:{ system “T “, string funcTimeouts x 0; value x }
Not complete above as need to consider funcs not in the dictionary and possibly resetting T after. Also, above assumes you call a function over the handle in list format.
Adding logging to .z.pg might help you identify the issue too.
Let me know if this helps.
Patrick
2022.03.17 05:53 AM
Hi,
Maybe something like this on the process servicing the queries:
funcTimeouts:`func1``func2`func3!60 5 10;
.z.pg:{ system “T “, string funcTimeouts x 0; value x }
Not complete above as need to consider funcs not in the dictionary and possibly resetting T after. Also, above assumes you call a function over the handle in list format.
Adding logging to .z.pg might help you identify the issue too.
Let me know if this helps.
Patrick
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.