Skip to content
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

CI: cassandra workflow: bigger prepared cache #1188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
39 changes: 27 additions & 12 deletions test/cluster/cassandra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,29 @@ services:
cassandra1:
image: cassandra
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
test: [ "CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
networks:
public:
ipv4_address: 172.42.0.2
environment:
- CASSANDRA_BROADCAST_ADDRESS=172.42.0.2
- HEAP_NEWSIZE=512M
- MAX_HEAP_SIZE=2048M
# Only needed to set the custom prepared cache size in /etc/cassandra/cassandra.yaml.
entrypoint:
- /bin/bash
- -c
- "sed -i 's/^prepared_statements_cache_size:.*/prepared_statements_cache_size: 100MiB/' /etc/cassandra/cassandra.yaml && docker-entrypoint.sh"
cassandra2:
image: cassandra
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
test: [ "CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
networks:
public:
ipv4_address: 172.42.0.3
Expand All @@ -38,16 +43,21 @@ services:
- CASSANDRA_SEEDS=172.42.0.2
- HEAP_NEWSIZE=512M
- MAX_HEAP_SIZE=2048M
# Only needed to set the custom prepared cache size in /etc/cassandra/cassandra.yaml.
entrypoint:
- /bin/bash
- -c
- "sed -i 's/^prepared_statements_cache_size:.*/prepared_statements_cache_size: 100MiB/' /etc/cassandra/cassandra.yaml && docker-entrypoint.sh"
depends_on:
cassandra1:
condition: service_healthy
cassandra3:
image: cassandra
healthcheck:
test: ["CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
test: [ "CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 5s
timeout: 5s
retries: 60
networks:
public:
ipv4_address: 172.42.0.4
Expand All @@ -56,6 +66,11 @@ services:
- CASSANDRA_SEEDS=172.42.0.2,172.42.0.3
- HEAP_NEWSIZE=512M
- MAX_HEAP_SIZE=2048M
# Only needed to set the custom prepared cache size in /etc/cassandra/cassandra.yaml.
entrypoint:
- /bin/bash
- -c
- "sed -i 's/^prepared_statements_cache_size:.*/prepared_statements_cache_size: 100MiB/' /etc/cassandra/cassandra.yaml && docker-entrypoint.sh"
depends_on:
cassandra2:
condition: service_healthy