메뉴
HN
Hacker News 8일 전

DeepSQL: 오픈소스 셀프호스팅 DBA 에이전트

IMP
7/10
핵심 요약

DeepSQL은 PostgreSQL과 MySQL을 위한 자체 호스팅 DBA 및 데이터 엔지니어링 AI 에이전트입니다. 슬로우 쿼리 최적화, 워크로드 모니터링, 대시보드 생성 등을 자동화하며, 단 한 줄의 명령어로 15분 만에 자체 인프라에 구축할 수 있어 데이터 보안을 유지하면서 데이터베이스 운영을 자동화할 수 있습니다.

번역된 본문

데이터베이스를 위한 뇌, 당신의 연중무휴 DBA 및 데이터 엔지니어. DeepSQL은 워크로드를 모니터링하고, 슬로우 쿼리를 최적화하며, BI 대시보드를 제공합니다.

curl -fsSL https://install.deepsql.ai/install.sh | bash

한 줄 설치 · 15분 만에 자체 호스팅 웹 UI와 함께 작동 · 내장 에이전트 + BI CLI · 터미널 및 슬랙에서 사용 가능

채널에서 질문하기: deepsql · 에이전트 aws-rds-replica에게 "최근 7일 동안 데이터 처리 속도가 가장 빠른 상위 5개 고객은 누구인가요?"라고 물어봅니다.

7단계 · 뇌 · 스키마 · 워크로드 · 실행됨

  • 뇌(Brain) 컨텍스트 로드 완료 — 고객 · 매출 보고서 집계 · 속도 지표
  • 스키마 확인 — public.sales_report_aggregation · public.accounts
  • 워크로드 패턴 확인 — 지난 24시간 동안 유사한 집계 42회 발견
  • 쿼리 초안 작성 — GROUP BY account_id · SUM(rows_ingested)
  • 실행 계획 검증 — idx_sra_created_at 인덱스 스캔 · 예상 38ms
  • 신뢰도: 높음 — 뇌(Brain)의 3개 관리 지표와 일치
  • 읽기 복제본에서 실행 — 41ms 만에 5행 반환

최근 7일 동안 sales_report_aggregation에 수집된 행 기준 상위 5개 고객:

  • 고객 | 일일 행 수 | 전주 대비 변화율
  • Aurora Hospitality (30469) | 482만 | +18%
  • Nordic Stays Group (28104) | 391만 | +12%
  • Coastline Resorts (31287) | 344만 | +9%
  • Meridian Hotels (29553) | 287만 | +6%
  • Lumen Suites (30988) | 231만 | +21% 합계 1,735만 행/일 — 전체 수집량의 62%

"어떤 고객이 슬로우 쿼리의 영향을 받나요?" "고객 30469의 향후 7일 동안 일일 예약 픽업 현황을 보여줘"

에이전트 대시보드 요약: 뇌(Brain), 슬로우 쿼리, 워크로드 분석, 에디터

작동 방식 15분 만에 제로에서 실무 DBA로 엔드투엔드 자체 호스팅. 당신의 데이터, 자격 증명, 그리고 VPC 안에서 운영됩니다.

1. 한 줄 설치 VPC 내의 모든 Linux 머신, EC2 또는 컨테이너에서 실행하세요. DeepSQL 에이전트, CLI, MCP 서버를 머신에 설치합니다. curl -fsSL https://install.deepsql.ai/install.sh | bash

2. 설정: 데이터 연결 데이터베이스 연결을 추가하고, 회사의 지식을 알려주며, 슬로우 쿼리 로그를 제공하세요. DeepSQL은 스키마를 인덱싱하고 즉시 워크로드 학습을 시작합니다.

  • 데이터베이스 연결: PostgreSQL 또는 MySQL — 읽기 복제본, VPC 피어링. 읽기 전용 자격 증명을 사용하여 데이터가 인프라 외부로 나가지 않습니다. host: aws-rds-replica.internal role: deepsql_ro ssl: require
  • 회사 지식: 일상적인 언어로 비즈니스 규칙(예: MRR, 활성 호텔 기준, 통화 규칙)을 DeepSQL에게 알려줍니다. // MRR = SUM(subscription.mrr) // WHERE status = 'active' // 활성 호텔 = 최근 30일 내 체크인 1회 이상
  • 슬로우 쿼리 로그: pg_stat_statements 또는 MySQL 슬로우 로그를 가리킵니다. DeepSQL이 이를 클러스터링, 순위 지정 및 추천을 시작합니다. source: pg_stat_statements window: 최근 30일 롤링 grouped: 1,284개 → 96개 지문(fingerprints)

