I wish to create an Elasticsearch plugin, this plugin requires some settings to be stored and to be mutable. I have found in some threads using the onModule() function. But this does not seem to exist in the 6.2 plugin.
Could someone provide me with more information about how to add settings to cluster / make them mutable, or even better provide me with an example?
Take a look at the example custom settings plugin. In particular, you want a Setting object created with the Property.Dynamic. You will also most likely want to have your plugin depend on the ClusterService, and call clusterService.getClusterSettings().addSettingsUpdateConsumer to get notified when the setting changes (assuming the setting is cluster wide).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.