-
Notifications
You must be signed in to change notification settings - Fork 0
/
container_dataserver_common.cfg
150 lines (134 loc) · 3.75 KB
/
container_dataserver_common.cfg
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
[buildout]
extends =
base_environment.cfg
deployment.cfg
analytics.cfg
solr.cfg
credit.cfg
calendar.cfg
contentrendering.cfg
courseware_content.cfg
invitations.cfg
segments.cfg
presentation.cfg
buildout.cfg
supervisor.cfg
parts =
directories
eggs
zcml
main-conf
gunicorn-conf
library-conf
solr-conf
relstorages
roles
supervisor
nltk
nltk_data
[product-sources]
<= product-courses-sources
product-segment-sources
product-integration-ALL-sources
product-xr-sources
[solr-sources]
<= solr-ALL-sources
[completion-sources]
<= completion-ALL-sources
[credit-sources]
<= credit-ALL-sources
[calendar-sources]
<= calendar-ALL-sources
[courseware-ALL-sources]
<= invitations-ALL-sources
presentation-ALL-sources
courseware-content-ALL-sources
[zcml]
package_features += no_avatar
production_env
[relstorages]
recipe = nti.recipes.zodb:relstorage
storages = Users
cache-local-mb = 0
sql_adapter = sqlite3
commit_lock_timeout = 10
[eggs]
recipe = zc.recipe.egg
eggs =
pip
mysqlclient
${:dataserver_egg}
nti.app.analytics
nti.app.analytics_registration
nti.app.asynchronous
nti.app.contentlibrary_rendering
nti.app.contentlibrary_reports
nti.app.contentlibrary_store
nti.app.contenttypes.calendar
nti.app.contenttypes.credit
nti.app.contenttypes.reports
nti.app.invitations
nti.app.metadata
nti.app.products.ats_imis
nti.app.products.courseware_content
nti.app.products.courseware_reports
nti.app.products.courseware_store
nti.app.recorder
nti.app.site
nti.app.solr
nti.app.store
nti.mailer
nti.wsgi.cors
nti.app.products.acclaim
nti.app.products.google
nti.app.products.webinar
nti.app.products.growthzone
nti.app.products.salesforce
nti.app.products.integration
nti.app.products.yourmembership
nti.app.products.zapier
${product-xr-eggs:eggs}
${product-segment-eggs:eggs}
interpreter = python
# Note that when scripts are installed,
# the order is not knowable. Thus it is not
# possible for one egg to reliable override
# a script from another egg, without
# explicitly listing exactly which scripts (from all
# eggs) to install. That is a large list, so
# we just need to make sure we don't have conflicts
# in names.
dependent-scripts = true
[environment]
global_content_directory = /srv/content
statsd_port = 9125
statsd_prefix = 'pserve'
cache_servers =
[main-conf]
redis_client_url = redis://localhost:6379
[gunicorn-conf]
preload_app = false
workers = 1
[library-conf]
library-type = filesystemLibrary
library-args =
directory="${environment:global_content_directory}"
prefix="${environment:global_content_location}"
[supervisor]
http-socket = inet
serverurl = http://127.0.0.1:9001
# Disable supervisord based log rotation because we have switched to using logrotate
logfile-maxbytes = 0
childstdout-logfile-maxbytes = 0
childstderr-logfile-maxbytes = 0
# Don't wipe away existing logs
nocleanup = True
pserve_group_programs = pserve,metadata,solr_indexer,library_renderer,scheduled_job_dispatcher,scheduled_job_executor
programs =
999 pserve (stopwaitsecs=30) ${deployment:root-directory}/bin/nti_pserve [${:pserve-ini}]
99 solr_indexer (stopwaitsecs=30) ${deployment:bin-directory}/nti_solr_indexer [-v --slugs]
99 metadata (stopwaitsecs=30) ${deployment:bin-directory}/nti_metadata_processor [-v --slugs]
99 library_renderer (stopwaitsecs=30) ${deployment:bin-directory}/nti_library_renderer [-v -r 1 -s 2 --slugs]
99 scheduled_job_dispatcher (stopwaitsecs=30) ${deployment:bin-directory}/nti_scheduled_dispatcher [-v --slugs]
99 scheduled_job_executor (stopwaitsecs=30) ${deployment:bin-directory}/nti_scheduled_executor [-v --slugs]
99 qp_mailer (stopwaitsecs=30) ${deployment:bin-directory}/nti_mailer_qp_process [${deployment:mail-directory}]