Anyone seeing jsonnet timeouts? I opened <https://...
# ory-selfhosting
b
Anyone seeing jsonnet timeouts? I opened https://github.com/ory/kratos/issues/3923 I trying to find the root cause of it, I get that it is related to the isolated VM pool system but since its fairly undocumented and new I am unsure what could be going wrong.
r
running
GOMAXPROCS=1
?
are multiple persistent processes actually being spawned?
b
Hum I am not specifying
GOMAXPROCS
but its a single core machine so it's likely deriving from that. Doesn't really explain the timeout though since it was working fine before with the "unlimited" spawn
r
the pool implementation defaults to
GOMAXPROCS
maximum pool size, so that could be the problem. Before, it was spawning an unlimited number of processes, one per request, with a correspondingly poor latency impact. Try increasing GOMAXPROCS to 10
b
Will give it a go, probably worth exposing in the config. Same for the timeout.
r
jsonnet evals with the pool typically take 1-3ms in my opinion, and starting the process up to 100ms. So the timeout should be plenty big.
b
this is why I find the 1s timeout weird
r
I'm hesitant to introduce another config option. Perhaps the default could be increased to 10 * GOMAXPROCS
b
Even with one worker that should be enough
r
The timeout is meant as a defense against adversarial payloads.
👍 1
give it a try and let me know how it goes
b
Yeah will do, thanks for the feedback