Veritabanları
Büyük miktarda veriyi işlemek için tasarlanmış, yüksek ölçeklenebilirliğe sahip NoSQL veritabanı.
Kesinti olmadan düğüm ekleyerek yatay ölçeklendirin ve doğrusal performans artışı elde edin
Her düğümün özdeş olduğu, sürekli erişilebilirliği sağlayan ana düğümsüz mimari
Felaket kurtarma ve coğrafi dağıtım için birden fazla veri merkezinde yerleşik çoğaltma
Tutarlılık, erişilebilirlik ve performansı dengeleyerek her sorgu için tutarlılık seviyesini seçin
Çok büyük ölçekte milisaniye yanıt süreleriyle yazma ağırlıklı iş yükleri için optimize edilmiştir
Dağıtık yetenekleri kullanırken geliştiricilere tanıdık gelen SQL benzeri sorgu dili
# Add Cassandra repository
echo "deb https://debian.cassandra.apache.org 41x main" | sudo tee /etc/apt/sources.list.d/cassandra.list
curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add -
# Install Java
sudo apt update
sudo apt install openjdk-11-jdk -y
# Install Cassandra
sudo apt update
sudo apt install cassandra -y
# Start Cassandra
sudo systemctl start cassandra
sudo systemctl enable cassandra
# Verify installation
nodetool status
cqlsh
# Check cluster status
nodetool infoHızlı Başlangıç:# Connect to Cassandra
cqlsh
# Create keyspace
CREATE KEYSPACE mykeyspace WITH replication = {
'class': 'SimpleStrategy',
'replication_factor': 3
};
# Use keyspace
USE mykeyspace;
# Create table
CREATE TABLE users (
user_id UUID PRIMARY KEY,
username TEXT,
email TEXT,
created_at TIMESTAMP
);
# Insert data
INSERT INTO users (user_id, username, email, created_at)
VALUES (uuid(), 'john_doe', 'john@example.com', toTimestamp(now()));
# Cluster name
cluster_name: 'MyCluster'
# Data directories
data_file_directories:
- /var/lib/cassandra/data
# Commit log directory
commitlog_directory: /var/lib/cassandra/commitlog
# Seeds (other nodes)
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
- seeds: "192.168.1.1,192.168.1.2,192.168.1.3"
# Listen address
listen_address: 192.168.1.10
rpc_address: 0.0.0.0
# Ports
native_transport_port: 9042
storage_port: 7000Performans Ayarı:# Cluster status
nodetool status
# Node statistics
nodetool info
nodetool cfstats
# Compaction statistics
nodetool compactionstats
# Thread pool stats
nodetool tpstats
Basit VPS dağıtım sürecimizle dakikalar içinde başlatma
Deploy in about 2 minutes • Full root access • Support by ticket and email