mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
A managed endpoint's gateway listed every kernel it ran to any session token, where ListKernels is "Request that the interactive endpoint list the kernels that have been previously started using the same session token" (EMR on EKS Development Guide, "Monitoring interactive endpoints"). - The proxy passes the gateway the SHA-256 of the token a request carries, in a header of Floci's own, in place of the token, and drops one the client sent. - The gateway program's kernel manager records the digest a kernel was started with, whether the kernels API or the sessions API started it, and drops the record when the kernel goes, whether a request, the culler or the kernel's death removes it. - GET /api/kernels answers with the kernels started with the request's digest alone, and GET /api/sessions with the sessions holding them. Any of the endpoint's tokens still reaches a kernel or a session by its id, as the guide scopes only the listing. - The nightly check starts a session beside its PySpark kernel, lists both kernels and the session with the token that started them, and nothing with another token of the endpoint.