예제 #1
0
    if len(lines) > 1:
        assert lines[-1].find("total") != -1
    logging.debug("\n".join(lines))
    total = int(lines[-1].strip().split(" ")[0])
    # print output
    # print "TOTAL:", total
    return total


## DEF

## ==============================================
## main
## ==============================================
if __name__ == "__main__":
    allBenchmarks = hstore.getBenchmarks()

    aparser = argparse.ArgumentParser(description="Create H-Store transaction trace files")
    aparser.add_argument("benchmark", choices=allBenchmarks, help="Target benchmark identifier")
    aparser.add_argument("--config", type=file, metavar="FILE", help="Path to H-Store configuration file to use")
    aparser.add_argument(
        "--txn-count", type=int, default=100000, metavar="T", help="The minimum number of transaction records needed"
    )
    aparser.add_argument("--txn-rate", type=int, default=1000, metavar="R", help="Transaction submission rate.")
    aparser.add_argument(
        "--memory",
        type=int,
        default=10240,
        metavar="MB",
        help="The amount of memory (in MB) to provide the JVM when combining the transaction records",
    )
예제 #2
0
## DEF

## ==============================================
## main
## ==============================================
if __name__ == '__main__':
    HSTORE_PARAMS = hstore.getAllParameters()

    aparser = argparse.ArgumentParser(description='H-Store Experiment Runner')

    aparser.add_argument('fabric',
                         choices=["ec2", "ssh"],
                         help='Fabric Configuration Type')
    aparser.add_argument('--benchmark',
                         choices=hstore.getBenchmarks(),
                         nargs='+',
                         help='Target benchmarks')

    # Cluster Parameters
    agroup = aparser.add_argument_group('EC2 Cluster Control Parameters')
    agroup.add_argument(
        "--partitions",
        type=int,
        default=4,
        metavar='P',
        nargs='+',
    )
    agroup.add_argument("--start-cluster", action='store_true')
    agroup.add_argument("--stop-cluster", action='store_true')
    agroup.add_argument("--fast-start", action='store_true')
예제 #3
0
            std_dev=stddevTxnRate
        )
        result.upload(upload_url)
    ## IF
    return
## DEF

## ==============================================
## main
## ==============================================
if __name__ == '__main__':
    HSTORE_PARAMS = hstore.getAllParameters()
    
    aparser = argparse.ArgumentParser(description='H-Store Experiment Runner')
    
    aparser.add_argument('--benchmark', choices=hstore.getBenchmarks(), nargs='+',
                         help='Target benchmarks')
    
    # Cluster Parameters
    agroup = aparser.add_argument_group('EC2 Cluster Control Parameters')
    agroup.add_argument("--partitions", type=int, default=4, metavar='P', nargs='+',)
    agroup.add_argument("--start-cluster", action='store_true')
    agroup.add_argument("--fast-start", action='store_true')
    agroup.add_argument("--force-reboot", action='store_true')
    agroup.add_argument("--single-client", action='store_true')
    agroup.add_argument("--no-execute", action='store_true', help='Do no execute any experiments after starting cluster')
    agroup.add_argument("--no-compile", action='store_true', help='Disable compiling before running benchmark')
    agroup.add_argument("--no-update", action='store_true', help='Disable synching git repository')
    agroup.add_argument("--no-jar", action='store_true', help='Disable constructing benchmark jar')
    agroup.add_argument("--no-conf", action='store_true', help='Disable updating HStoreConf properties file')
    agroup.add_argument("--no-sync", action='store_true', help='Disable synching time between nodes')
예제 #4
0
    lines = output.split("\n")
    if len(lines) > 1: assert lines[-1].find("total") != -1
    logging.debug("\n".join(lines))
    total = int(lines[-1].strip().split(" ")[0])
    #print output
    # print "TOTAL:", total
    return total


## DEF

## ==============================================
## main
## ==============================================
if __name__ == '__main__':
    allBenchmarks = hstore.getBenchmarks()

    aparser = argparse.ArgumentParser(
        description='Create H-Store transaction trace files')
    aparser.add_argument('benchmark',
                         choices=allBenchmarks,
                         help='Target benchmark identifier')
    aparser.add_argument('--config',
                         type=file,
                         metavar='FILE',
                         help='Path to H-Store configuration file to use')
    aparser.add_argument(
        '--txn-count',
        type=int,
        default=100000,
        metavar='T',