-
Notifications
You must be signed in to change notification settings - Fork 0
/
kashrut.yml
86 lines (86 loc) · 2.9 KB
/
kashrut.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
---
facts:
# name of the service
service: kinja-mantle
# url where we can ping the service
pingurl: /ajax/ping
# ports to listen on
ports:
http: 9020
jmx: 9091
# notification channels
notifications:
hipchat: service-room
email: [email protected]
deploy:
facts:
lb:
# nsc or elb
type: nsc
name: KinjaMantlePool
# size of the batch you want to roll out the serverice to prod
serial: 8
# immediately stop the deploy on any errors
any_errors_fatal: true
# name of the file you want to deploy
artifact: kinja-mantle-0.1.tgz
# timeout wait to stop the service
stop_timeout: 10
# if the stop_timeout reached shall we kill -9 the service
allow_kill9: true
# timeout wait to start the service
startup_timeout: 60
# seconds to sleep between two batches (this is the slow rampup time)
lb_sleep: 60
# warmup script location
warmup: scripts/deploy/warmup.sh
# hooks for custom pre/post deploy actions
hooks:
pre: scripts/deploy/assets-pre.yml
post: scripts/deploy/assets-post.yml
build:
exec: |
scripts/build/is_assetonly.sh
play2.2.1 -Dsbt.ivy.home=/tmp/ivy_kinja-mantle -Dsbt.log.noformat=true -DJENKINS_BUILD=true -Dformat.code=false clean "reboot full" test universal:package-zip-tarball
node_modules/.bin/grunt
scripts/build/package-assets.sh
production:
facts:
start: start {{ kashrut.facts.service }}
stop: start {{ kashrut.facts.service }}
hosts: KinjaMantlePool
pid: /var/run/{{ kashrut.facts.service }}.pid
jvm_option: |
-J-javaagent:/usr/share/newrelic/{{ kashrut.facts.service }}/newrelic.jar
-J-XX:ErrorFile=/var/tmp/hs_err_pid%p.log
-J-XX:+HeapDumpOnOutOfMemoryError
-J-XX:HeapDumpPath=/var/tmp
-J-Xms18094M
-J-Xmx18094M
-J-Xmn6830M
-J-XX:SurvivorRatio=2
-J-XX:PermSize=512m
-J-XX:MaxPermSize=512m
-J-XX:ReservedCodeCacheSize=128m
-J-XX:+UseConcMarkSweepGC
-J-XX:+CMSClassUnloadingEnabled
-J-XX:CMSInitiatingOccupancyFraction=70
-J-verbose:gc
-J-XX:+PrintGCDetails
-J-XX:+PrintGCDateStamps
-J-XX:+PrintTenuringDistribution
-J-Xloggc:/var/log/{{ kashrut.facts.service }}/gc-{{ kashrut.facts.service }}.`date \"+%Y-%m-%d_%H:%M:%S\"`.log
-J-Dcom.sun.management.jmxremote.port={{ kashrut.facts.port.jmx }}
-J-Dcom.sun.management.jmxremote.ssl=false
-J-Dcom.sun.management.jmxremote.authenticate=false
-J-agentpath:/usr/share/yourkit/libyjpagent.so=disablestacktelemetry,disableexceptiontelemetry,builtinprobes=none,delay=10000
-J-Dhttp.port={{ kashrut.facts.port.http }}
-J-Dlogger.resource=application-logger-live.xml
-J-Dconfig.resource=application-live.conf
monitoring:
- http: /api/ping
expected: /HTTP 200/
- http: /api/ping/db
expected: /connected/
- script: scripts/monitoring/testsomething.sh
expected: true