Annotation Interface EnableDiskStore


The EnableDiskStore annotation marks a Spring @Configuration annotated Class to configure a single GemFire/Geode DiskStore bean in the Spring application context in which to persist or overflow data from 1 or more cache Regions.
Since:
1.9.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Set to true to allow disk compaction to be forced on this disk store.
    boolean
    Set to true to automatically compact the disk files.
    int
    The threshold at which an oplog will become compactable.
    File system directory location(s) in which the DiskStore files are stored.
    float
    Disk usage above this threshold generates an error message and shuts down the member's cache.
    float
    Disk usage above this threshold generates a warning message.
    long
    The maximum size, in megabytes, of an oplog (operation log) file.
    Name of the DiskStore.
    int
    Maximum number of operations that can be asynchronously queued to be written to disk.
    long
    The number of milliseconds that can elapse before unwritten data is written to disk.
    Name of the DiskStore.
    int
    The size of the write buffer that this disk store uses when writing data to disk.
  • Element Details

    • value

      @AliasFor(attribute="name") String value
      Name of the DiskStore. Required!
      Default:
      ""
    • name

      @AliasFor(attribute="value") String name
      Name of the DiskStore. Required! This value of this attribute is also used to resolve DiskStore specific properties defined in application.properties.
      Default:
      ""
    • allowForceCompaction

      boolean allowForceCompaction
      Set to true to allow disk compaction to be forced on this disk store. Defaults to false. Use either the spring.data.gemfire.disk.store.<diskStoreName>.allow-force-compaction property or the spring.data.gemfire.disk.store.allow-force-compaction property in application.properties.
      Default:
      false
    • autoCompact

      boolean autoCompact
      Set to true to automatically compact the disk files. Defaults to true. Use either the spring.data.gemfire.disk.store.<diskStoreName>.auto-compact property or the spring.data.gemfire.disk.store.auto-compact property in application.properties.
      Default:
      true
    • compactionThreshold

      int compactionThreshold
      The threshold at which an oplog will become compactable. Until it reaches this threshold the oplog will not be compacted. The threshold is a percentage in the range 0 to 100. Defaults to 50 percent. Use either the spring.data.gemfire.disk.store.<diskStoreName>.compaction-threshold property or the spring.data.gemfire.disk.store.compaction-threshold property in application.properties.
      Default:
      50
    • diskDirectories

      File system directory location(s) in which the DiskStore files are stored. Defaults to current working directory with 2 petabytes of storage capacity maximum size. Use either the spring.data.gemfire.disk.store.<diskStoreName>.directory[#].location, spring.data.gemfire.disk.store.<diskStoreName>.directory[#].size, spring.data.gemfire.disk.store.<diskStoreName>.directory.location, spring.data.gemfire.disk.store.<diskStoreName>.directory.size properties, or the spring.data.gemfire.disk.store.directory[#].location spring.data.gemfire.disk.store.directory[#].size, spring.data.gemfire.disk.store.directory.location, spring.data.gemfire.disk.store.directory.size properties, in application.properties.
      Default:
      {}
    • diskUsageCriticalPercentage

      float diskUsageCriticalPercentage
      Disk usage above this threshold generates an error message and shuts down the member's cache. For example, if the threshold is set to 99%, then falling under 10 GB of free disk space on a 1 TB drive generates the error and shuts down the cache. Set to "0" (zero) to disable. Defaults to 99 percent. Use either the spring.data.gemfire.disk.store.<diskStoreName>.disk-usage-critical-percentage property or the spring.data.gemfire.disk.store.disk-usage-critical-percentage property in application.properties.
      Default:
      99.0f
    • diskUsageWarningPercentage

      float diskUsageWarningPercentage
      Disk usage above this threshold generates a warning message. For example, if the threshold is set to 90%, then on a 1 TB drive falling under 100 GB of free disk space generates the warning. Set to "0" (zero) to disable. Defaults to 90 percent. Use either the spring.data.gemfire.disk.store.<diskStoreName>.disk-usage-warning-percentage property or the spring.data.gemfire.disk.store.disk-usage-warning-percentage property in application.properties.
      Default:
      90.0f
    • maxOplogSize

      long maxOplogSize
      The maximum size, in megabytes, of an oplog (operation log) file. Defaults to 1024 MB. Use either the spring.data.gemfire.disk.store.<diskStoreName>.max-oplog-size property or the spring.data.gemfire.disk.store.max-oplog-size property in application.properties.
      Default:
      1024L
    • queueSize

      int queueSize
      Maximum number of operations that can be asynchronously queued to be written to disk. Defaults to 0 (unlimited). Use either the spring.data.gemfire.disk.store.<diskStoreName>.queue-size property or the spring.data.gemfire.disk.store.queue-size property in application.properties.
      Default:
      0
    • timeInterval

      long timeInterval
      The number of milliseconds that can elapse before unwritten data is written to disk. Defaults to 1000 ms. Use either the spring.data.gemfire.disk.store.<diskStoreName>.time-interval property or the spring.data.gemfire.disk.store.time-interval property in application.properties.
      Default:
      1000L
    • writeBufferSize

      int writeBufferSize
      The size of the write buffer that this disk store uses when writing data to disk. Larger values may increase performance but use more memory. The disk store allocates one direct memory buffer of this size. Defaults to 32768 bytes. Use either the spring.data.gemfire.disk.store.<diskStoreName>.write-buffer-size property or the spring.data.gemfire.disk.store.write-buffer-size property in application.properties.
      Default:
      32768