-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.prod.yaml
72 lines (65 loc) · 2.69 KB
/
config.prod.yaml
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
# Number of worker processes to spawn.
# Set to 0 to run everything in a single process without clustering.
num_workers: 0
# Number of workers to start in parallel after the first worker.
# The first worker is always started independently. After it has completed
# its start-up, this number controls the number of workers to start in
# parallel until `num_workers` have been started. Note that setting this
# number to a too high a value might lead to high resource consumption
# (especially of CPU) during the start-up process.
startup_concurrency: 2
# Number of milliseconds to wait for a heartbeat from worker before killing
# and restarting it
worker_heartbeat_timeout: 7500
# Logger info
logging:
level: info
# Sets up sample logging for some 'interesting' events.
# Map keys correspond to the full log level names.
# Map values specify the probability for such events to be logged
# regardless of the configured logging level.
sampled_levels:
'trace/webrequest': 0.2
streams:
- type: stdout
# Use gelf-stream -> logstash
- type: gelf
host: '{env(LOGSTASH_HOST,logstash1003.eqiad.wmnet)}'
port: 12201
# Alternatively you can provide a comma-separated list of host:port pairs,
# the server to use will be selected randomly on startup
# uris: logstash1001.eqiad.wmnet:12201,logstash1003.eqiad.wmnet:12201
# Statsd metrics reporter
metrics:
type: statsd
host: '{env(STATSD_HOST,statsd.eqiad.wmnet)}'
port: 8125
batch: # Metrics batching options. Supported only for `statsd` reporter type
max_size: 1500 # Max size of the batch buffer (default: 1500)
max_delay: 1000 # Max delay for an individual metric in milliseconds (default: 1000)
# Rate limiter (enabled by default)
ratelimit:
type: memory
# optional: Kademlia backend
# type: kad
# seeds:
# - 123.456.789.233
# - 456.789.90.2
# DNS caching, switched on by default. To disable caching use:
# dns_cache: false
# To specify caching parameters use:
dns_cache:
ttl: 5 # Time-to-live for cache entries, in seconds. Default: 5
size: 100 # Optional cache size. Default: 100
services:
- name: wikibase-termbox
module: ./serverBuild/src/server/server.js
conf:
WIKIBASE_REPO: '{env(WIKIBASE_REPO,https://www.wikidata.org/w)}' #use env var with fallback
WIKIBASE_REPO_HOSTNAME_ALIAS: '{env(WIKIBASE_REPO_HOSTNAME_ALIAS,appservers-ro.discovery.wmnet)}'
SSR_PORT: '{env(SSR_PORT,3030)}'
MEDIAWIKI_REQUEST_TIMEOUT: '{env(MEDIAWIKI_REQUEST_TIMEOUT)}'
MESSAGES_CACHE_MAX_AGE: '{env(MESSAGES_CACHE_MAX_AGE)}'
LANGUAGES_CACHE_MAX_AGE: '{env(LANGUAGES_CACHE_MAX_AGE)}'
HEALTHCHECK_QUERY: '{env(HEALTHCHECK_QUERY)}'
entrypoint: default #required for ES6 style exports