IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Create a Repository
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Create a Repository
editOnce everything is installed and every node is started, you can create a new repository that uses Google Cloud Storage to store snapshots:
PUT _snapshot/my_gcs_repository
{
"type": "gcs",
"settings": {
"bucket": "my_bucket",
"service_account": "service_account.json"
}
}
The following settings are supported:
-
bucket - The name of the bucket to be used for snapshots. (Mandatory)
-
service_account -
The service account to use. It can be a relative path to a service account JSON file
or the value
_default_that indicate to use built-in Compute Engine service account. -
base_path - Specifies the path within bucket to repository data. Defaults to the root of the bucket.
-
chunk_size -
Big files can be broken down into chunks during snapshotting if needed.
The chunk size can be specified in bytes or by using size value notation,
i.e.
1g,10m,5k. Defaults to100m. -
compress -
When set to
truemetadata files are stored in compressed format. This setting doesn’t affect index files that are already compressed by default. Defaults tofalse. -
application_name -
Name used by the plugin when it uses the Google Cloud JSON API. Setting
a custom name can be useful to authenticate your cluster when requests
statistics are logged in the Google Cloud Platform. Default to
repository-gcs