The gateway makes sure your data persists across full cluster restart. So
if you use a shared gateway (like FS), you can store your indices in memory
safely, and you'll still be able to recover your data if the whole cluster
goes down.
That said, the recommended way to go is local gateway, since you only store
the data in once place - the file system of each node.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.