Beispiel #1
0
    def read_result(benchmark_run, kusto_client):
        run_id = benchmark_run.run_id

        start_time = CLperfDB.benchmark_start_time(benchmark_run)
        end_time = CLperfDB.benchmark_end_time(benchmark_run)

        max_outstanding_io = benchmark_run.config_overrides.config_dict[
            'SQL.Config_RgSettings_LocalVolumeMaxOutstandingIo']
        volume_io_request_size_bytes = benchmark_run.config_overrides.config_dict[
            'SQL.Config_RgSettings_LocalVolumeIORequestSizeBytes']
        max_log_rate = benchmark_run.property_overrides.instance_settings_dict[
            'MaxLogRate']

        results = CLperfDB.read_results_benchmark(benchmark_run)

        try:
            transactions_per_minute = results['Transactions per minute']
        except:
            transactions_per_minute = None

        try:
            response_time_90th_percentile = results['90th percentile']
        except:
            response_time_90th_percentile = None

        failover_kusto_test = KustoFailover.failover_kusto_test(
            kusto_client, benchmark_run)
        backup_kusto_test = KustoBackup.backup_kusto_test(
            kusto_client, benchmark_run)

        return Result(run_id, max_outstanding_io, volume_io_request_size_bytes,
                      max_log_rate, start_time, end_time,
                      transactions_per_minute, response_time_90th_percentile,
                      failover_kusto_test, backup_kusto_test)
 def read_results(self):
     results_json = CLperfDB.read_results_benchmark(self)
     self.target = Target(results_json_list, self.run_id)