Repository navigation
Expand file tree
/
Copy pathannotator.yaml
More file actions
53 lines (45 loc) · 1.69 KB
/
Copy pathannotator.yaml
File metadata and controls
53 lines (45 loc) · 1.69 KB
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
# NOTE: When performance tuning, consider whether to update this yaml file, or
# annotator-ss.yaml, or both.
runtime: custom
env: flex
service: annotator
# Resource and scaling options. For more background, see:
# https://cloud.google.com/appengine/docs/flexible/go/configuring-your-app-with-app-yaml
# TODO(dev): adjust CPU and memory based on actual requirements.
resources:
cpu: 44
# Instances support between [(cpu * 0.9) - 0.4, (cpu * 6.5) - 0.4]
# Actual memory available is exposed via GAE_MEMORY_MB environment variable.
# Service now loads ALL datasets, so it needs quite a lot of memory.
memory_gb: 280
# Annotation service uses disk for loading legacy Geolite datasets. It now loads many
# concurrently, so needs a lot of disk space.
disk_size_gb: 200
automatic_scaling:
# We expect negligible load, so this is unlikely to trigger.
min_num_instances: 2
max_num_instances: 3
cool_down_period_sec: 1800
cpu_utilization:
target_utilization: 0.60
# Note: add a public port for GCE auto discovery by prometheus.
# TODO(dev): are any values redundant or irrelevant?
network:
instance_tag: annotator
name: default
# Forward port 9090 on the GCE instance address to the same port in the
# container address. Only forward TCP traffic.
# Note: the default AppEngine container port 8080 cannot be forwarded.
forwarded_ports:
- 9090/tcp
env_variables:
# TODO add custom service-account, instead of using default credentials.
# These should be substituted in the travis deployment script.
RELEASE_TAG: ${TRAVIS_TAG}
COMMIT_HASH: ${TRAVIS_COMMIT}
liveness_check:
path: "/live"
initial_delay_sec: 300
readiness_check:
path: "/ready"
app_start_timeout_sec: 600