~launchpad-pqm/launchpad/devel

2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
1
# identify the component configuration used to define the site:
2
site-definition site.zcml
3
4
# number of bytecode instructions to execute between checks for
5
# interruptions (SIGINTR, thread switches):
6
interrupt-check-interval 200
7
8
<server>
9
  type HTTP
10
  address 9031
11
</server>
12
63.1.156 by Robert Collins
Add new InternalHTTPLayer for internal to datacentre requests.
13
<server>
14
  type InternalHTTP
15
  address 9000
16
</server>
17
18
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
19
##<server>
20
##  type FTP
21
##  address 8021
22
##</server>
23
24
# non-persistent in-memory storage
25
<zodb>
26
  <mappingstorage/>
27
</zodb>
28
29
<accesslog>
30
  # This sets up logging to both a file (access.log) and to standard
31
  # output (STDOUT).  The "path" setting can be a relative or absolute
32
  # filesystem path or the tokens STDOUT or STDERR.
33
34
  <logfile>
1681.1.156 by Stuart Bishop
Update production log file locations and set page timeout to 15 seconds
35
    path /srv/launchpad.net/production-logs/launchpad-access1.log
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
36
  </logfile>
37
38
</accesslog>
39
40
<eventlog>
41
  # This sets up logging to both a file (z3.log) and to standard
42
  # output (STDOUT).  The "path" setting can be a relative or absolute
43
  # filesystem path or the tokens STDOUT or STDERR.
44
45
  <logfile>
1681.1.156 by Stuart Bishop
Update production log file locations and set page timeout to 15 seconds
46
    path /srv/launchpad.net/production-logs/launchpad1.log
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
47
  </logfile>
48
49
</eventlog>
50
51
# Launchpad configuration. Note that we can specify multiple configurations
52
# in here. Currently, we have configurations named 'testrunner' (used
53
# by the testrunner), and 'default' (used by everything else)
54
#
55
# The section that is used can be specified by setting the LPCONFIG
56
# environment variable
57
#
58
<canonical default>
59
    # DB settings must still match launchpad-sql-configure-normal.zcml
60
    dbname launchpad_prod
61
    dbhost emperor
62
63
    # Display tracebacks on error pages.
64
    # IMPORTANT: Set to false on production servers!
65
    show_tracebacks false
66
67
    # This is the email address used for the Errors-To: header on
68
    # all outgoing emails. At somepoint a bounce handler will be
69
    # installed here to detect failing email addresses and flag them
70
    # in the database.
71
    bounce_address bounces@canonical.com
72
73
    <launchpad>
74
        dbuser launchpad
75
        # Root URL to a launchpad instance, used for generating URLs
76
        # inside of launchpad by urlparse.urljoin
2227 by Canonical.com Patch Queue Manager
[trivial] Production config updates
77
        root_url https://launchpad.net/
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
78
        errors_address launchpad-error-reports@lists.canonical.com
1681.1.74 by Stuart Bishop
Update production email and staging configs for launchpad.net domain
79
        bugs_domain bugs.launchpad.net
1681.1.156 by Stuart Bishop
Update production log file locations and set page timeout to 15 seconds
80
        db_statement_timeout 15000
2839.4.9 by Stuart Bishop
Pull connection information for the session database from launchpad.conf
81
        <launchpad_session>
82
            dbuser session
83
            dbhost emperor.ubuntu.com
84
            dbname session_prod
85
        </launchpad_session>
2839.3.14 by James Henstridge
Add <launchpad_errorreports> sections to production, staging and dogfood
86
	<launchpad_errorreports>
87
            errordir /srv/launchpad.net/production-logs
88
            oops_prefix A
89
            copy_to_zlog false
90
        </launchpad_errorreports>
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
91
    </launchpad>
92
93
    <librarian>
94
        # Librarian configuration information for both client and server
95
        dbuser librarian
1681.1.42 by Stuart Bishop
Update gangotri production configs
96
        upload_host macaroni.ubuntu.com
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
97
        upload_port 9090
1681.1.42 by Stuart Bishop
Update gangotri production configs
98
        download_host macaroni.ubuntu.com
99
        download_port 8000
1681.1.108 by Stuart Bishop
Production librarian can now use launchpad.net url
100
        download_url http://librarian.launchpad.net/
1681.1.111 by Stuart Bishop
Production and staging config updates for buildd_download_url
101
        buildd_download_url http://librarian.launchpad.net/
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
102
        <librarian_server>
103
            # Configuration used if we are running a librarian server.
104
            root /var/tmp/fatsam
105
        </librarian_server>
106
    </librarian>
107
108
    <trebuchet>
1716.1.112 by Christian Reis
Merged and conflict-solved from RF
109
        dbuser trebuchet
110
        port 4280
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
111
        <trebuchet_server>
112
            # Configuration used if we are running a trebuchet server.
113
            logfile /home/launchpad/dists/trebuchet.log
114
            root /home/launchpad/dists/trebuchet
115
            # If true, a Trebuchet server will be launched by the startup
116
            # script
117
            launch yes
118
            # Should Trebuchet twistd be run with --spew for debugging
