Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Cassandra docker composes #206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions 24 benchmark/docker-composes/cassandra-single-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# CHANGES REQUIRED BEFORE RUNNING:
# - Change HEAP_NEWSIZE and MAX_HEAP_SIZE according to instruction

networks:
public:
name: cassandra_single_node_public
driver: bridge
ipam:
driver: default
config:
- subnet: 172.43.0.0/16

services:
cassandra:
image: cassandra:latest
networks:
public:
ipv4_address: 172.43.0.2
container_name: cassandra-single-node
environment:
- MAX_HEAP_SIZE=2048M # Recommended 1/4 of total RAM
- HEAP_NEWSIZE=512M # This is recommended to be 1/4 of MAX_HEAP_SIZE
- JVM_OPTS=-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.ring_delay_ms=5000

73 changes: 73 additions & 0 deletions 73 benchmark/docker-composes/cassandra-three-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# CHANGES REQUIRED BEFORE RUNNING:
# - Change HEAP_NEWSIZE and MAX_HEAP_SIZE according to instruction

# This docker compose is taken from scylladb/scylla-rust-driver repository
adespawn marked this conversation as resolved.
Show resolved Hide resolved
version: '2.4' # 2.4 is the last version that supports depends_on conditions for service health

networks:
public:
name: cassandra-three-node-network
driver: bridge
ipam:
driver: default
config:
- subnet: 172.44.0.0/16

services:
cassandra1:
image: cassandra
container_name: cassandra-node-1-of-3
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
networks:
public:
ipv4_address: 172.44.0.2
environment:
- CASSANDRA_BROADCAST_ADDRESS=172.44.0.2
# REMEMBER TO CHANGE THOSE VALUES FOR ALL INSTANCES
- MAX_HEAP_SIZE=2048M # Recommended 1/12 [1/(4*numberOfNodes)] of total RAM
- HEAP_NEWSIZE=512M # This is recommended to be 1/4 of MAX_HEAP_SIZE
- JVM_OPTS=-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.ring_delay_ms=5000
adespawn marked this conversation as resolved.
Show resolved Hide resolved
cassandra2:
image: cassandra
container_name: cassandra-node-2-of-3
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
networks:
public:
ipv4_address: 172.44.0.3
environment:
- CASSANDRA_BROADCAST_ADDRESS=172.44.0.3
- CASSANDRA_SEEDS=172.44.0.2
- MAX_HEAP_SIZE=2048M
- HEAP_NEWSIZE=512M
- JVM_OPTS=-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.ring_delay_ms=5000
depends_on:
cassandra1:
condition: service_healthy
cassandra3:
image: cassandra
container_name: cassandra-node-3-of-3
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
networks:
public:
ipv4_address: 172.44.0.4
environment:
- CASSANDRA_BROADCAST_ADDRESS=172.44.0.4
- CASSANDRA_SEEDS=172.44.0.2,172.44.0.3
- MAX_HEAP_SIZE=2048M
- HEAP_NEWSIZE=512M
- JVM_OPTS=-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.ring_delay_ms=5000
depends_on:
cassandra2:
condition: service_healthy
Morty Proxy This is a proxified and sanitized view of the page, visit original site.