Class PerfBenchmarkDriver


  • public class PerfBenchmarkDriver
    extends Object
    • Method Detail

      • addSegment

        public void addSegment​(String tableNameWithType,
                               org.apache.pinot.segment.spi.SegmentMetadata segmentMetadata)
        Add segment while segment data is already in server data directory.
        Parameters:
        segmentMetadata - segment metadata.
      • waitForExternalViewUpdate

        public static void waitForExternalViewUpdate​(String zkAddress,
                                                     String clusterName,
                                                     long timeoutInMilliseconds)
      • postQuery

        public com.fasterxml.jackson.databind.JsonNode postQuery​(String query)
                                                          throws Exception
        Throws:
        Exception
      • startComponents

        public static PerfBenchmarkDriver startComponents​(boolean isStartZookeeper,
                                                          boolean isStartController,
                                                          boolean isStartBroker,
                                                          boolean isStartServer,
                                                          @Nullable
                                                          String serverDataDir)
                                                   throws Exception
        Start cluster components with default configuration.
        Parameters:
        isStartZookeeper - whether to start zookeeper.
        isStartController - whether to start controller.
        isStartBroker - whether to start broker.
        isStartServer - whether to start server.
        Returns:
        perf benchmark driver.
        Throws:
        Exception