Dumping large indexes fails.
Summary
Large index backup process fails with message about out of memory exception in JavaScript. Related issues are:
- "JavaScript heap out of memory" during dump
- elastic dump fails if indice having huge data
- Out of memory when exporting large data
Possible fixes
Dump index to file and then compress it instead of pipe to bzip/gzip.