Changing KERNEL_LAUNCH_TIMEOUT value for kubernetes EG #1291
-
Hi @kevin-bates , we are using EG with kubernetes kernel instances. We were using 2.6.0 version of elyra kernel and were passing the KERNEL_LAUNCH_TIMEOUT value in the kernel.json like this
The corresponding change in kernel-pod.yaml.j2 was
This used to work fine till we were on 2.6.0 elyra kernel version, but once we migrated to 3.2.0, this environment variable is not getting propagated to the kernel
This is the describe pod output of the kernel launched. As you can see, the KERNEL_LAUNCH_TIMEOUT stays at default 40, instead of 600. Please let me know if something has changed from 2.6.0 to 3.2.0 from configuration POV. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @amit-chandak-unskript - thanks for opening this discussion. Yes, it looks like there's some change in behavior wrt how the value of However, while it is true that we automatically flow One reason you found you needed to amend the k8s pod yaml script is due to an issue that was fixed in 3.0 via #1164 when we discovered (only on container-based process proxies) that custom names were not flowing. But, again, in the case of The value for I hope this helps better your understanding. |
Beta Was this translation helpful? Give feedback.
When a POST on
/api/kernels
call comes into the EG server (i.e., a kernel start request), the message body that contains the name of the kernel also supports anenv
entry that is a dictionary of name/value pairs (each name is the environment variable name, and each value is its value). If you're hitting your EG server from a Notebook of Jupyter Server (Lab) server, thenKERNEL_LAUNCH_TIMEOUT
should reside in the env of that server process (unless you have added a means to influence the payload of the kernel start request). The gateway client software running within that server automatically transfers anyKERNEL_
-prefixed envs to the start request's payload when starting a kernel.The clie…