-
Notifications
You must be signed in to change notification settings - Fork 21
/
development_environment
156 lines (138 loc) · 9.34 KB
/
development_environment
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
## FlowAuth settings
# Database that stores users and servers, defaults to temporary sqlite
#SQLALCHEMY_DATABASE_URI
# Flask secret key for CSRF protection
SECRET_KEY=secret
# At rest encryption of server secret keys
FLOWAUTH_FERNET_KEY="XU-J5xNOtkaUKAoqWT7_VoT3zk2OTuoqKPBN3l0pOFg="
# Creates demo data when running
DEMO_MODE=true
# Required by flask
FLASK_APP=flowauth
# Enable/disable flask debug/autoreload
FLASK_DEBUG=1
FLOWAUTH_PORT=9091
FLOWAUTH_ADMIN_PASSWORD=DUMMY_PASSWORD
FLOWAUTH_ADMIN_USERNAME=TEST_ADMIN
FLOWAUTH_LOG_LEVEL=debug
FLOWAUTH_CACHE_BACKEND=memory
## FlowAPI settings
# Shouldn't be relevant as serving now done by hypercorn?
QUART_APP="flowapi.main:create_app()"
# Shouldn't be relevant as serving now done by hypercorn?
QUART_DEBUG=1
# Error & debug log level
FLOWAPI_LOG_LEVEL=debug
# Flowmachine ZMQ host
FLOWMACHINE_HOST=localhost
FLOWAPI_PORT=9090
FLOWAPI_IDENTIFIER=TEST_SERVER
# Hostname to connect to flowdb
FLOWDB_HOST=localhost
# Port to connect to flowdb
FLOWDB_PORT=9000
## FlowMachine settings
# To avoid mpl errors
MPLBACKEND="agg"
# Password for redis
REDIS_PASSWORD=fm_redis
# Error and debugging log level
FLOWMACHINE_LOG_LEVEL=debug
# Number of connections to keep open to flowdb
#DB_CONNECTION_POOL_SIZE
# Number of connections to open in addition if needed
#DB_CONNECTION_POOL_OVERFLOW
# Hostname of redis
REDIS_HOST=localhost
# Port to connect to redis
REDIS_PORT=6379
## FlowMachine server settings
#asyncio debug mode
FLOWMACHINE_SERVER_DEBUG_MODE=false
FLOWMACHINE_SERVER_DISABLE_DEPENDENCY_CACHING=false
#Port to listen on for zmq
FLOWMACHINE_PORT=5555
## FlowDB Settings
# Superuser
POSTGRES_USER=flowdb
# Superuser password
POSTGRES_PASSWORD=flowflow
# Flowmachine user username
FLOWMACHINE_FLOWDB_USER=flowmachine
# Flowapi user username
FLOWAPI_FLOWDB_USER=flowapi
# Off by default, enables pldebugger
FLOWDB_ENABLE_POSTGRES_DEBUG_MODE=False
# Password for flowmachine user
FLOWMACHINE_FLOWDB_PASSWORD=foo
# Password for flowapi user
FLOWAPI_FLOWDB_PASSWORD=foo
# Size in bytes to limit cache to
CACHE_SIZE=100000
# Decay rate for cache records
CACHE_HALF_LIFE=10000
# Number of seconds to protect cache records from deletion
CACHE_PROTECTED_PERIOD=3600
# Max number of CPUs to use
#MAX_CPUS
# Max number of worker processes to use
#MAX_WORKERS
# Max number of worker processes to use per query
#MAX_WORKERS_PER_GATHER
# Size of postgres shared memory buffers
#SHARED_BUFFERS_SIZE
# Set the postgres 'effective_cache_size' parameter
#EFFECTIVE_CACHE_SIZE
# Enable/disable postgres JIT
#JIT
# Default stats target for tables
#STATS_TARGET
# Synthetic data settings
# Which data generator to use
SYNTHETIC_DATA_GENERATOR=sql
N_SITES=200
N_CELLS=1000
N_SUBSCRIBERS=50000
N_DAYS=60
N_CALLS=20000
N_SMS=20000
N_MDS=20000
N_TACS=10000
P_OUT_OF_AREA=0.1
P_RELOCATE=0.1
INTERACTIONS_MULTIPLIER=5
DISASTER_START=2016-02-11
DISASTER_END=2016-03-01
DISASTER_REGION_PCOD="NPL.1.1_1"
SUBSCRIBERS_SEED=12345
CALLS_SEED=22222
CELLS_SEED=99999
OUTPUT_ROOT_DIR=/docker-entrypoint-initdb.d
SKIP_TEST_QA_CHECK=False
# Integration tests
FLOWKIT_INTEGRATION_TESTS_DISABLE_AUTOSTART_SERVERS=FALSE
# FlowETL
SQL_ALCHEMY_CONN=postgresql://flowetl:flowetl@flowetl_db:5432/flowetl
AIRFLOW__CELERY__RESULT_BACKEND=db+postgresql://flowetl:flowetl@flowetl_db:5432/flowetl
FLOWETL_FERNET_KEY=ssgBqImdmQamCrM9jNhxI_IXSzvyVIfqvyzES67qqVU=
FLOWETL_PORT=8080
FLOWETL_POSTGRES_PASSWORD=flowetl
FLOWETL_POSTGRES_USER=flowetl
FLOWETL_POSTGRES_DB=flowetl
FLOWETL_POSTGRES_PORT=9001
FLOWETL_AIRFLOW_ADMIN_USERNAME=admin
FLOWETL_AIRFLOW_ADMIN_PASSWORD=password
FLOWETL_AIRFLOW_PG_POOL_SLOT_COUNT=4
FLOWETL_CELERY_PORT=25555
FLOWETL_WORKER_COUNT=1
FLOWETL_REDIS_PASSWORD=flowetl
FLOWETL_WEBSERVER_PASSWORD=admin
HOST_DAGS_DIR=./flowetl/mounts/dags
# JWT keypair
PRIVATE_JWT_SIGNING_KEY=LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQ0KTUlJSkp3SUJBQUtDQWdFQTJVS0ZGOHNObnNMc3g3cXRTUFBjTnFyRTVMd0pPeWlLZFI2emd3NlloMk9DVHU3SQ0KNGY4b2Fpdk5KWWNuNElGMzRlUnFSemRURldaeEJwS2VKQnJHa1UyKzVCbVNneERFbEJxVWxBQ1B2eHNVV2lheQ0Kd2l3REZRdHEvakd6K3BabitCU09DK3V0VmM4alpiUWhWRVFDRi9nckk3eTZpUHBWYk01Tjkva0FP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