mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 13:26:02 +00:00
"cloud_internal" license type enables dynamically updating license operation mode via a config file. When the installed license is "cloud_internal", the node level operation mode can be updated by writing a `license_mode` file in the x-pack config directory (config/x-pack/license_mode). The file is expected to have a string representing the desired license mode (e.g. "gold", "basic"). In case of a failure to read a valid license mode from the `license_mode` file, the operation mode for "cloud_internal" license defaults to PLATINUM. This change also ensures that the correct operation mode is reported via the _xpack endpoint. closes elastic/elasticsearch#2042 Original commit: elastic/x-pack-elasticsearch@6a2d788e45