Class FsRepository

All Implemented Interfaces:
Closeable, AutoCloseable, LifecycleComponent, org.elasticsearch.core.Releasable, Repository

public class FsRepository extends BlobStoreRepository
Shared file system implementation of the BlobStoreRepository

Shared file system repository supports the following settings

location
Path to the root of repository. This is mandatory parameter.
concurrent_streams
Number of concurrent read/write stream (per repository on each node). Defaults to 5.
chunk_size
Large file can be divided into chunks. This parameter specifies the chunk size. Defaults to not chucked.
compress
If set to true metadata files will be stored compressed. Defaults to false.
  • Field Details

  • Constructor Details

  • Method Details

    • createBlobStore

      protected BlobStore createBlobStore() throws Exception
      Description copied from class: BlobStoreRepository
      Creates new BlobStore to read and write data.
      Specified by:
      createBlobStore in class BlobStoreRepository
      Throws:
      Exception
    • chunkSize

      protected ByteSizeValue chunkSize()
      Description copied from class: BlobStoreRepository
      Returns data file chunk size.

      This method should return null if no chunking is needed.

      Overrides:
      chunkSize in class BlobStoreRepository
      Returns:
      chunk size
    • hasAtomicOverwrites

      public boolean hasAtomicOverwrites()
      Overrides:
      hasAtomicOverwrites in class BlobStoreRepository
      Returns:
      whether this repository performs overwrites atomically. In practice we only overwrite the `index.latest` blob so this is not very important, but the repository analyzer does test that overwrites happen atomically. It will skip those tests if the repository overrides this method to indicate that it does not support atomic overwrites.