update
This commit is contained in:
2
Base de données/Scylladb/.gitignore
vendored
Normal file
2
Base de données/Scylladb/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
standalone/data
|
||||
cluster/data-*
|
@ -1,31 +1,115 @@
|
||||

|
||||
|
||||
# AAAAA
|
||||

|
||||
|
||||
|
||||
# Installation
|
||||
# ScyllaDB
|
||||
|
||||
Pour utiliser AAAAA tout seul
|
||||
```bash
|
||||
docker compose up -d
|
||||
ScyllaDB is a NoSQL database management system that is compatible with Apache Cassandra.
|
||||
It is designed to scale linearly across multiple commodity servers, wBase-de-donn<6E>esle maintaining low latency and Base-de-donn<6E>esgh 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 ownersBase-de-donn<EFBFBD>esp information is meaningless
|
||||
```
|
||||
|
||||
Pour utiliser AAAAA avec Traefik
|
||||
```bash
|
||||
docker compose -f docker-compose-traefik.yml up -d
|
||||
**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]
|
||||
```
|
||||
|
||||
Pour utiliser AAAAA avec Nginx
|
||||
```bash
|
||||
docker compose -f docker-compose-nginx.yml up -d
|
||||
**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 Base-de-donn<EFBFBD>ests, 0 requests, 0.000 recent Base-de-donn<EFBFBD>est rate, 0 save period in seconds
|
||||
Row Cache : entries 13, size 13 bytes, capacity 154.2 KiB, 271 Base-de-donn<EFBFBD>ests, 271 requests, 1.000 recent Base-de-donn<EFBFBD>est rate, 0 save period in seconds
|
||||
Counter Cache : entries 0, size 0 bytes, capacity 0 bytes, 0 Base-de-donn<EFBFBD>ests, 0 requests, 0.000 recent Base-de-donn<EFBFBD>est rate, 0 save period in seconds
|
||||
Percent Repaired : 0.0%
|
||||
Token : (invoke with -T/--tokens to see all 256 tokens)
|
||||
```
|
||||
# Utilisation
|
||||
|
||||
## Accueil
|
||||
## CQLSH
|
||||
|
||||
CQLSH is a command line tool for interacting with ScyllaDB.
|
||||
|
||||
# More info
|
||||
- more information on the website [Tips-Of-Mine](https://www.tips-of-mine.fr/)
|
||||
### Usage
|
||||
|
||||
# Buy me a coffe
|
||||
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
||||
```go
|
||||
docker-compose exec <<scylladb-master | scylladb>> cqlsh
|
||||
```
|
||||
|
48
Base de données/Scylladb/cluster/docker-compose.yml
Normal file
48
Base de données/Scylladb/cluster/docker-compose.yml
Normal file
@ -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
|
||||
|
||||
|
0
Base de données/Scylladb/docker-compose-traefik.yml
Normal file
0
Base de données/Scylladb/docker-compose-traefik.yml
Normal file
0
Base de données/Scylladb/docker-compose.yml
Normal file
0
Base de données/Scylladb/docker-compose.yml
Normal file
BIN
Base de données/Scylladb/img/logo-ScyllaDB.png
Normal file
BIN
Base de données/Scylladb/img/logo-ScyllaDB.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
Base de données/Scylladb/img/logo.png
Normal file
BIN
Base de données/Scylladb/img/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
22
Base de données/Scylladb/standalone/docker-compose.yml
Normal file
22
Base de données/Scylladb/standalone/docker-compose.yml
Normal file
@ -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