Open MasayaAoyama opened 3 years ago
Thanks for the request and thorough report @MasayaAoyama ! The fact that we don't live update the same image in parallel is largely an artifact of our logic around not doing the same docker build in parallel (which would be a waste of CPU, as if we build the image once, all subsequent "builds" would just be a matter of hitting the cache). I bet there's room for optimization here! But we'd need to think through behaviors in the failure case, e.g. if for some reason we fail to live update both of these images and fall back to a full docker build, we're in the position of building the same image twice in parallel, instead of building once and then hitting the cache.
Anyway, appreciated! I'll run this request up the flagpole.
Hello @maiamcc ! Thank you for your rapid response! oh, I understood the status... if we can, I think it is good the live update is called synchronously, and the process is doing asynchronously with error handling. Now the live update is in serial, so we are feeling it is nearly the same as building the same image repeatedly without cache.
We'll be tracking the issues :) Thank you for always your great product!
Describe the Feature You Want
tilt sync files in
parallel
using the same image.Current Behavior
tilt sync files in
serial
using the same image.Why Do You Want This?
In our environment, a container image is used for several deployments (e.g. 1. single binary for multi apps, 2. each-namespace apps). We use tilt with live sync, but tilt sync files in serial to several deployments using the same image. Do you have any idea or plan to sync files in parallel using the same image?
test result
Run Deployments
test1
andtest2
with the same imagenginx:1.18
by tilt.And then, trigger live sync for both Deployments
test1
test2
.and then, show live sync progress from the logfile.
test1
pod between 17:37:29 - 17:37:36.test2
pod between 17:37:36 - 17:37:43.