<reponame>robertclaus/python-database-concurrency-control<gh_stars>0

# Client Configuration
DB_TYPE_MYSQL = 1
DB_TYPE_POSTGRES = 2

DB_TYPE = 1

# MySQL Configuration
MYSQL_HOST = 'localhost'
MYSQL_USER = 'root'
MYSQL_PASSWORD = '<PASSWORD>'
MYSQL_DB_NAME = 'mydb' #t for standard, mydb for tatp

# Postgres Configuration
POSTGRES_HOST = '127.0.0.1'
POSTGRES_PORT = '5432'
POSTGRES_USER = 'test'
POSTGRES_PASSWORD = '<PASSWORD>'
POSTGRES_DB_NAME = 't'

DEFAULT_TABLE='a'

# Engine Configuration
MAX_QUERIES_IN_ENGINE = 15000
NUMBER_OF_DATABASE_CLIENTS = 4
MAX_QUERIES_TO_RUN = 10000
MAX_SECONDS_TO_RUN = 10
CLIENT_BUNDLE_SIZE = 3

# TATP
SUBSCRIBER_COUNT = 5000000
USE_NON_UNIFORM_RANDOM = True

# Generator
DEFAULT_TARGET_DEPTH = 10000
GENERATOR_BUNDLE_SIZE = 10
DEFAULT_GENERATOR_WORKER_COUNT = 10
MAX_GENERATORS = 15
PREGENERATE_ALL_QUERIES = False

QUERIES_TO_NEXT_AT_TIME = 1000

# Phased Policy
# Maximum queries to run in a round of phases. Note MAX_QUERIES_IN_ENGINE may restrict this anyways.
MAX_QUERIES_PER_PHASE = 15000

# Number of queries to try and admit at once before checking if we should move onto a different phase.
QUERIES_TO_ADMIT_AT_TIME = 500
QUERIES_TO_INITIALLY_ADMIT = 200

ADMIT_MORE_QUERIES_IF_LESS_THAN = 200

# If less than this many queries are in the phase, we will move on to the next phase (will always admit at least once before checking this)
MIN_QUERIES_TO_ADMIT = 500

# Client Configuration
DB_TYPE_MYSQL = 1
DB_TYPE_POSTGRES = 2

DB_TYPE = 1

# MySQL Configuration
MYSQL_HOST = 'localhost'
MYSQL_USER = 'root'
MYSQL_PASSWORD = '<PASSWORD>'
MYSQL_DB_NAME = 'mydb' #t for standard, mydb for tatp

# Postgres Configuration
POSTGRES_HOST = '127.0.0.1'
POSTGRES_PORT = '5432'
POSTGRES_USER = 'test'
POSTGRES_PASSWORD = '<PASSWORD>'
POSTGRES_DB_NAME = 't'

DEFAULT_TABLE='a'

# Engine Configuration
MAX_QUERIES_IN_ENGINE = 15000
NUMBER_OF_DATABASE_CLIENTS = 4
MAX_QUERIES_TO_RUN = 10000
MAX_SECONDS_TO_RUN = 10
CLIENT_BUNDLE_SIZE = 3

# TATP
SUBSCRIBER_COUNT = 5000000
USE_NON_UNIFORM_RANDOM = True

# Generator
DEFAULT_TARGET_DEPTH = 10000
GENERATOR_BUNDLE_SIZE = 10
DEFAULT_GENERATOR_WORKER_COUNT = 10
MAX_GENERATORS = 15
PREGENERATE_ALL_QUERIES = False

QUERIES_TO_NEXT_AT_TIME = 1000

# Phased Policy
# Maximum queries to run in a round of phases. Note MAX_QUERIES_IN_ENGINE may restrict this anyways.
MAX_QUERIES_PER_PHASE = 15000

# Number of queries to try and admit at once before checking if we should move onto a different phase.
QUERIES_TO_ADMIT_AT_TIME = 500
QUERIES_TO_INITIALLY_ADMIT = 200

ADMIT_MORE_QUERIES_IF_LESS_THAN = 200

# If less than this many queries are in the phase, we will move on to the next phase (will always admit at least once before checking this)
MIN_QUERIES_TO_ADMIT = 500
# Client Configuration # MySQL Configuration #t for standard, mydb for tatp # Postgres Configuration # Engine Configuration # TATP # Generator # Phased Policy # Maximum queries to run in a round of phases. Note MAX_QUERIES_IN_ENGINE may restrict this anyways. # Number of queries to try and admit at once before checking if we should move onto a different phase. # If less than this many queries are in the phase, we will move on to the next phase (will always admit at least once before checking this)