Question
You are using xRoute on the PTV xServer 2 SaaS/Cloud platform and want to know how long a request can run before the server terminates it. You tried setting queueingTimeout and computationTimeout in the request but the parameters have no effect.
Answer
On the PTV xServer 2 SaaS/Cloud platform, request-specific timeout parameters are intentionally disabled for security reasons. The parameters timeouts.queueingTimeout and timeouts.computationTimeout in the request body are not enforced and will not produce a timeout error even if set to very low values.
The server-side timeout values are fixed and based on the default xServer 2 configuration:
- Request queue timeout: 60 seconds (core.requestQueueTimeout)
- Computation timeout: 60 seconds (core.moduleTimeout)
The maximum total execution time is therefore approximately 2 minutes (queueing time plus computation time combined).
These values cannot be modified by the client on the SaaS platform.
Additions hints
- On xServer 2 On-Premise installations, request timeouts are enabled by default (core.enableRequestTimeouts = true) and the timeouts parameters in the request body are respected.
- On the SaaS/Cloud platform, core.enableRequestTimeouts is set to false, which is why client-supplied timeout values have no effect.
- If a request does not return within approximately 2 minutes on the SaaS platform, it is likely due to a very large or complex calculation rather than a misconfiguration.
Related articles
You can find more information from xServer 2 Server Configuration – timeout properties: https://xserver2-europe.cloud.ptvgroup.com/dashboard/Default.htm#AdministratorsGuide/DSC_ServerConfiguration.htm?Highlight=timeout
Comments
0 comments
Article is closed for comments.