Proposed fix for ES crashing with large indexing job

Hi, these commits fixed this problem for us.  You can now parameterize the QOS/prefetch value and spawn multiple consumers via the exposed num_prefetch and num_consumers variables respectively.

I hope this works for you!

--Adrian