def main(conf_path='./conf/postgres_opttune.conf'):
    postgres_server_config = PostgresServerConfig(conf_path)
    tune_config = TuneConfig(conf_path)
    workload_sampling_config_test = WorkloadSamplingConfig(conf_path)
    logging.config.dictConfig(logging_dict(debug=strtobool(tune_config.debug)))
    logger = logging.getLogger(__name__)
    workload_sampler = WorkloadSampler(postgres_server_config, workload_sampling_config_test)
    workload_save_file_path = workload_sampler.save()
    logger.info('Workload sampling is complete.\nWorkload save file: {}'.format(workload_save_file_path))
    logger.info("You can automatically tune the saved workload by setting the following in'./conf/postgres_opttune.conf'.\n[turning]\nbenchmark = sampled_workload \n:\n[sampled-workload]\nsampled_workload_save_file = {}".format(workload_save_file_path))
def main(conf_path='./conf/postgres_opttune.conf'):
    postgres_server_config = PostgresServerConfig(conf_path)
    tune_config = TuneConfig(conf_path)
    workload_sampling_config_test = WorkloadSamplingConfig(conf_path)
    logging.config.dictConfig(logging_dict(debug=strtobool(tune_config.debug)))
    logger = logging.getLogger(__name__)
    workload_sampler = WorkloadSampler(postgres_server_config, workload_sampling_config_test)
    workload_save_file_path = workload_sampler.save()
    logger.info('Workload sampling is complete.\nWorkload save file: {}'.format(workload_save_file_path))
    logger.info("You can automatically tune the saved workload by setting the following in'./conf/postgres_opttune.conf'.\n[turning]\nbenchmark = sampled_workload \n:\n[sampled-workload]\nsampled_workload_save_file = {}".format(workload_save_file_path))