Skip to content

Commit

Permalink
Disable ganglia metrics reporter for rubix
Browse files Browse the repository at this point in the history
Ganglia metrics reporting does not work with the
custom hostnames generated by Trino. Disabling it
to avoid generating failures in logs.
  • Loading branch information
raunaqmorarka authored and sopel39 committed Feb 21, 2022
1 parent 559d443 commit 921e189
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.qubole.rubix.bookkeeper.BookKeeper;
import com.qubole.rubix.bookkeeper.BookKeeperServer;
import com.qubole.rubix.bookkeeper.LocalDataTransferServer;
import com.qubole.rubix.common.metrics.MetricsReporterType;
import com.qubole.rubix.core.CachingFileSystem;
import com.qubole.rubix.prestosql.CachingPrestoAdlFileSystem;
import com.qubole.rubix.prestosql.CachingPrestoAzureBlobFileSystem;
Expand Down Expand Up @@ -58,6 +59,7 @@
import static com.qubole.rubix.spi.CacheConfig.setDataTransferServerPort;
import static com.qubole.rubix.spi.CacheConfig.setEmbeddedMode;
import static com.qubole.rubix.spi.CacheConfig.setIsParallelWarmupEnabled;
import static com.qubole.rubix.spi.CacheConfig.setMetricsReporters;
import static com.qubole.rubix.spi.CacheConfig.setOnMaster;
import static com.qubole.rubix.spi.CacheConfig.setPrestoClusterManager;
import static io.trino.plugin.hive.DynamicConfigurationProvider.setCacheKey;
Expand Down Expand Up @@ -299,6 +301,7 @@ private void updateRubixConfiguration(Configuration config, Owner owner)
setCacheDataFullnessPercentage(config, diskUsagePercentage);
setBookKeeperServerPort(config, bookKeeperServerPort);
setDataTransferServerPort(config, dataTransferServerPort);
setMetricsReporters(config, MetricsReporterType.JMX.name());

setEmbeddedMode(config, true);
enableHeartbeat(config, false);
Expand Down

0 comments on commit 921e189

Please sign in to comment.