-
Notifications
You must be signed in to change notification settings - Fork 39
/
config_docker_sandbox.py
41 lines (35 loc) · 1.12 KB
/
config_docker_sandbox.py
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
import logging
import os
config = {
'version': 'sandbox',
'debug': True,
'server': {
'host': '0.0.0.0',
'port': 9999,
},
'logstash': {
'host': 'logstash',
'port': 5959,
'level': logging.INFO,
'version': 1,
'name': 'dig_etl_engine',
'pipeline': '/app/logstash/pipeline',
'default_pipeline': '/app/logstash/default_pipeline'
},
'input_zookeeper_server': ['zookeeper:2181'],
'output_zookeeper_server': ['zookeeper:2181'],
'input_server': ['kafka:9092'],
'output_server': ['kafka:9092'],
'es_server': 'elasticsearch:9200',
# per project topic
'input_partitions': int(os.getenv('KAFKA_NUM_PARTITIONS', '4')),
'output_partitions': int(os.getenv('KAFKA_NUM_PARTITIONS', '4')),
'input_session_timeout': 60*60*1000,
'input_group_id': 'dig_etk', # used by etk
# 'output_group_id': 'default', # used by logstash
'logstash_group_id': 'dig_logstash',
'kafka_bin_path': '/app/kafka/bin',
'projects_path': '/shared_data/projects',
'etk_path': '/app/etk',
'es_url': 'http://elasticsearch:9200'
}