Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

containers would've solved it

one process per container, easy peasy



you now containers are just processes, right?

This is what they did, but because they didn't need to schedule other jobs on the same machine, kubernetes or even docker would be overkill.

In this case, simple VM orchestration seems like a fine solution.


Indeed,

but you wouldn't be thinking about instance sizes,

how many processes per instance and

wondering if you're hitting kernel limits with all the issues coming up


You'd probably be worrying more about instance sizes if you ran a single executor per container; the memory overhead of your app would become a problem very quickly unless it's startup footprint was quite small.


That's what they're doing now.

One app pool with one worker x number of cores


I assumed they're managing all those workers under one parent process which compiled their codebase on start. Perhaps that assumption was in error.


Why not?


This doesn’t work so easily with architectures with process pools for workers. So now your app server needs to speak docker (or whatever control plane) to spawn new workers and deal with more complicated IPC. Also the startup time is brutal.

One process per container and multiprocessing is a huge lift most of the time. I’ve done it but it can be a mess because you don’t really have as much a handle on containers than subprocesses because you can only poke them at a distance through the control plane.


> One process per container and multiprocessing

Do you mean multiprocessing inside the containers? Or are you managing multiprocessing child procs by forking into a container somehow? If the latter, I'd be really interested to learn how to do that; I didn't think it was possible, and it would be super useful for some of what I work on.


That's what they're doing now.

One app pool with one worker x number of cores

Wrapping it around a container makes no difference




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: