3 ms·
I haven't used it, but I've seen presentations about Disco [1] a map reduce thingie in erlang with python. I wrote about half of a map reduce thing in perl, alt
by toast0 10y ago
I haven't used it, but I've seen presentations about Disco [1] a map reduce thingie in erlang with python. I wrote about half of a map reduce thing in perl, although I hadn't really gotten the network part down before I stopped using it.
If most of the workers can read input on standard in, and output to standard out, it's pretty easy for a manager process to set those up as pipes or tcp sockets and then exec the worker. For multiple inputs -> one output, or one output -> multiple input, it's a bit trickier, but you could probably still open the sockets and just pass some information to the worker about which sockets are inputs, and which are outputs -- the worker may need to do fancier I/O handling (select and what not).
If you need to handle transient failures of workers and restart processing, or cache output, etc, then that's a bit more work.
Also -- do consider if you can do it all on a single box if you just get a really big box. You can stuff a _lot_ of memory in a single box now, and save a lot of hassle.
[1] http://discoproject.org/ http://discoproject.org/
- lobster_johnson 10y agoDisco is interesting, though it seems like the multi-language support is a bit lacking. Someone wrote a Go worker, but it's unfinished and abandoned. A pipeline processing system needs durable queueing, though. Maybe you could use the Disco distributed file system or maybe plug in something like Kafka, though I'm not sure how.
- toast0 10y ago> A pipeline processing system needs durable queueing, though. Eh, it might be nice to have, and a lot of systems have it, but it's not necessarily a need. Depends on your use case, and your environment -- most days, none of my servers have any problems; on the days where there are problems, I could manually restart my pipeline jobs. (I would need durable storage of the inputs to the pipeline.)
- lobster_johnson 10y agoI was referring to the inputs, mostly. My app also has a lot of intermediate data that wants to stick around and be durable across batches, things like scraping results that needs to avoid incurring duplicate work when nothing has changed. For that, some kind of data-locality-awareness would also be nice.