119
            spew no
120
        </trebuchet_server>
121
    </trebuchet>
122
1681.1.120 by Stuart Bishop
Add needed <malone> section to production configs
123
    <malone>
124
        # The From address for Malone email interface errors
125
        bugmail_error_from_address noreply@bugs.launchpad.net
126
    </malone>
127
1681.1.134 by Stuart Bishop
Make poattach and poimport connect as the correct database users
128
    <rosetta>
129
        <poimport>
130
            dbuser poimport
131
        </poimport>
132
        <poattach>
133
            dbuser poattach
134
        </poattach>
135
    </rosetta>
136
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
137
    <zopeless>
138
        # Configuration specific for code that is running in the Zopeless
139
        # environment. Hopefully this section will disappear when the
140
        # Zope and Zopeless environments grow closer.
141
        send_email true
142
        smtp_host localhost
143
        smtp_port 25
144
    </zopeless>
145
    <gpghandler>
146
        host keyserver.ubuntu.com
147
        port 11371
148
    </gpghandler>
149
    <zeca>
150
        # where the pre-installed key-files will be copied to (every
151
        # initialization, see lib/zeca/ftest/harness.py)
152
        root /var/tmp/zeca
153
    </zeca>
2613 by Canonical.com Patch Queue Manager
Shipit exports and a lot more fixes. r=SteveA,stub
154
    <shipitexporter>
155
        dbuser shipit
156
    </shipitexporter>
2770.1.4 by Guilherme Salgado
Change all bug reports on people's page to use the google-style lists and have search/sort widgets. Also adds a new targetnamecache column in the BugTask table to allow sorting/searching on that value. Plus *a lot* other cleanup.
157
    <targetnamecacheupdater>
158
        # Configuration used to run the bugtask targetnamecache updater.
159
        dbuser targetnamecacheupdater
160
    </targetnamecacheupdater>
1681.1.85 by Stuart Bishop
Add kamacacheupdater section to production1 instance's launchpad.conf
161
    <karmacacheupdater>
162
        dbuser karma
163
    </karmacacheupdater>
1681.1.84 by Stuart Bishop
Add statistician sections to production configs
164
    <statistician>
165
        dbuser statistician
166
    </statistician>
1681.1.137 by Stuart Bishop
Make update-cve connect as a dedicated database user
167
    <cveupdater>
168
        dbuser cve
169
    </cveupdater>
2615 by Canonical.com Patch Queue Manager
[trivial] Add new required sections to staging and production config files
170
    <buildsequencer>
171
        mailproblemsto launchpad-error-reports@lists.canonical.com
172
        launch no
173
        logfile -
174
        <buildsequencer_job slave_scanner>
175
            command cronscripts/buildd-slave-scanner.py
176
            mindelay 5
177
        </buildsequencer_job>
178
        <buildsequencer_job queue_builder>
179
            command cronscripts/buildd-queue-builder.py
180
            mindelay 10
181
        </buildsequencer_job>
182
    </buildsequencer>
2748 by Canonical.com Patch Queue Manager
[trivial] production and staging config updates and topPeople performance regression fix
183
    <tickettracker>
184
        dbuser tickettracker
185
    </tickettracker>
2841.1.2 by Gustavo Niemeyer
Fixing details according to SteveA's review:
186
    <branchupdater>
187
        dbuser importd
188
        prefixurl http://supermirror/branches/
189
    </branchupdater>
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
190
</canonical>
191
192
# This is the config used by the test runner.
193
<canonical testrunner>
194
    dbname launchpad_ftest
195
    show_tracebacks true
196
    # chunkydiff may be turned off temporarily to help diagnose test
197
    # failures, but please don't commit this setting to rocketfuel.
198
    chunkydiff on
199
200
    bounce_address bounces@canonical.com
201
202
    <launchpad>
203
        dbuser launchpad
204
        root_url http://localhost:8086/
205
        errors_address launchpad-error-reports@lists.canonical.com
1681.1.74 by Stuart Bishop
Update production email and staging configs for launchpad.net domain
206
        bugs_domain bugs.launchpad.launchpad.net
2839.3.14 by James Henstridge
Add <launchpad_errorreports> sections to production, staging and dogfood
207
	<launchpad_errorreports>
208
            errordir /var/tmp/lperr.test
209
            oops_prefix T
210
            copy_to_zlog false
211
        </launchpad_errorreports>
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
212
    </launchpad>
213
    <librarian>
214
        dbuser librarian
215
        upload_host localhost
216
        upload_port 59090
217
        download_host localhost
218
        download_port 58000
1716.1.112 by Christian Reis
Merged and conflict-solved from RF
219
        download_url http://localhost:58000/
1681.1.111 by Stuart Bishop
Production and staging config updates for buildd_download_url
220
        buildd_download_url http://localhost:58000/
2042 by Canonical.com Patch Queue Manager
[trivial] Multi-backend production configs
221
        <librarian_server>
222
            launch no
223
            root /var/tmp/fatsam.test
224
        </librarian_server>
225
    </librarian>
226
    <zopeless>
227
        send_email false
228
    </zopeless>
229
</canonical>