ok
This commit is contained in:
		
							
								
								
									
										2
									
								
								Base de données et gestion/Scylladb/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								Base de données et gestion/Scylladb/.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
standalone/data
 | 
			
		||||
cluster/data-*
 | 
			
		||||
							
								
								
									
										3
									
								
								Base de données et gestion/Scylladb/LICENSE
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								Base de données et gestion/Scylladb/LICENSE
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
Additional permission under GNU GPL version 3 section 7
 | 
			
		||||
 | 
			
		||||
If you modify this Program, or any covered work, by linking or combining it with [name of library] (or a modified version of that library), containing parts covered by the terms of [name of library's license], the licensors of this Program grant you additional permission to convey the resulting work. Corresponding Source for a non-source form of such a combination shall include the source code for the parts of [name of library] used as well as that of the covered work.
 | 
			
		||||
							
								
								
									
										115
									
								
								Base de données et gestion/Scylladb/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								Base de données et gestion/Scylladb/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,115 @@
 | 
			
		||||

 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# ScyllaDB
 | 
			
		||||
 | 
			
		||||
ScyllaDB is a NoSQL database management system that is compatible with Apache Cassandra. 
 | 
			
		||||
It is designed to scale linearly across multiple commodity servers, while maintaining low latency and high availability. 
 | 
			
		||||
ScyllaDB is written in C++ and uses the Seastar framework for concurrency and asynchronous I/O.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Prerequisites
 | 
			
		||||
- Docker
 | 
			
		||||
- Docker Compose
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Running the Stack
 | 
			
		||||
 | 
			
		||||
### Standalone
 | 
			
		||||
 | 
			
		||||
Inside the `standalone` directory, run `docker-compose up` to start the connector.
 | 
			
		||||
 | 
			
		||||
### Port Configurations
 | 
			
		||||
 | 
			
		||||
 - `9042` - ScyllaDB CQL port
 | 
			
		||||
 - `9160` - ScyllaDB Thrift port
 | 
			
		||||
 - `7004` - ScyllaDB Inter-node communication (RPC)
 | 
			
		||||
 - `7005` - ScyllaDB Inter-node communication (SSL)
 | 
			
		||||
 - `10000` - Scylla REST API
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
### Cluster
 | 
			
		||||
 | 
			
		||||
Inside the `cluster` directory, run `docker-compose up` to start the connector.
 | 
			
		||||
 | 
			
		||||
#### Port Configurations
 | 
			
		||||
 | 
			
		||||
Master
 | 
			
		||||
 | 
			
		||||
- `9042` - ScyllaDB CQL port
 | 
			
		||||
- `9160` - ScyllaDB Thrift port
 | 
			
		||||
- `7004` - ScyllaDB Inter-node communication (RPC)
 | 
			
		||||
- `7005` - ScyllaDB Inter-node communication (SSL)
 | 
			
		||||
- `10000` - Scylla REST API
 | 
			
		||||
 | 
			
		||||
Node 1
 | 
			
		||||
 | 
			
		||||
- `9043` - ScyllaDB CQL port
 | 
			
		||||
- `9161` - ScyllaDB Thrift port
 | 
			
		||||
- `7006` - ScyllaDB Inter-node communication (RPC)
 | 
			
		||||
- `7007` - ScyllaDB Inter-node communication (SSL)
 | 
			
		||||
- `10001` - Scylla REST API
 | 
			
		||||
 | 
			
		||||
**Cluster Status:**
 | 
			
		||||
 | 
			
		||||
run `docker-compose exec scylladb-master nodetool status` to view the cluster status.
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
Datacenter: datacenter1
 | 
			
		||||
=======================
 | 
			
		||||
Status=Up/Down
 | 
			
		||||
|/ State=Normal/Leaving/Joining/Moving
 | 
			
		||||
--  Address     Load       Tokens       Owns    Host ID                               Rack
 | 
			
		||||
UN  172.27.0.3  2.07 MB    256          ?       a899f085-0437-444a-80fe-158958a8796b  rack1
 | 
			
		||||
UN  172.27.0.2  2.02 MB    256          ?       2910746d-e5f2-4a28-a63d-a089cdcb0438  rack1
 | 
			
		||||
 | 
			
		||||
Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Cluster Topology:**
 | 
			
		||||
 | 
			
		||||
run `docker-compose exec scylladb-master nodetool describecluster` to view the cluster topology.
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
Cluster Information:
 | 
			
		||||
	Name: Test Cluster
 | 
			
		||||
	Snitch: org.apache.cassandra.locator.SimpleSnitch
 | 
			
		||||
	DynamicEndPointSnitch: disabled
 | 
			
		||||
	Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
 | 
			
		||||
	Schema versions:
 | 
			
		||||
		f99fb55d-f298-30d6-bd75-31f9855362c2: [172.29.0.2, 172.29.0.3]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
**Cluster Info:**
 | 
			
		||||
 | 
			
		||||
run `docker-compose exec scylladb-master nodetool info` to view the cluster info.
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
ID                     : eb720697-ac71-413c-a843-748527cff616
 | 
			
		||||
Gossip active          : true
 | 
			
		||||
Thrift active          : false
 | 
			
		||||
Native Transport active: true
 | 
			
		||||
Load                   : 524 KB
 | 
			
		||||
Generation No          : 1679584265
 | 
			
		||||
Uptime (seconds)       : 139
 | 
			
		||||
Heap Memory (MB)       : 14.16 / 247.50
 | 
			
		||||
Off Heap Memory (MB)   : 4.65
 | 
			
		||||
Data Center            : datacenter1
 | 
			
		||||
Rack                   : rack1
 | 
			
		||||
Exceptions             : 0
 | 
			
		||||
Key Cache              : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, 0.000 recent hit rate, 0 save period in seconds
 | 
			
		||||
Row Cache              : entries 13, size 13 bytes, capacity 154.2 KiB, 271 hits, 271 requests, 1.000 recent hit rate, 0 save period in seconds
 | 
			
		||||
Counter Cache          : entries 0, size 0 bytes, capacity 0 bytes, 0 hits, 0 requests, 0.000 recent hit rate, 0 save period in seconds
 | 
			
		||||
Percent Repaired       : 0.0%
 | 
			
		||||
Token                  : (invoke with -T/--tokens to see all 256 tokens)
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## CQLSH
 | 
			
		||||
 | 
			
		||||
CQLSH is a command line tool for interacting with ScyllaDB.
 | 
			
		||||
 | 
			
		||||
### Usage
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
docker-compose exec <<scylladb-master | scylladb>> cqlsh
 | 
			
		||||
```
 | 
			
		||||
@@ -0,0 +1,48 @@
 | 
			
		||||
version: '3.9'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  scylladb-master:
 | 
			
		||||
    image: scylladb/scylla:latest
 | 
			
		||||
    container_name: scylladb-master
 | 
			
		||||
    ports:
 | 
			
		||||
      - '9042:9042'
 | 
			
		||||
      - '9160:9160'
 | 
			
		||||
      - '7004:7000'
 | 
			
		||||
      - '7005:7001'
 | 
			
		||||
      - '10000:10000'
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data-master:/var/lib/scylla
 | 
			
		||||
    environment:
 | 
			
		||||
      - SCYLLA_ARGS=--developer-mode 1
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: cqlsh -e 'SELECT now() FROM system.local' || exit -1
 | 
			
		||||
      start_period: 15s
 | 
			
		||||
      interval: 5s
 | 
			
		||||
      timeout: 10s
 | 
			
		||||
      retries: 10
 | 
			
		||||
 | 
			
		||||
  scylladb-node1:
 | 
			
		||||
    image: scylladb/scylla:latest
 | 
			
		||||
    container_name: scylladb-node1
 | 
			
		||||
    depends_on:
 | 
			
		||||
      scylladb-master:
 | 
			
		||||
        condition: service_healthy
 | 
			
		||||
    ports:
 | 
			
		||||
      - '9043:9042'
 | 
			
		||||
      - '9161:9160'
 | 
			
		||||
      - '7006:7000'
 | 
			
		||||
      - '7007:7001'
 | 
			
		||||
      - '10001:10000'
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data-node1:/var/lib/scylla
 | 
			
		||||
    environment:
 | 
			
		||||
      - SCYLLA_ARGS=--developer-mode 1
 | 
			
		||||
    command: --seeds=scylladb-master
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: cqlsh -e 'SELECT now() FROM system.local' || exit -1
 | 
			
		||||
      start_period: 15s
 | 
			
		||||
      interval: 5s
 | 
			
		||||
      timeout: 10s
 | 
			
		||||
      retries: 10
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								Base de données et gestion/Scylladb/img/logo-ScyllaDB.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Base de données et gestion/Scylladb/img/logo-ScyllaDB.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Base de données et gestion/Scylladb/img/logo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Base de données et gestion/Scylladb/img/logo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 10 KiB  | 
@@ -0,0 +1,22 @@
 | 
			
		||||
version: '3.9'
 | 
			
		||||
 | 
			
		||||
services:
 | 
			
		||||
  scylladb:
 | 
			
		||||
    image: scylladb/scylla:latest
 | 
			
		||||
    container_name: scylladb
 | 
			
		||||
    ports:
 | 
			
		||||
      - '9042:9042'
 | 
			
		||||
      - '9160:9160'
 | 
			
		||||
      - '7004:7000'
 | 
			
		||||
      - '7005:7001'
 | 
			
		||||
      - '10000:10000'
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data:/var/lib/scylla
 | 
			
		||||
    environment:
 | 
			
		||||
      - SCYLLA_ARGS=--developer-mode 1
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: cqlsh -e 'SELECT now() FROM system.local' || exit -1
 | 
			
		||||
      start_period: 15s
 | 
			
		||||
      interval: 5s
 | 
			
		||||
      timeout: 10s
 | 
			
		||||
      retries: 5
 | 
			
		||||
		Reference in New Issue
	
	Block a user