소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill cassandra명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | cassandra |
| description | Cassandra — partition keys, CQL, consistency levels, CLI. |
Load when the project uses Cassandra or ScyllaDB (signal: cassandra-driver, cassandra-python-driver, datastax-astra, cassandra: in docker-compose, CASSANDRA_HOST env var).
# cqlsh (bundled with Cassandra):
cqlsh "$CASSANDRA_HOST" "${CASSANDRA_PORT:-9042}" \
-u "$CASSANDRA_USER" -p "$CASSANDRA_PASSWORD"
# with TLS:
cqlsh "$CASSANDRA_HOST" 9142 --ssl \
-u "$CASSANDRA_USER" -p "$CASSANDRA_PASSWORD"
# DataStax Astra (cloud):
cqlsh -b "$ASTRA_BUNDLE_PATH" -u "$ASTRA_CLIENT_ID" -p "$ASTRA_SECRET"
Key inspection commands:
DESCRIBE KEYSPACES;
DESCRIBE TABLES;
DESCRIBE TABLE keyspace.table;
SELECT * FROM system.local; -- node info, rack, DC
SELECT * FROM system.peers; -- cluster topology
TRACING ON; -- trace next query for latency breakdown
Cassandra requires query-driven data modeling. Unlike relational databases, denormalization is expected.
Primary key anatomy:
PRIMARY KEY ((partition_key), clustering_col1, clustering_col2)
WHERE partition_key = ?)Design rules:
-- Create table with TTL:
CREATE TABLE user_sessions (
user_id UUID,
session_id UUID,
data TEXT,
PRIMARY KEY (user_id, session_id)
) WITH default_time_to_live = 86400;
-- Insert with per-row TTL:
INSERT INTO user_sessions (user_id, session_id, data)
VALUES (?, ?, ?) USING TTL 3600;
-- Lightweight transaction (compare-and-set):
INSERT INTO users (id, email) VALUES (?, ?) IF NOT EXISTS;
UPDATE users SET email = ? WHERE id = ? IF email = ?;
| Level | Reads from | Writes to | Trade-off |
|---|---|---|---|
ONE | 1 replica | 1 replica | Fastest; risk of stale reads |
QUORUM | Majority | Majority | Strong consistency across DC |
LOCAL_QUORUM | Majority in local DC | Majority in local DC | Low latency in multi-DC |
ALL | All replicas | All replicas | Strongest; not fault-tolerant |
EACH_QUORUM | Quorum per DC | Quorum per DC | Geo-distributed writes |
Strong consistency rule: read CL + write CL > replication factor
QUORUM (2) + read QUORUM (2) = 4 > 3 → strongly consistentDefault recommendation: write LOCAL_QUORUM, read LOCAL_QUORUM for most OLTP workloads.
| Strategy | Best for |
|---|---|
SizeTieredCompactionStrategy (default) | Write-heavy; infrequent reads; heavy data |
LeveledCompactionStrategy | Read-heavy; predictable read latency; smaller SSTables |
TimeWindowCompactionStrategy | Time series with TTL; groups SSTables by time window |
Change strategy: ALTER TABLE t WITH compaction = {'class': 'LeveledCompactionStrategy'};
nodetool tpstatsTRUNCATE in production without checking dependent materialized views| Gotcha | Fix |
|---|---|
ALLOW FILTERING in query | Re-model the table for the query or add a SAI index |
| Hotspot partition (one partition grows unbounded) | Add a time-bucket to the partition key |
| Lightweight transactions (IF NOT EXISTS) slow | Use sparingly — they use Paxos; not for hot paths |
Reading with IN on partition key | May cause coordinator hotspot; prefer parallel single-partition reads |
nodetool repair not scheduled | Run weekly on each node; skipping causes inconsistency and tombstone accumulation |
SOC 직업 분류 기준