20.6. FileSystem DataStore Configuration

This section details configuration properties specific to the FileSystem data store. For general properties, see Runtime Configuration.

20.6.1. File Writers

The following properties control the writing of data files. geomesa.fs.size.threshold

When specifying a target size for data files, this property controls the error margin that is considered acceptable. Files which are outside of the margin may be merged or split during compactions. See Configuring Target File Size for more information.

The threshold is specified as a float greater than 0 and less than 1, with a default value of 0.05. For example, if the target file size is 100 bytes, then an error threshold of 0.05 means that files will not be compacted if they are between 95 and 105 bytes. geomesa.fs.writer.partition.timeout

When writing to multiple partitions, each partition writer is kept open until the overall feature writer is closed. When writing to many partitions at once, this may cause memory problems due to the large number of writers. To mitigate this, idle partitions can be closed after a configurable timeout.

The timeout is defined as a duration, e.g. 60 seconds or 100 millis.

20.6.2. FileSystem Operations geomesa.fs.file.cache.duration

To avoid repeated reads from disk, GeoMesa will cache the results of disk operations for a certain period of time. This has the side effect that files modified by external processes may not be visible until after the cache timeout.

The property is defined as a duration, e.g. 60 seconds or 100 millis. By default it is 10 minutes.