repository-shared-file-system.asciidoc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [[snapshots-filesystem-repository]]
  2. === Shared file system repository
  3. include::{es-repo-dir}/snapshot-restore/on-prem-repo-type.asciidoc[]
  4. Use a shared file system repository to store snapshots on a
  5. shared file system.
  6. To register a shared file system repository, first mount the file system to the
  7. same location on all master and data nodes. Then add the file system's
  8. path or parent directory to the `path.repo` setting in `elasticsearch.yml` for
  9. each master and data node. For running clusters, this requires a
  10. <<restart-cluster-rolling,rolling restart>> of each node.
  11. IMPORTANT: By default, a network file system (NFS) uses user IDs (UIDs) and
  12. group IDs (GIDs) to match accounts across nodes. If your shared file system is
  13. an NFS and your nodes don't use the same UIDs and GIDs, update your NFS
  14. configuration to account for this.
  15. Supported `path.repo` values vary by platform:
  16. include::{es-repo-dir}/tab-widgets/register-fs-repo-widget.asciidoc[]
  17. [[filesystem-repository-settings]]
  18. ==== Repository settings
  19. `chunk_size`::
  20. (Optional, <<byte-units,byte value>>)
  21. Maximum size of files in snapshots. In snapshots, files larger than this are
  22. broken down into chunks of this size or smaller. Defaults to `null` (unlimited
  23. file size).
  24. `compress`::
  25. (Optional, Boolean)
  26. If `true`, metadata files, such as index mappings and settings, are compressed
  27. in snapshots. Data files are not compressed. Defaults to `true`.
  28. `location`::
  29. (Required, string)
  30. Location of the shared filesystem used to store and retrieve snapshots. This
  31. location must be registered in the `path.repo` setting on all master and data
  32. nodes in the cluster.
  33. `max_number_of_snapshots`::
  34. (Optional, integer)
  35. Maximum number of snapshots the repository can contain.
  36. Defaults to `Integer.MAX_VALUE`, which is `2^31-1` or `2147483647`.
  37. include::repository-shared-settings.asciidoc[]