ฐานข้อมูล
ฐานข้อมูล NoSQL ที่มีความสามารถในการขยายขนาดสูง ออกแบบมาเพื่อจัดการกับข้อมูลจำนวนมาก
ปรับขนาดแนวนอนโดยเพิ่มโหนดโดยไม่มีช่วงหยุดให้บริการ ได้ประสิทธิภาพที่เพิ่มขึ้นเป็นเส้นตรง
สถาปัตยกรรมแบบไร้มาสเตอร์ที่ทุกโหนดเหมือนกัน ช่วยให้พร้อมใช้งานอย่างต่อเนื่อง
การจำลองข้อมูลในตัวข้ามหลายศูนย์ข้อมูล เพื่อการกู้คืนจากภัยพิบัติและการกระจายตามภูมิศาสตร์
เลือกระดับความสอดคล้องต่อคิวรีแต่ละรายการ เพื่อสร้างสมดุลระหว่างความสอดคล้อง ความพร้อมใช้งาน และประสิทธิภาพ
ปรับให้เหมาะกับภาระงานที่เขียนข้อมูลหนัก ด้วยเวลาตอบสนองระดับมิลลิวินาทีในระดับใหญ่
ภาษาคิวรีคล้าย SQL ที่คุ้นเคยสำหรับนักพัฒนา ขณะใช้ประโยชน์จากความสามารถแบบกระจาย
# 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 infoเริ่มต้นอย่างรวดเร็ว:# 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: 7000การปรับแต่งประสิทธิภาพ:# Cluster status
nodetool status
# Node statistics
nodetool info
nodetool cfstats
# Compaction statistics
nodetool compactionstats
# Thread pool stats
nodetool tpstats
เริ่มต้นในไม่กี่นาที ด้วยกระบวนการติดตั้ง VPS แบบง่ายๆของเรา
จัดส่งในประมาณ2นาที • เข้าถึง root เต็มที่ • สนับสนุนโดยตั๋วและอีเมล