forked from taskcluster/taskcluster-queue
-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.yml
218 lines (190 loc) · 8.2 KB
/
config.yml
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
defaults:
app:
publishMetaData: !env:bool PUBLISH_METADATA
exchangePrefix: v1/
# Number of seconds before the claim to a run expires
claimTimeout: 1200
# S3 buckets where artifacts are stored
publicArtifactBucket: !env PUBLIC_ARTIFACT_BUCKET
privateArtifactBucket: !env PRIVATE_ARTIFACT_BUCKET
# Azure blob container for artifacts
artifactContainer: artifacts
# Azure table name for tasks, artifact meta-data
taskTableName: Tasks
artifactTableName: Artifacts
taskGroupTableName: TaskGroups
taskGroupMemberTableName: TaskGroupMembers
taskGroupActiveSetTableName: TaskGroupActiveSets
taskRequirementTableName: TaskRequirement
taskDependencyTableName: TaskDependency
# Time delay before expiring artifacts, in readable format, see:
# taskcluster.fromNow, notice this should be negative!
artifactExpirationDelay: '- 30 minutes'
# Time delay before expiring tasks, in readable format, see:
# taskcluster.fromNow, notice this should be negative!
taskExpirationDelay: '- 30 minutes'
# Time extension of the expires property for task-group definitions.
# This is entities holding the schedulerId for a task-group, hence, we
# expire them later to avoid people creating tasks with a different
# schedulerId inside a task-group where all tasks are about to expire.
taskGroupExpiresExtension: 6220800 # 3 days as seconds
# Prefix for azure queues (at most 6 characters)
queuePrefix: queue
# Name of azure queue for tracking claim expiration
claimQueue: claim-queue
# Name of azure queue for tracking deadlines
deadlineQueue: deadline-queue
# Name of azure queue for tracking resolved tasks (dependency tracker)
resolvedQueue: resolved-queue
# Number of ms before deadline expiration message arrives, past deadline
deadlineDelay: 60000
# Configuration for deadline-reaper
deadline:
# Number of ms to sleep after polling from an empty queue
pollingDelay: 5000
# Number of event loops to run in parallel, each taking up to 32 message
# in parallel. Hence, 4 implies 4 * 32 = 128 messages in parallel
parallelism: 1
# Configuration for claim-reaper
claim:
# Number of ms to sleep after polling from an empty queue
pollingDelay: 5000
# Number of event loops to run in parallel, each taking up to 32 message
# in parallel. Hence, 4 implies 4 * 32 = 128 messages in parallel
parallelism: 1
# Configuration for dependency-resolver
dependencyResolver:
# Number of ms to sleep after polling from an empty queue
pollingDelay: 5000
# Number of event loops to run in parallel, each taking up to 32 message
# in parallel. Hence, 4 implies 4 * 32 = 128 messages in parallel
parallelism: 4
# Mapping from EC2 region to public artifact bucket proxy
# (Must not end with a slash!)
publicArtifactBucketProxies: !env:json PUBLIC_ARTIFACT_EC2_PROXIES
usePublicArtifactBucketProxy: true
# CDN for public artifact bucket
publicArtifactBucketCDN: !env PUBLIC_ARTIFACT_BUCKET_CDN
# Cloud mirror configuration
cloudMirrorHost: 'cloud-mirror.taskcluster.net'
taskcluster:
authBaseUrl: https://auth.taskcluster.net/v1
credentials:
clientId: !env TASKCLUSTER_CLIENT_ID
accessToken: !env TASKCLUSTER_ACCESS_TOKEN
server:
port: !env:number PORT
publicUrl: !env PUBLIC_URL
env: !env NODE_ENV
forceSSL: !env:flag FORCE_SSL
trustProxy: false
# Azure credentials (for blob and queue storage)
azure:
accountName: !env AZURE_ACCOUNT_NAME
accountKey: !env AZURE_ACCOUNT_KEY
# Azure account (for table storage which uses auth for access)
azureTableAccount: !env AZURE_TABLE_ACCOUNT_NAME
pulse:
username: !env PULSE_USERNAME
password: !env PULSE_PASSWORD
aws:
# Credentials with access to artifact buckets and
# references/schemas.taskcluster.net if you wish to publish meta-data
accessKeyId: !env AWS_ACCESS_KEY_ID
secretAccessKey: !env AWS_SECRET_ACCESS_KEY
region: us-west-2
apiVersion: 2014-01-01
monitor:
mock: true
# Configuration in production
production:
app:
publicArtifactBucket: 'taskcluster-public-artifacts'
privateArtifactBucket: 'taskcluster-private-artifacts'
artifactContainer: 'artifacts'
taskTableName: 'QueueTasks'
artifactTableName: 'QueueArtifacts'
taskGroupTableName: 'QueueTaskGroups'
taskGroupMemberTableName: 'QueueTaskGroupMembers'
taskGroupActiveSetTableName: 'QueueTaskGroupActiveSets'
taskRequirementTableName: 'QueueTaskRequirement'
taskDependencyTableName: 'QueueTaskDependency'
cloudMirrorRegions:
- us-east-1
- us-east-2
- us-west-1
- eu-central-1
useCloudMirror: !env:bool USE_PUBLIC_ARTIFACT_BUCKET_PROXY
taskcluster:
authBaseUrl: https://auth.taskcluster.net/v1
server:
publicUrl: https://queue.taskcluster.net
env: production
forceSSL: true
trustProxy: true
monitor:
mock: false
# Configuration of tests
test:
app:
publishMetaData: false
# For testing purposes we let claims expire very fast
claimTimeout: 1
publicArtifactBucket: 'test-bucket-for-any-garbage'
privateArtifactBucket: 'test-bucket-for-any-garbage2'
artifactContainer: 'artifacts'
queuePrefix: 'hacks3'
queuePrefix2: 'hacks4' # For testing deletion of queues
claimQueue: 'test-claim-queue'
deadlineQueue: 'test-deadline-queue'
deadlineDelay: 1000
# Positive, means we expire artifacts 4 days ahead of time, useful for
# testing. In production this should be "- x hours" or so...
artifactExpirationDelay: '4 days'
# Positive, means that expire tasks 4 days ahead of time, useful for
# testing. In production this should be "- x hours" or so...
taskExpirationDelay: '4 days'
taskGroupExpiresExtension: 0 # should always be positive in production
deadline:
pollingDelay: 250
parallelism: 1
claim:
pollingDelay: 250
parallelism: 1
dependencyResolver:
pollingDelay: 250
parallelism: 1
publicArtifactBucketProxies:
'us-east-1': 'proxy-for-us-east-1'
taskcluster:
credentials:
clientId: test-server
accessToken: none
server:
publicUrl: http://localhost:60401
port: 60401
env: development
azureTableAccount: inMemory
load-test:
app:
publishMetaData: false
publicArtifactBucket: 'test-bucket-for-any-garbage'
privateArtifactBucket: 'test-bucket-for-any-garbage2'
artifactContainer: 'artifacts'
queuePrefix: 'lta'
taskTableName: 'LoadTestTasks2'
artifactTableName: 'LoadTestArtifacts2'
taskGroupTableName: 'LoadTestTaskGroups2'
taskGroupMemberTableName: 'LoadTestTaskGroupMembers2'
taskGroupActiveSetTableName: 'LoadTestTaskSizeMembers2'
taskRequirementTableName: 'LoadTestTaskRequirement2'
taskDependencyTableName: 'LoadTestTaskDependency2'
claimQueue: 'load-test-claim-queue'
deadlineQueue: 'load-test-deadline-queue'
publicArtifactBucketProxies:
'us-east-1': 'proxy-for-us-east-1'
server:
publicUrl: https://tc-queue-load-test.herokuapp.com
env: development
forceSSL: true
trustProxy: true