If a server has multiple local disks, would it be best to define a logical volume and mount point on OS level and configure this as a single logical disk in the druid.segmentCache.locations property or would it be better to configure the druid.segmentCache.locations property then with a list of individual volumes?
What would be the pros/cons of each setup?
Given that it is always possible to define a logical volume which spreads multiple physical ones, I was wondering why Druid supports multiple segment-cache locations in the first place? Is it rather a convenience feature or can Druid make better use of volumes if they are given it as separate volumes than the operating system?
For example, we have r3.8xlarge instances which have 2 local disks for a hot tier and i2.8xlarge instances with 8 local disks for the cold tier.
What are the pros/cons of either of the following setups?
druid.segmentCache.locations=[
{“path”: “/mnt/persistent/logicalvolume”, “maxSize”: 6400000000000}
]
druid.segmentCache.locations=[
{“path”: “/mnt/persistent/volume1”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume2”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume3”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume4”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume5”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume6”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume7”, “maxSize”: 800000000000},
{“path”: “/mnt/persistent/volume8”, “maxSize”: 800000000000}
]