-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add user-defined cluster metadata (#33325)
Adds a place for users to store cluster-wide data they wish to associate with the cluster via the Cluster Settings API. This is strictly for user-defined data, Elasticsearch makes no other other use of these settings.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,27 @@ user with access to the <<cluster-update-settings,cluster-update-settings>> | |
API can make the cluster read-write again. | ||
|
||
|
||
[[user-defined-data]] | ||
==== User Defined Cluster Metadata | ||
|
||
User-defined metadata can be stored and retrieved using the Cluster Settings API. | ||
This can be used to store arbitrary, infrequently-changing data about the cluster | ||
without the need to create an index to store it. This data may be stored using | ||
any key prefixed with `cluster.metadata.`. For example, to store the email | ||
address of the administrator of a cluster under the key `cluster.metadata.administrator`, | ||
issue this request: | ||
|
||
[source,js] | ||
------------------------------- | ||
PUT /_cluster/settings | ||
{ | ||
"persistent": { | ||
"cluster.metadata.administrator": "[email protected]" | ||
} | ||
} | ||
------------------------------- | ||
// CONSOLE | ||
|
||
[[cluster-max-tombstones]] | ||
==== Index Tombstones | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters