Skip to content

Commit

Permalink
updated scylla version and removed simplestrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
guy9 committed Aug 9, 2023
1 parent 2f90351 commit 76d5033
Show file tree
Hide file tree
Showing 32 changed files with 51 additions and 52 deletions.
6 changes: 3 additions & 3 deletions CDC_Kafka_Lab/docker-compose-scylladb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ version: "3"
services:
scylla-node1:
container_name: scylla-node1
image: scylladb/scylla:5.0.0
image: scylladb/scylla:5.2.0
ports:
- 9042:9042
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0

scylla-node2:
container_name: scylla-node2
image: scylladb/scylla:5.0.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0

scylla-node3:
container_name: scylla-node3
image: scylladb/scylla:5.0.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
2 changes: 1 addition & 1 deletion Rust_CDRS/ps-logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Instructions for setting up a one node Scylla cluster in Docker and running an e
### Starting a Scylla Cluster
To get Scylla up and running start a local scylla instance on port 9042:
```bash
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:4.4.0 --smp 1 --memory=750M --overprovisioned 1
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:5.2.0 --smp 1 --memory=750M --overprovisioned 1
```

### Running the RUST Application
Expand Down
2 changes: 1 addition & 1 deletion Rust_CDRS/ps-logger/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub type CurrentSession = Session<SingleNode<TcpConnectionPool<NoneAuthenticator
static CREATE_KEYSPACE_QUERY: &'static str = r#"
CREATE KEYSPACE IF NOT EXISTS fast_logger
WITH REPLICATION = {
'class': 'SimpleStrategy',
'class': 'NetworkTopologyStrategy',
'replication_factor': 1
};
"#;
Expand Down
2 changes: 1 addition & 1 deletion Rust_Scylla_Driver/chat/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ An example application that demonstrates advanced topics such as prepared statem
To get Scylla up and running start a local scylla instance on port 9042:

```bash
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:4.5.0 --smp 1 --memory=750M --overprovisioned 1
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:5.2.0 --smp 1 --memory=750M --overprovisioned 1
```

### Running the Rust Application
Expand Down
2 changes: 1 addition & 1 deletion Rust_Scylla_Driver/chat/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tokio::io::{stdin, AsyncBufReadExt, BufReader};
static CREATE_KEYSPACE_QUERY: &str = r#"
CREATE KEYSPACE IF NOT EXISTS log
WITH REPLICATION = {
'class': 'SimpleStrategy',
'class': 'NetworkTopologyStrategy',
'replication_factor': 1
};
"#;
Expand Down
2 changes: 1 addition & 1 deletion Rust_Scylla_Driver/ps-logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Instructions for setting up a one node Scylla cluster in Docker and running an e
To get Scylla up and running start a local scylla instance on port 9042:

```bash
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:4.5.0 --smp 1 --memory=750M --overprovisioned 1
docker run -p 9042:9042/tcp --name some-scylla --hostname some-scylla -d scylladb/scylla:5.2.0 --smp 1 --memory=750M --overprovisioned 1
```

### Running the RUST Application
Expand Down
2 changes: 1 addition & 1 deletion Rust_Scylla_Driver/ps-logger/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{Duration, Result, TemperatureMeasurement};
static CREATE_KEYSPACE_QUERY: &str = r#"
CREATE KEYSPACE IF NOT EXISTS fast_logger
WITH REPLICATION = {
'class': 'SimpleStrategy',
'class': 'NetworkTopologyStrategy',
'replication_factor': 1
};
"#;
Expand Down
2 changes: 1 addition & 1 deletion alternator/getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Instructions for setting up a one node Scylla cluster and performing some basic
### Starting a Scylla Cluster
To get Scylla up and running with Alternator enabled, start a local scylla instance:
```bash
docker run --name some-scylla --hostname some-scylla -p 8000:8000 -d scylladb/scylla:4.5.0 --smp 1 --memory=750M --overprovisioned 1 --alternator-port=8000
docker run --name some-scylla --hostname some-scylla -p 8000:8000 -d scylladb/scylla:5.2.0 --smp 1 --memory=750M --overprovisioned 1 --alternator-port=8000
```

### Installing the Boto 3 Python library
Expand Down
2 changes: 1 addition & 1 deletion alternator/tictactoe_example_app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Example:

You can easily get an Alternator instance started by running the following:

docker run --name scylladb-alternator scylladb/scylla:latest --smp 1 --memory 512M --alternator-port 8000 --alternator-write-isolation always
docker run --name scylladb-alternator scylladb/scylla:5.2.0 --smp 1 --memory 512M --alternator-port 8000 --alternator-write-isolation always
sleep 1m
yourAlternatorIP="$(docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' scylladb-alternator)"
# then you can run the application.py passing variable $yourAlternatorIP
2 changes: 1 addition & 1 deletion dual_writes/dual_writes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def log(message):

logging.basicConfig(filename=LOG_FILE,level=logging.DEBUG,format="%(asctime)s %(message)s",datefmt="%b %d %Y %H:%M:%S")

create_ks = "create keyspace if not exists dual_writes with replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};"
create_ks = "create keyspace if not exists dual_writes with replication = {'class' : 'NetworkTopologyStrategy', 'replication_factor' : 3};"
create_t1 = "create table if not exists dual_writes.t1 (c1 int, c2 varchar, primary key (c1) );"
create_t2 = "create table if not exists dual_writes.t2 (c1 int, c2 varchar, primary key (c1) );"

Expand Down
2 changes: 1 addition & 1 deletion flink_streaming_into_scylla/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ What to Expect
The program creates the following schema.

```
CREATE KEYSPACE flink_example WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
CREATE KEYSPACE flink_example WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '1'} AND durable_writes = true;
CREATE TABLE flink_example.movies (
title text PRIMARY KEY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected Cluster buildCluster(Cluster.Builder builder) {
Cluster cluster = null;
Session session = null;

final String CREATE_KEYSPACE = "CREATE KEYSPACE flink_example WITH replication= {'class':'SimpleStrategy', 'replication_factor':1};";
final String CREATE_KEYSPACE = "CREATE KEYSPACE flink_example WITH replication= {'class':'NetworkTopologyStrategy', 'replication_factor':1};";
final String CREATE_TABLE = "CREATE TABLE flink_example.movies (title text PRIMARY KEY, genres list<text>);";

try{
Expand Down
2 changes: 1 addition & 1 deletion iot-temperature-example/billy.cql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE KEYSPACE billy WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true;
CREATE KEYSPACE billy WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor': '1'} AND durable_writes = true;

CREATE TABLE billy.readings (
sensor_id int,
Expand Down
12 changes: 6 additions & 6 deletions kubernetes-operator-demo/cassandra-stress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.0.0
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -53,7 +53,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.0.0
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -94,7 +94,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.0.0
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -135,7 +135,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.0.0
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -176,7 +176,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.0.0
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down Expand Up @@ -217,7 +217,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.0.0
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down
4 changes: 2 additions & 2 deletions kubernetes-operator-demo/tests.cql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE KEYSPACE thespace WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 2};
CREATE KEYSPACE thespace WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor' : 2};

CREATE TABLE planets (
name text PRIMARY KEY,
size int
);
);
2 changes: 1 addition & 1 deletion kubernetes-scylla/scylla-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: scylla
image: scylladb/scylla:2.0.0
image: scylladb/scylla:5.2.0
imagePullPolicy: IfNotPresent
args: ["--seeds", "scylla-0.scylla.default.svc.cluster.local"]
ports:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes-university-live/cassandra-stress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
spec:
containers:
- name: cassandra-stress
image: scylladb/scylla:4.4.2
image: scylladb/scylla:5.2.0
command:
- "/bin/bash"
- "-c"
Expand Down
2 changes: 1 addition & 1 deletion mms/docker-compose-day3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

scylla-node7:
container_name: scylla-node7
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand Down
6 changes: 3 additions & 3 deletions mms/docker-compose-dc2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

scylla-node4:
container_name: scylla-node4
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node4 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand All @@ -15,7 +15,7 @@ services:

scylla-node5:
container_name: scylla-node5
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node4 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand All @@ -26,7 +26,7 @@ services:

scylla-node6:
container_name: scylla-node6
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node4 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand Down
6 changes: 3 additions & 3 deletions mms/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

scylla-node1:
container_name: scylla-node1
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand All @@ -16,7 +16,7 @@ services:

scylla-node2:
container_name: scylla-node2
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand All @@ -27,7 +27,7 @@ services:

scylla-node3:
container_name: scylla-node3
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
volumes:
Expand Down
6 changes: 3 additions & 3 deletions mms/janusgraph/docker-compose-cql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ services:

scylla-node1:
container_name: scylla-node1
image: scylladb/scylla:4.5.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
networks:
web:

scylla-node2:
container_name: scylla-node2
image: scylladb/scylla:4.5.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
networks:
web:

scylla-node3:
container_name: scylla-node3
image: scylladb/scylla:4.5.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
networks:
Expand Down
2 changes: 1 addition & 1 deletion presto/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:

scylladb:
restart: always
image: scylladb/scylla:5.1.7
image: scylladb/scylla:5.2.0
ports:
- 9042:9042
volumes:
Expand Down
2 changes: 1 addition & 1 deletion scylla-and-spark/dataframes/stocks.cql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CREATE KEYSPACE stocks
WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};
WITH REPLICATION = {'class': 'NetworkTopologyStrategy', 'replication_factor': 1};

CREATE TABLE stocks.stocks
(symbol text,
Expand Down
2 changes: 1 addition & 1 deletion scylla-and-spark/streaming-into-scylla/create-tables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e
set -x

docker-compose exec scylla cqlsh -e "DROP KEYSPACE IF EXISTS quotes;"
docker-compose exec scylla cqlsh -e "CREATE KEYSPACE quotes WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};"
docker-compose exec scylla cqlsh -e "CREATE KEYSPACE quotes WITH REPLICATION = {'class': 'NetworkTopologyStrategy', 'replication_factor': 1};"
docker-compose exec scylla cqlsh -e "CREATE TABLE quotes.quotes (symbol TEXT, timestamp TIMESTAMP, day TIMESTAMP, latest_price DOUBLE, previous_close DOUBLE, latest_volume BIGINT, PRIMARY KEY ((symbol), timestamp));"
docker-compose exec scylla cqlsh -e "CREATE MATERIALIZED VIEW quotes.quotes_by_day AS SELECT * FROM quotes.quotes WHERE symbol IS NOT NULL AND timestamp IS NOT NULL PRIMARY KEY ((day), symbol, timestamp)"
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


## Define KS + Table
create_ks = "CREATE KEYSPACE IF NOT EXISTS catalog WITH replication = {'class' : 'SimpleStrategy', 'replication_factor' : 3};"
create_ks = "CREATE KEYSPACE IF NOT EXISTS catalog WITH replication = {'class' : 'NetworkTopologyStrategy', 'replication_factor' : 3};"
create_t1 = "CREATE TABLE IF NOT EXISTS catalog.apparel (sku text, brand text, group text, sub_group text, color text, size text, gender text, PRIMARY KEY ((sku),color,size));"


Expand Down
2 changes: 1 addition & 1 deletion spark-scylla-migrator-demo/prepare_target.cql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1};
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'replication_factor' : 1};

use mykeyspace;

Expand Down
2 changes: 1 addition & 1 deletion spark-scylla-migrator-demo/sample.cql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1};
CREATE KEYSPACE mykeyspace WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'replication_factor' : 1};

use mykeyspace;

Expand Down
2 changes: 1 addition & 1 deletion spark3-scylla4-demo/samplespark3.cql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CREATE KEYSPACE myOwnKeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1};
CREATE KEYSPACE myOwnKeyspace WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'replication_factor' : 1};

use myOwnKeyspace;

Expand Down
5 changes: 2 additions & 3 deletions spring/springdemo-custom/docker-compose-spring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ version: "3"
services:
scylla-node1:
container_name: scylla-node1
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
ports:
- 9042:9042
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0

scylla-node2:
container_name: scylla-node2
image: scylladb/scylla:5.1.0
image: scylladb/scylla:5.2.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0

scylla-node3:
container_name: scylla-node3
image: scylladb/scylla:5.1.0
restart: always
command: --seeds=scylla-node1,scylla-node2 --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0

6 changes: 3 additions & 3 deletions spring/springdemo-custom/start-scylla-container.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
set -x

docker pull scylladb/scylla:latest
docker pull scylladb/scylla:5.2.0

docker rm scylla-spring

#EXPOSE 10000 9042 9160 9180 7000 7001 22
#--hostname some-scylla
docker run --name scylla-spring -p 10000:10000 -p 24:22 -p 7000:7000 -p 7001:7001 -p 9180:9180 -p 9042:9042 -p 9160:9160 -d scylladb/scylla:latest
docker run --name scylla-spring -p 10000:10000 -p 24:22 -p 7000:7000 -p 7001:7001 -p 9180:9180 -p 9042:9042 -p 9160:9160 -d scylladb/scylla:5.2.0

docker start scylla-spring
docker start scylla-spring
Loading

0 comments on commit 76d5033

Please sign in to comment.