3. 라이브: 채팅 시작 브라우저에서 내장된 DeepSQL 에이전트와 채팅하거나, Claude, Codex, Cursor를 MCP 또는 CLI를 통해 DeepSQL 인스턴스에 연결하세요. 원격 MCP / CLI 클라이언트 npm install -g @deepsql/mcp@latest 호환 가능 에이전트: Claude, Codex, Cursor 등

데이터베이스를 자동 조종(Autopilot)으로 전환하세요. 한 줄 설치. 15분 만에 자체 호스팅. 역할 기반 액세스, 쿼리 정책 및 감사 로그가 내장되어 있습니다.

curl -fsSL https://install.deepsql.ai/install.sh | bash

문서 읽기 DeepSQL 블로그 데이터베이스 내부에서 전하는 현장 노트 Aurora 비용 절감, Tableau 대체, 그리고 관측 가능성(Observability) 청구서가 거짓말인 이유에 대한 심층 분석. 수석 DBA 및 데이터 엔지니어를 위해 작성되었습니다. 블로그 읽기

원문 보기
원문 보기 (영어)
The brain for your database Your 24/7 DBA and Data Engineer DeepSQL monitors workloads, optimizes slow queries, and ships BI dashboards. curl -fsSL https://install.deepsql.ai/install.sh | bash One-line install · Self-host in 15 minutes Works with Web UI · Built-in agent + BI CLI · In your terminal Slack · Ask in a channel deepsql · agent aws-rds-replica what are the top 5 customers having large velocity of data in last 7 days? 7 steps · brain · schema · workload · executed Loaded brain context — customers · sales_report_aggregation · velocity metric Resolved schema — public.sales_report_aggregation · public.accounts Checked workload patterns — similar aggregation seen 42× in last 24h Drafted query — GROUP BY account_id · SUM(rows_ingested) Validated plan — index scan on idx_sra_created_at · 38ms est. Confidence: high — matches 3 governed metrics in brain Executed on read replica — returned 5 rows in 41ms Top 5 customers by rows ingested into sales_report_aggregation over the last 7 days: Customer Rows / day Δ vs prior wk Aurora Hospitality (30469) 4.82M +18% Nordic Stays Group (28104) 3.91M +12% Coastline Resorts (31287) 3.44M +9% Meridian Hotels (29553) 2.87M +6% Lumen Suites (30988) 2.31M +21% Combined 17.35M rows/day — 62% of total ingestion volume. Which customers are affected by slow queries? Show me pick up of bookings by day for customer 30469 for next 7 days Agent Dashboards Digest Brain Slow Queries Workload Analysis Editor How it works From zero to a working DBA in 15 minutes Self-hosted end-to-end. Your data, your credentials, your VPC. 1 Install One line Run this on any Linux box, EC2, or container in your VPC. Installs the DeepSQL agent, CLI, and MCP server on the machine. curl -fsSL https://install.deepsql.ai/install.sh | bash 2 Setup Point it at your data Add database connections, teach it your company's knowledge, and feed it your slow query logs. DeepSQL indexes your schema and starts learning your workload immediately. Database connections Postgres or MySQL — read replica, VPC-peered. Read-only credentials, no data leaves your infra. host: aws-rds-replica.internal role: deepsql_ro ssl: require Company knowledge Teach DeepSQL your business rules in plain English — MRR, active-hotel, currency conventions. // MRR = SUM(subscription.mrr) // WHERE status = 'active' // Active hotel = check-ins ≥ 1 / 30d Slow query logs Point at pg_stat_statements or MySQL slow log. DeepSQL clusters, ranks, and starts recommending. source: pg_stat_statements window: 30d rolling grouped: 1,284 → 96 fingerprints 3 Go live Start chatting Chat with the built-in DeepSQL agent in your browser, or connect Claude, Codex, and Cursor to your DeepSQL instance over MCP or CLI. Remote MCP / CLI client npm install -g @deepsql/mcp@latest Works with Put your database on autopilot. One-line install. Self-host in 15 minutes. Role-based access, query policies, and audit logs built in. curl -fsSL https://install.deepsql.ai/install.sh | bash Read the docs The DeepSQL Blog Field notes from inside the database Deep dives on cutting Aurora costs, replacing Tableau, and why your observability bill is a lie. Written for senior DBAs and data engineers. Read the blog