5 ms·
I like the progress that is being made for running containerized workloads on macOS. In my case I like some of the benefits of running the workload on a remote
by barefeg 4y ago
I like the progress that is being made for running containerized workloads on macOS. In my case I like some of the benefits of running the workload on a remote machine; such as no fan noise, less heat, less power consumption (especially on laptops). However the downsides can be also quite annoying, such as file sync times or IDE input lag.
My current setup is to have both data and workload run on a remote machine and I connect to it via SSH. I can either run neovim inside or use the remote development plugin from VSCode. But as mentioned, the input lag can be very annoying. I’m wondering if there’s another setup where I can still retain some of the upsides of running the workloads remotely and still having a decent user experience (reduced lag)
- robertlagrant 4y agoIf you're on Kubernetes remotely, Telepresence [0] might be worth a look. [0] https://www.telepresence.io https://www.telepresence.io
- ytjohn 4y agoI was going to recommend DevSpace for kubernetes, looks like Telepresence has a lot of similar capabilities. I'll have to check that out as well. https://www.devspace.sh/ https://www.devspace.sh/
- iamveen 4y agoMutagen is what you're looking for! - Local and remote copy of files - Two way sync I've been using this for years, editing locally with Sublime, while running everything on a remote Linux vm. Because it's two way sync, anything created/modified on the server is also sync'd back to your local filesystem. I end up syncing most of the remote $HOME so I can easily fire up a new VM, sync, and go. It really is fantastic. https://mutagen.io/documentation/synchronization https://mutagen.io/documentation/synchronization
- seabrookmx 4y agoI've never noticed any input lag with VSCode remote SSH. I was under the impression the editor cached file contents (pulled entire files at a time over SSH) to resolve this issue. Or are you just talking about when using neovim?
- barefeg 4y agoFor neovim I definitely experienced input lag. In VSCode is a bit more subtle; for example when opening new files and saving files with autoformatter
- e12e 4y agoOne useful tip for reducing the latency with ssh commands (like docker, with DOCKER_HOST pointing to ssh server - for example enabling tab/autocomplete for subcommands (which does ssh to lookup list on tab)) - is to use PersisControl with ssh: https://docs.rackspace.com/blog/speeding-up-ssh-session-creation/ https://docs.rackspace.com/blog/speeding-up-ssh-session-crea... For reducing the latency of an interactive ssh session, there's mosh: https://mosh.org/ https://mosh.org/