2 ms·
Well if this task is trivial to parallelize.. I would spin up 100 GCE machines for 1 penny each per hour after today's price drop (combined total of $1 per hou
by brianwawok 10y ago
Well if this task is trivial to parallelize.. I would spin up 100 GCE machines for 1 penny each per hour after today's price drop (combined total of $1 per hour for 100 CPUs of action).. and pull those few million files and dump to a cloud drive in 1 hour flat.
It's a tricky sweet spot PyPy has. Certain tasks that need CPU power but not too much CPU power and you want to spend time to make it run in parallel but not too much time to make it run across many machines.
(By no means am I a PyPy or CPython expert. Just toyed with them and want to understand the bounds...)
- zardeh 10y agoBut now you have to manage that deployment which is also nontrivial.
- brianwawok 10y agoDepends on your setup I guess? I have a a GCE cluster setup where I can: 1) Point a metadata variable at my git repo 2) Spin up 100 GCEs 3) Each will pip install requirements.txt from the git checkout 4) Each will read a metadata to get the command and run it. (Could hardcode run.py or something). Realize not everyone has this sitting around, but you can do it in an afternoon. Then gives you instant Python supercomputer for anything you want across many projects.
- zardeh 10y agoThe setup for that sounds significantly nontrivial, although interesting.