Skip to content

Commit

Permalink
Bexhoma: CLI list of DBMS #397
Browse files Browse the repository at this point in the history
  • Loading branch information
perdelt committed Jan 2, 2025
1 parent 7761079 commit 2c096fd
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benchbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
parser = argparse.ArgumentParser(description=description)
parser.add_argument('mode', help='start sut, also load data or also run the TPC-C queries', choices=['run', 'start', 'load'])
parser.add_argument('-aws', '--aws', help='fix components to node groups at AWS', action='store_true', default=False)
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB', 'YugabyteDB', 'CockroachDB', 'DatabaseService'], default=[], action='append')
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB', 'YugabyteDB', 'CockroachDB', 'DatabaseService'], default=[], nargs='*')
parser.add_argument('-db', '--debug', help='dump debug informations', action='store_true')
parser.add_argument('-sl', '--skip-loading', help='do not ingest, start benchmarking immediately', action='store_true', default=False)
parser.add_argument('-cx', '--context', help='context of Kubernetes (for a multi cluster environment), default is current context', default=None)
Expand Down
15 changes: 15 additions & 0 deletions dev/argparse_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import argparse

if __name__ == '__main__':
description = """Perform YCSB benchmarks in a Kubernetes cluster.
Number of rows and operations is SF*1,000,000.
This installs a clean copy for each target and split of the driver.
Optionally monitoring is activated.
"""
# argparse
parser = argparse.ArgumentParser(description=description)
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB', 'YugabyteDB', 'CockroachDB', 'DatabaseService', 'PGBouncer'], default=[], nargs='*')
args = parser.parse_args()
print(args)
print(args.dbms)

2 changes: 1 addition & 1 deletion hammerdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
parser = argparse.ArgumentParser(description=description)
parser.add_argument('mode', help='start sut, also load data or also run the TPC-C queries', choices=['run', 'start', 'load', 'summary'])
parser.add_argument('-aws', '--aws', help='fix components to node groups at AWS', action='store_true', default=False)
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB'], default=[], action='append')
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB'], default=[], nargs='*')
parser.add_argument('-db', '--debug', help='dump debug informations', action='store_true')
parser.add_argument('-sl', '--skip-loading', help='do not ingest, start benchmarking immediately', action='store_true', default=False)
parser.add_argument('-cx', '--context', help='context of Kubernetes (for a multi cluster environment), default is current context', default=None)
Expand Down
2 changes: 1 addition & 1 deletion tpcds.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
parser = argparse.ArgumentParser(description=description)
parser.add_argument('mode', help='profile the import or run the TPC-DS queries', choices=['profiling', 'run', 'start', 'load', 'empty', 'summary'])
parser.add_argument('-aws', '--aws', help='fix components to node groups at AWS', action='store_true', default=False)
parser.add_argument('-dbms','--dbms', help='DBMS', choices=['PostgreSQL', 'MonetDB', 'MySQL', 'MariaDB'], default=[], action='append')
parser.add_argument('-dbms','--dbms', help='DBMS', choices=['PostgreSQL', 'MonetDB', 'MySQL', 'MariaDB'], default=[], nargs='*')
parser.add_argument('-lit', '--limit-import-table', help='limit import to one table, name of this table', default='')
parser.add_argument('-db', '--debug', help='dump debug informations', action='store_true')
parser.add_argument('-sl', '--skip-loading', help='do not ingest, start benchmarking immediately', action='store_true', default=False)
Expand Down
2 changes: 1 addition & 1 deletion tpch.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
parser = argparse.ArgumentParser(description=description)
parser.add_argument('mode', help='profile the import or run the TPC-H queries', choices=['profiling', 'run', 'start', 'load', 'empty', 'summary'])
parser.add_argument('-aws', '--aws', help='fix components to node groups at AWS', action='store_true', default=False)
parser.add_argument('-dbms','--dbms', help='DBMS', choices=['PostgreSQL', 'MonetDB', 'MySQL', 'MariaDB', 'DatabaseService'], default=[], action='append')
parser.add_argument('-dbms','--dbms', help='DBMS', choices=['PostgreSQL', 'MonetDB', 'MySQL', 'MariaDB', 'DatabaseService'], default=[], nargs='*')
parser.add_argument('-lit', '--limit-import-table', help='limit import to one table, name of this table', default='')
parser.add_argument('-db', '--debug', help='dump debug informations', action='store_true')
parser.add_argument('-sl', '--skip-loading', help='do not ingest, start benchmarking immediately', action='store_true', default=False)
Expand Down
2 changes: 1 addition & 1 deletion ycsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
parser = argparse.ArgumentParser(description=description)
parser.add_argument('mode', help='import YCSB data or run YCSB queries', choices=['run', 'start', 'load', 'summary'], default='run')
parser.add_argument('-aws', '--aws', help='fix components to node groups at AWS', action='store_true', default=False)
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB', 'YugabyteDB', 'CockroachDB', 'DatabaseService', 'PGBouncer'], default=[], action='append')
parser.add_argument('-dbms','--dbms', help='DBMS to load the data', choices=['PostgreSQL', 'MySQL', 'MariaDB', 'YugabyteDB', 'CockroachDB', 'DatabaseService', 'PGBouncer'], default=[], nargs='*')
parser.add_argument('-db', '--debug', help='dump debug informations', action='store_true')
parser.add_argument('-sl', '--skip-loading', help='do not ingest, start benchmarking immediately', action='store_true', default=False)
parser.add_argument('-cx', '--context', help='context of Kubernetes (for a multi cluster environment), default is current context', default=None)
Expand Down

0 comments on commit 2c096fd

Please sign in to comment.