summaryrefslogtreecommitdiff
path: root/client/settings.py
blob: 16279db2a68a1744db8caceaa95db7be4346a648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import os
import sys

# global configuration
PERFFARM_URL = 'http://140.211.168.111:8000/upload/'
SECRET='CHANGEME'

GIT_URL = 'https://github.com/postgres/postgres.git'
REPOSITORY_PATH = '/tmp/git-postgres'
BUILD_PATH = '/tmp/bin-postgres'
BIN_PATH = os.path.join(BUILD_PATH, 'bin')
DATADIR_PATH = '/tmp/data-postgres'

POSTGRES_CONFIG = {
    'shared_buffers': '1GB',
    'work_mem': '64MB',
    'maintenance_work_mem': '128MB',
    'min_wal_size': '2GB',
    'max_wal_size': '4GB',
    'log_line_prefix': '%t [%p]: [%l-1] db=%d,user=%u,app=%a,client=%h ',
    'log_checkpoints': 'on',
    'log_autovacuum_min_duration': '0',
    'log_temp_files': '32',
    'checkpoint_timeout': '30min',
    'checkpoint_completion_target': '0.9',
}

DATABASE_NAME = 'perf'

OUTPUT_DIR = '/tmp/perf-output'

# configuration for PgBench
#
# runs     - number of repetitions (including test for all client counts)
# duration - duration (in seconds) of a single benchmark (per client count)
#
PGBENCH_CONFIG = {
    'runs': 3,
    'duration': 600,
    'csv': False
}

# ignore missing file with local config
try:
    from settings_local import *
except Exception as e:
    print >> sys.stderr, "ERROR: local configuration (settings_local.py) " \
                         "not found"
    sys.exit(1)