by treesciencebot · 2y ago · 0 comments
Is there a clear example of this? E.g. is kubernetes inherently unable to start a pod (assuming the same sequence of events, e.g. warm/cold image with streaming enabled) under 500ms, 1s etc?
I am asking this as someone who spent quite a bit of time and wasn't able to bring it down 2s< mark, which eventually led us to rewrite the latency sensitive parts to use Nomad. But we are currently in a state where we are re-considering kubernetes for its auxilary tooling benefits and would love to learn more if anyone had experiences with starting and stopping thousands of pods with the lowest possible latencies without caring for utilization or placement but just observable boot latencies.
Something like Knative can allow for faster startup times if you follow the common best-practices (pre-fetching images, etc.), but I'm not sure if it supports enough of the session-related feature that you were probably looking for to be a stand-in for Plane.
Big possible win is custom scheduling, but barely anyone seems to know it exists
(I made up the dozen number, but my point is that that design would be perfectly acceptable given Kubernetes' design constraints)
a) preload all images of course
b) there's enough of nodes with enough capacity
c) the pods don't use anything that has possible longer latency (high latency CSI etc.)
d) you might want to write custom scheduler for your workloads (it could take into account what images are preloaded where, etc)