mirror of
https://github.com/Graylog2/graylog2-server.git
synced 2026-03-13 09:32:21 +08:00
Propagate path.repo in datanode for filesystem snapshots (#18369)
* Propagate path.repo in datanode for filesystem snapshots * Added changelog
This commit is contained in:
@@ -240,6 +240,12 @@ public class Configuration extends BaseConfiguration {
|
||||
@Parameter(value = "metrics_policy")
|
||||
private String metricsPolicy = "gl-datanode-metrics-ism";
|
||||
|
||||
/**
|
||||
* https://opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore/#shared-file-system
|
||||
*/
|
||||
@Parameter(value = "path_repo", converter = StringListConverter.class)
|
||||
private List<String> pathRepo;
|
||||
|
||||
@Parameter(value = "opensearch_indices_query_bool_max_clause_count")
|
||||
private Integer indicesQueryBoolMaxClauseCount = 32768;
|
||||
|
||||
@@ -642,4 +648,7 @@ public class Configuration extends BaseConfiguration {
|
||||
return rootPasswordSha2;
|
||||
}
|
||||
|
||||
public List<String> getPathRepo() {
|
||||
return pathRepo;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,6 +139,12 @@ public class OpensearchConfigurationProvider implements Provider<OpensearchConfi
|
||||
config.put("path.logs", datanodeConfiguration.datanodeDirectories().getLogsTargetDir().toString());
|
||||
|
||||
config.put("network.bind_host", localConfiguration.getBindAddress());
|
||||
|
||||
// https://opensearch.org/docs/latest/tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore/#shared-file-system
|
||||
if(localConfiguration.getPathRepo() != null && !localConfiguration.getPathRepo().isEmpty()) {
|
||||
config.put("path.repo", String.join(",", localConfiguration.getPathRepo()));
|
||||
}
|
||||
|
||||
//config.put("network.publish_host", Tools.getLocalCanonicalHostname());
|
||||
|
||||
// Uncomment the following line to get DEBUG logs for the underlying Opensearch
|
||||
|
||||
Reference in New Issue
Block a user