Let's change our partitioning scheme for elastic nodes from RAID to JBOD. Elastic can handle data loss on a single host or partition, so the advantages of RAID are diminished. We should be able to save money by using JBOD with fewer disks.
JBOD is an overloaded term, so let's be specific. As a team, we've already discussed and approved the disk config for new cloudelastic hosts, which is 3x2TB hot-swappable SATA SSDs. With this setup, here are my suggestioned options (feel free to add more if you like)
Option 1:
- 1x RAID5 for OS
- 3x RAID0, each mounted as a separate data partition
Pros:
- Can lose a single disk without losing the host. Disks are hot-swappable and Elastic should detect a failed datadir and work around it automatically. This is important for Cloudelastic since it needs a lot of disk space and doesn't have very many hosts. That being said, it would be OK with 5 hosts and could probably survive with 4, based on conversations with @EBernhardson.
Cons:
- We've never used Elastic with this configuration. This introduces novel failure scenarios, possible performance differences, etc.
- Elastic.co has deprecated its use and warns "Elasticsearch does not balance shards across a node’s data paths. High disk usage in a single path can trigger a high disk usage watermark for the entire node." Per conversation with @EBernhardson, Opensearch has no plans to deprecate the feature.
- If we use this approach for Cloudelastic, we'll have to create more Puppet code, dashboarding, alerts, etc just for this environment.
Option 2:
- 1x RAID5 for OS
- 1x RAID0 mounted at /srv/
Pros:
- Basically identical to our current configuration.
Cons:
- If we lose a disk, we lose a host. That's completely acceptable on the larger clusters, but could cause problems in Cloudelastic with its limited number of hosts. Perhaps adding a host or two to Cloudelastic would be a better long-term solution than JBOD?