This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
worker.py.schema
150 lines (138 loc) · 3.75 KB
/
worker.py.schema
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
info:
title: LGTM Enterprise Worker Group
author: GitHub
description: Creates an LGTM Enterprise worker group.
imports:
- path: image.txt
- path: worker.py
required:
- controller-deployment-name
- worker-credentials
properties:
controller-deployment-name:
type: string
description: The deployment name for the LGTM Enterprise controller deployment that this worker group should connect to.
worker-credentials:
type: string
default: ""
description: This should be copied from the administrator interface of the LGTM Enterprise controller.
zone:
type: string
default: us-central1-a
description: The Google Cloud zone to create resources in.
virtual-machine-size:
type: string
default: n2-standard-2
enum:
- e2-standard-2
- e2-standard-4
- e2-standard-8
- e2-standard-16
- e2-highmem-2
- e2-highmem-4
- e2-highmem-8
- e2-highmem-16
- e2-highcpu-4
- e2-highcpu-8
- e2-highcpu-16
- n2-standard-2
- n2-standard-4
- n2-standard-8
- n2-standard-16
- n2-standard-32
- n2-standard-48
- n2-standard-64
- n2-standard-80
- n2-highmem-2
- n2-highmem-4
- n2-highmem-8
- n2-highmem-16
- n2-highmem-32
- n2-highmem-48
- n2-highmem-64
- n2-highmem-80
- n2-highcpu-4
- n2-highcpu-8
- n2-highcpu-16
- n2-highcpu-32
- n2-highcpu-48
- n2-highcpu-64
- n2-highcpu-80
- n2d-standard-2
- n2d-standard-4
- n2d-standard-8
- n2d-standard-16
- n2d-standard-32
- n2d-standard-64
- n2d-standard-80
- n2d-standard-96
- n2d-standard-128
- n2d-standard-224
- n2d-highmem-2
- n2d-highmem-4
- n2d-highmem-8
- n2d-highmem-16
- n2d-highmem-32
- n2d-highmem-48
- n2d-highmem-64
- n2d-highmem-80
- n2d-highmem-96
- n2d-highcpu-4
- n2d-highcpu-8
- n2d-highcpu-16
- n2d-highcpu-32
- n2d-highcpu-48
- n2d-highcpu-64
- n2d-highcpu-80
- n2d-highcpu-96
- n2d-highcpu-128
- n2d-highcpu-224
- n1-standard-2
- n1-standard-4
- n1-standard-8
- n1-standard-16
- n1-standard-32
- n1-standard-64
- n1-standard-96
- n1-highmem-2
- n1-highmem-4
- n1-highmem-8
- n1-highmem-16
- n1-highmem-32
- n1-highmem-64
- n1-highmem-96
- n1-highcpu-8
- n1-highcpu-16
- n1-highcpu-32
- n1-highcpu-64
- n1-highcpu-96
- c2-standard-4
- c2-standard-8
- c2-standard-16
- c2-standard-30
- c2-standard-60
description: The type of virtual machine to use. For information about the recommended size, see the [LGTM Enterprise installation guide](https://help.semmle.com/lgtm-enterprise/ops/lgtm-enterprise-LATEST-installation-guide.pdf).
copies:
type: integer
default: 1
description: The number of copies of this worker to create.
general-workers:
type: integer
default: 1
description: The number of general workers to run on each machine in the group.
on-demand-workers:
type: integer
default: 0
description: The number of on-demand workers to run on each machine in the group.
query-workers:
type: integer
default: 1
description: The number of query workers to run on each machine in the group.
worker-environment:
type: object
default: {}
description: A dictionary of environment variables to use for the workers.
manifest-password:
type: string
default: ""
description: A password used to encrypt the LGTM manifest. If you don't specify one a password will be generated and stored in `/data/lgtm-releases/.manifest-password`.