clickhouse-rate-limits

Featured

Configure ClickHouse query concurrency, memory quotas, and connection limits. Use when hitting "too many simultaneous queries", managing concurrent users, or tuning server-side resource limits. Trigger: "clickhouse rate limit", "clickhouse concurrency", "clickhouse quota", "too many simultaneous queries", "clickhouse connection limit".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ClickHouse Rate Limits & Concurrency ## Overview ClickHouse does not have REST API rate limits like a SaaS product. Instead, it has server-side concurrency limits, memory quotas, and per-user settings that control resource usage. This skill covers how to configure and work within those limits. ## Prerequisites - ClickHouse admin access (or Cloud console) - Understanding of your concurrency requirements ## Instructions ### Step 1: Understand Server-Side Limits | Setting | Default | Description | |---------|---------|-------------| | `max_concurrent_queries` | 100 | Max queries running simultaneously | | `max_connections` | 4096 | Max TCP/HTTP connections | | `max_memory_usage` | ~10GB | Per-query memory limit | | `max_execution_time` | 0 (unlimited) | Per-query timeout in seconds | | `max_threads` | CPU cores | Threads per query | **ClickHouse Cloud API limit:** The Cloud management API (not the query interface) is limited to 10 requests per 10 seconds. ### Step 2: Configure Per-User Quotas ```sql -- Create a quota that limits query resources per user CREATE QUOTA IF NOT EXISTS app_quota FOR INTERVAL 1 HOUR MAX queries = 10000, result_rows = 100000000, read_rows = 1000000000, execution_time = 3600 TO app_user; -- Create a profile with resource limits CREATE SETTINGS PROFILE IF NOT EXISTS app_profile SETTINGS max_memory_usage = 5000000000, -- 5GB per query max_execution_time = 30, -- 30s t...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

clickhouse-common-errors

Diagnose and fix the top 15 ClickHouse errors — query failures, insert problems, memory limits, and merge issues. Use when encountering ClickHouse exceptions, debugging failed queries, or troubleshooting server-side errors. Trigger: "clickhouse error", "fix clickhouse", "clickhouse not working", "debug clickhouse", "clickhouse exception", "clickhouse syntax error".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clickhouse-security-basics

Secure ClickHouse with user management, network restrictions, TLS, and audit logging. Use when hardening a ClickHouse deployment, creating restricted users, or configuring network-level access controls. Trigger: "clickhouse security", "clickhouse user management", "secure clickhouse", "clickhouse TLS", "clickhouse access control", "clickhouse firewall".

2,266 Updated today
jeremylongshore
AI & Automation Solid

clickhouse-io

ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.

495 Updated 1 months ago
vibeeval
AI & Automation Featured

clickhouse-enterprise-rbac

Configure ClickHouse enterprise RBAC — SQL-based users, roles, row policies, column-level grants, and quota management. Use when setting up multi-user access control, implementing tenant isolation, or configuring enterprise security for ClickHouse. Trigger: "clickhouse RBAC", "clickhouse roles", "clickhouse permissions", "clickhouse row policy", "clickhouse enterprise access", "clickhouse GRANT".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clickhouse-performance-tuning

Optimize ClickHouse query performance with indexing, projections, settings tuning, and query analysis using system tables. Use when queries are slow, investigating performance bottlenecks, or tuning ClickHouse server settings. Trigger: "clickhouse performance", "optimize clickhouse query", "clickhouse slow query", "clickhouse indexing", "clickhouse tuning", "clickhouse projections".

2,266 Updated today
jeremylongshore