Skip to content

Commit

Permalink
Code cleanup (#21177)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Oesterheld <[email protected]>
  • Loading branch information
todvora and moesterheld authored Dec 17, 2024
1 parent 63e03d9 commit f197bbb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.graylog.datanode.configuration;

import org.graylog.datanode.OpensearchDistribution;
import org.graylog2.security.IndexerJwtAuthTokenProvider;

/**
Expand All @@ -27,7 +26,6 @@ public record DatanodeConfiguration(
OpensearchDistributionProvider opensearchDistributionProvider,
DatanodeDirectories datanodeDirectories,
int processLogsBufferSize,
String opensearchHeap,
IndexerJwtAuthTokenProvider indexerJwtAuthTokenProvider
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public DatanodeConfigurationProvider(
opensearchDistributionProvider,
DatanodeDirectories.fromConfiguration(localConfiguration, nodeId),
localConfiguration.getProcessLogsBufferSize(),
localConfiguration.getOpensearchHeap(),
jwtTokenProvider
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public DatanodeConfigurationPart buildConfigurationPart(OpensearchConfigurationP
return DatanodeConfigurationPart.builder()
.properties(commonOpensearchConfig(buildParams))
.nodeRoles(localConfiguration.getNodeRoles())
.javaOpt("-Xms%s".formatted(datanodeConfiguration.opensearchHeap()))
.javaOpt("-Xmx%s".formatted(datanodeConfiguration.opensearchHeap()))
.javaOpt("-Xms%s".formatted(localConfiguration.getOpensearchHeap()))
.javaOpt("-Xmx%s".formatted(localConfiguration.getOpensearchHeap()))
.javaOpt("-Dopensearch.transport.cname_in_publish_address=true")
.build();
}
Expand Down

0 comments on commit f197bbb

Please sign in to comment.