tangled
alpha
login
or
join now
hailey.at
/
vylet-go
1
fork
atom
this repo has no description
1
fork
atom
overview
issues
pulls
pipelines
rm memory limits for staging docker compose
hailey.at
3 months ago
72569063
cdd0db0d
-16
1 changed file
expand all
collapse all
unified
split
docker-compose-staging.yaml
-16
docker-compose-staging.yaml
···
98
98
CASSANDRA_RACK: 'rack1'
99
99
CASSANDRA_ENDPOINT_SNITCH: 'GossipingPropertyFileSnitch'
100
100
CASSANDRA_NUM_TOKENS: 256
101
101
-
# Reduce memory usage for local development
102
102
-
MAX_HEAP_SIZE: '512M'
103
103
-
HEAP_NEWSIZE: '128M'
104
104
-
# Override JVM opts to limit direct memory to fit in container
105
105
-
JVM_OPTS: '-Xms512M -Xmx512M -XX:MaxDirectMemorySize=256M'
106
101
volumes:
107
102
- cassandra-data:/var/lib/cassandra
108
108
-
# Limit container memory (increased to accommodate heap + direct memory + overhead)
109
109
-
mem_limit: 2g
110
110
-
memswap_limit: 2g
111
111
-
# Disable swap for better performance
112
112
-
mem_swappiness: 0
113
113
-
# Allow memory locking (reduces warnings)
114
114
-
ulimits:
115
115
-
memlock: -1
116
116
-
nofile:
117
117
-
soft: 65536
118
118
-
hard: 65536
119
103
healthcheck:
120
104
test: ["CMD-SHELL", "cqlsh -e 'describe cluster'"]
121
105
interval: 30s