forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-common.yml
50 lines (45 loc) · 2.19 KB
/
docker-compose-common.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
version: "3.4"
services:
server:
image: ${DEEPHAVEN_SERVER_IMAGE}
# For jprofiler, replace the line before this comment block with the line below:
#build:
# context: ./jprofiler-server
# args:
# - DEEPHAVEN_SERVER_IMAGE=${DEEPHAVEN_SERVER_IMAGE}
environment:
# https://bugs.openjdk.java.net/browse/JDK-8230305
# cgroups v2 resource reservations only work w/ java 15+ ATM, so it's best for our java processes to be explicit
# with max memory.
#
# To turn on debug logging, add: -Dlogback.configurationFile=logback-debug.xml
- START_OPTS=-Xmx4g -Ddeephaven.console.type=${DEEPHAVEN_CONSOLE_TYPE} -Ddeephaven.application.dir=${DEEPHAVEN_APPLICATION_DIR}
#
# For remote debugging switch the line above for the one below (and also change the ports below)
# - START_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -Xmx4g -Ddeephaven.console.type=${DEEPHAVEN_CONSOLE_TYPE} -Ddeephaven.application.dir=${DEEPHAVEN_APPLICATION_DIR}
#
# For jprofiler sessions (if you tweaked the jprofiler version in jprofiler-server/Dockerfile you need to tweak path)
# - START_OPTS=-agentpath:/opt/jprofiler13.0/bin/linux-x64/libjprofilerti.so=port=8849,nowait -Xmx4g -Ddeephaven.console.type=${DEEPHAVEN_CONSOLE_TYPE} -Ddeephaven.application.dir=${DEEPHAVEN_APPLICATION_DIR}
ports:
- '10000:10000'
# For remote debugging (change if using different port)
# - '5005:5005'
# For jprofiler (change if using different port)
# - '8849:8849'
# Note: using old-style volume mounts, so that the directories get created if they don't exist
# See https://docs.docker.com/storage/bind-mounts/#differences-between--v-and---mount-behavior
volumes:
- ./data:/data
deploy:
resources:
limits:
cpus: '4.0'
# Allows the querying of this process jinfo/jmap
# docker-compose exec server jmap -heap 1
# docker-compose exec server jinfo 1
#
# Add NET_ADMIN to allow throttling network speeds
# $ docker exec -it core_server_1 apt-get install iproute2
# $ docker exec core_server_1 tc qdisc add dev eth0 root netem delay 10ms
cap_add:
- SYS_PTRACE