Opensourcefaq
digoal/blog
解答与开源产品有关的深度技术问题,输出图文并茂的 Markdown 技术文章。触发条件:用户提出与开源项目(如 PostgreSQL、Redis、Kafka、Kubernetes、ClickHouse、Flink 等)相关的技术问题,并提供源码目录或 URL、deepwiki repo 名称。即使用户只说"帮我解答这个开源问题"或"分析一下这个项目的某个机制",也应使用本…
Fix ClickHouse "Code: 243 Cannot reserve 1.00 MiB, not enough space" errors caused by system log tables (textlog, tracelog, processorsprofilelog, querylog) filling the disk.
$ npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile clickhouse-system-log-disk-exhaustion --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/clickhouse-system-log-disk-exhaustion .claude/skills/clickhouse-system-log-disk-exhaustion && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "clickhouse-system-log-disk-exhaustion" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustion into .claude/skills/clickhouse-system-log-disk-exhaustion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clickhouse-system-log-disk-exhaustion", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustionType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile clickhouse-system-log-disk-exhaustion --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/clickhouse-system-log-disk-exhaustion .agents/skills/clickhouse-system-log-disk-exhaustion && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "clickhouse-system-log-disk-exhaustion" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustion into .agents/skills/clickhouse-system-log-disk-exhaustion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clickhouse-system-log-disk-exhaustion", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile clickhouse-system-log-disk-exhaustion --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/clickhouse-system-log-disk-exhaustion .cursor/skills/clickhouse-system-log-disk-exhaustion && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "clickhouse-system-log-disk-exhaustion" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustion into .cursor/skills/clickhouse-system-log-disk-exhaustion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clickhouse-system-log-disk-exhaustion", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divinevideo/divine-mobile.git --path .agents/skills/clickhouse-system-log-disk-exhaustion--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile clickhouse-system-log-disk-exhaustion --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/clickhouse-system-log-disk-exhaustion .gemini/skills/clickhouse-system-log-disk-exhaustion && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "clickhouse-system-log-disk-exhaustion" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustion into .gemini/skills/clickhouse-system-log-disk-exhaustion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clickhouse-system-log-disk-exhaustion", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divinevideo/divine-mobile clickhouse-system-log-disk-exhaustionInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/clickhouse-system-log-disk-exhaustion .github/skills/clickhouse-system-log-disk-exhaustion && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "clickhouse-system-log-disk-exhaustion" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustion into .github/skills/clickhouse-system-log-disk-exhaustion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clickhouse-system-log-disk-exhaustion", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile clickhouse-system-log-disk-exhaustion --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/clickhouse-system-log-disk-exhaustion .opencode/skills/clickhouse-system-log-disk-exhaustion && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "clickhouse-system-log-disk-exhaustion" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/clickhouse-system-log-disk-exhaustion into .opencode/skills/clickhouse-system-log-disk-exhaustion/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "clickhouse-system-log-disk-exhaustion", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
clickhouse-system-log-disk-exhaustionFix ClickHouse "Code: 243 Cannot reserve 1.00 MiB, not enough space" errors caused by system log tables (textlog, tracelog, processorsprofilelog, querylog) filling the disk.
Clickhouse System Log Disk Exhaustion is an agent skill from divinevideo/divine-mobile. Fix ClickHouse "Code: 243 Cannot reserve 1.00 MiB, not enough space" errors caused by system log tables (textlog, tracelog, processorsprofilelog, querylog) filling the disk. Use when: (1) ClickHouse inserts fail with NOTENOUGHSPACE error, (2) Disk is 100% full but application tables are small, (3) system database is 10-100x larger than user databases, (4) Sentry shows batch insert/commit failures across multiple tables simultaneously. Covers both self-hosted ClickHouse (Altinity operator on K8s) and ClickHouse…
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Data warehousing and Container orchestration. It works with ClickHouse, Kubernetes and Sentry. The licence is MPL-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c3d6f7e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
kubectlFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
clickhouse.comclickhouse.cloudFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Clickhouse System Log Disk Exhaustion loads about 2k tokens when it runs. Until then it costs about 152 tokens; SKILL.md has 468 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from divinevideo/divine-mobile at commit c3d6f7e, republished under its MPL-2.0 licence (© divinevideo). 468 words, ~1,971 tokens.
.claude/skills/clickhouse-system-log-disk-exhaustion/SKILL.md (or your agent's skills folder).ClickHouse internal system log tables (text_log, trace_log, processors_profile_log,
query_log, metric_log, asynchronous_metric_log) grow unbounded with a default TTL of
180 days, eventually filling the entire disk. This causes all INSERT operations to fail with
Code: 243 - Cannot reserve 1.00 MiB, not enough space, cascading across all application
tables simultaneously.
Code: 243. DB::Exception: Cannot reserve 1.00 MiB, not enough space. (NOT_ENOUGH_SPACE)SELECT database, formatReadableSize(sum(total_bytes)) FROM system.tables WHERE total_bytes > 0 GROUP BY database ORDER BY sum(total_bytes) DESCsystem database is 10x+ larger than application databases, this is the causetrace_log_16, text_log_19)
from decommissioned server nodes accumulate and never get cleaned up within the TTL window-- Check database sizes
SELECT database, formatReadableSize(sum(total_bytes)) as size
FROM system.tables WHERE total_bytes > 0
GROUP BY database ORDER BY sum(total_bytes) DESC;
-- Find biggest system tables
SELECT name, formatReadableSize(total_bytes) as size
FROM system.tables
WHERE database = 'system' AND total_bytes > 100000000
ORDER BY total_bytes DESC LIMIT 20;
-- Check disk usage
SELECT name, formatReadableSize(free_space) as free, formatReadableSize(total_space) as total
FROM system.disks WHERE name = 'default';Step 1: If disk is 100% full (TRUNCATE itself fails with NOT_ENOUGH_SPACE)
TRUNCATE needs some temporary disk space. When disk is truly 100% full, you must free space at the filesystem level first:
# Find and remove orphaned _N suffix tables (from old replicas)
kubectl exec $CH_POD -- du -sh /var/lib/clickhouse/data/system/*_0/
# Detach them first (important!), then remove data
kubectl exec $CH_POD -- clickhouse-client --query "DETACH TABLE system.text_log_0 PERMANENTLY"
kubectl exec $CH_POD -- bash -c "rm -rf /var/lib/clickhouse/data/system/text_log_0/"
# Repeat for other _N tables until you have ~100MB+ freeStep 2: Drop partitions or truncate tables
System log tables are partitioned by toYYYYMM(event_date). Drop older partitions first
(smaller operations), then truncate:
-- Check partitions
SELECT partition, formatReadableSize(sum(bytes_on_disk)) as size
FROM system.parts
WHERE database = 'system' AND table = 'text_log' AND active
GROUP BY partition ORDER BY partition;
-- Drop old partitions one at a time
ALTER TABLE system.text_log DROP PARTITION 202601 SETTINGS max_partition_size_to_drop = 0;
ALTER TABLE system.text_log DROP PARTITION 202602 SETTINGS max_partition_size_to_drop = 0;
-- Or truncate entire tables (needs max_table_size_to_drop override if > 50GB)
TRUNCATE TABLE system.text_log SETTINGS max_table_size_to_drop = 0;
TRUNCATE TABLE system.trace_log SETTINGS max_table_size_to_drop = 0;
TRUNCATE TABLE system.processors_profile_log SETTINGS max_table_size_to_drop = 0;
TRUNCATE TABLE system.query_log SETTINGS max_table_size_to_drop = 0;
TRUNCATE TABLE system.metric_log SETTINGS max_table_size_to_drop = 0;
TRUNCATE TABLE system.asynchronous_metric_log SETTINGS max_table_size_to_drop = 0;Step 3: Set TTL to prevent recurrence
-- Set 3-day TTL on all major system log tables
ALTER TABLE system.text_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.trace_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.processors_profile_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.query_log MODIFY TTL event_date + INTERVAL 7 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.metric_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.asynchronous_metric_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.part_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;
ALTER TABLE system.query_views_log MODIFY TTL event_date + INTERVAL 3 DAY SETTINGS materialize_ttl_after_modify = 0;ClickHouse Cloud revokes all modify permissions on system.* from user-created roles:
REVOKE INSERT, ALTER, CREATE TABLE, DROP TABLE, TRUNCATE, OPTIMIZE ON system.* FROM default_roleYou CANNOT fix this via SQL. The only options are:
default user password from the console, then run the ALTER TTL commandsTo identify ClickHouse Cloud: check for numbered suffix tables (e.g., trace_log_16,
text_log_19) which are from rotated server pods. Also, system.disks will show
system-tables/mergetree/ paths with 16 EiB (object storage).
-- After cleanup, verify disk usage
-- Self-hosted:
SELECT formatReadableSize(free_space) FROM system.disks WHERE name = 'default';
-- Both: verify system database is now small
SELECT database, formatReadableSize(sum(total_bytes)) as size
FROM system.tables WHERE total_bytes > 0 GROUP BY database;
-- Test that writes work
INSERT INTO your_table (...) VALUES (...);max_table_size_to_drop safety limit defaults to 50 GB. Tables larger than this
require SETTINGS max_table_size_to_drop = 0 to truncate/drop.DETACH TABLE ... PERMANENTLY is important before removing data files - it prevents
ClickHouse from trying to access the removed files.materialize_ttl_after_modify = 0 prevents ClickHouse from immediately trying to
rewrite all data to apply TTL (which would need disk space you don't have)._16, _19) that accumulate over time. With 65+ nodes over months, this adds
up to tens of GB.text_log is typically the largest offender because it logs at trace/debug level
by default and includes every log line from the ClickHouse server.© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/clickhouse-system-log-disk-exhaustion of divinevideo/divine-mobile.
Open the folder on GitHubat commit c3d6f7e
Clickhouse System Log Disk Exhaustion next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Clickhouse System Log Disk Exhaustion this skilldivinevideo/divine-mobile | 266 | — | ~2k | Automated safety check: Pass | MPL-2.0 | |
| Opensourcefaqdigoal/blog | 8.6k | — | ~966 | Automated safety check: Pass | GPL-2.0 | |
| Cloud SaaS Modechmonitor/chmonitor | 300 | — | ~2.5k | Automated safety check: Notes | GPL-3.0 | |
| Adapter Alignmentevloghq/evlog | 1.9k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Archestra Dev Investigatearchestra-ai/archestra | 4.4k | — | ~831 | Automated safety check: Pass | Custom licence | |
| Gke Cost Analysisgoogle/skills | 21k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 |
digoal/blog
解答与开源产品有关的深度技术问题,输出图文并茂的 Markdown 技术文章。触发条件:用户提出与开源项目(如 PostgreSQL、Redis、Kafka、Kubernetes、ClickHouse、Flink 等)相关的技术问题,并提供源码目录或 URL、deepwiki repo 名称。即使用户只说"帮我解答这个开源问题"或"分析一下这个项目的某个机制",也应使用本…
chmonitor/chmonitor
Work on chmonitor's Cloud (SaaS) vs self-hosted (OSS) behaviour from ONE codebase.
evloghq/evlog
Twice-monthly check that evlog's drain adapters still send what each provider's own client sends.
archestra-ai/archestra
A skill your agent uses when investigating Archestra bugs or incidents — staging issues, backend 50x errors, Drizzle failed queries, DB connection pressure, deploy regressions, or Kubernetes/runtime…
google/skills
Answer natural language questions and perform analysis on GKE cluster and workload costs using BigQuery billing exports, cost allocation data, and live cluster monitoring metrics.
chmonitor/chmonitor
Cluster management: distributed tables, ON CLUSTER DDL, node lifecycle, resharding, load balancing, and Keeper migration.
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
divinevideo/divine-mobile
Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.
divinevideo/divine-mobile
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
Works with
Categories
Fix ClickHouse "Code: 243 Cannot reserve 1.00 MiB, not enough space" errors caused by system log tables (textlog, tracelog, processorsprofilelog, querylog) filling the disk. Clickhouse System Log Disk Exhaustion is an agent skill from divinevideo/divine-mobile.00 MiB, not enough space" errors caused by system log tables (textlog, tracelog, processorsprofilelog, querylog) filling the disk.
Clickhouse System Log Disk Exhaustion fits situations like: clickHouse inserts fail with NOTENOUGHSPACE error; disk is 100% full but application tables are small; system database is 10-100x larger than user databases; sentry shows batch insert/commit failures across multiple tables simultaneously.
Run `npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a claude-code`. Or copy the skill folder (.agents/skills/clickhouse-system-log-disk-exhaustion in divinevideo/divine-mobile) into .claude/skills/clickhouse-system-log-disk-exhaustion in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a codex`. Or copy the skill folder (.agents/skills/clickhouse-system-log-disk-exhaustion in divinevideo/divine-mobile) into .agents/skills/clickhouse-system-log-disk-exhaustion in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill clickhouse-system-log-disk-exhaustion -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clickhouse-system-log-disk-exhaustion, .gemini/skills/clickhouse-system-log-disk-exhaustion, .github/skills/clickhouse-system-log-disk-exhaustion and .opencode/skills/clickhouse-system-log-disk-exhaustion in your project.
Going by SKILL.md and its folder, Clickhouse System Log Disk Exhaustion needs the command-line tools its instructions call (kubectl).
SKILL.md names 2 domains. As links in the text: clickhouse.com and clickhouse.cloud. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Clickhouse System Log Disk Exhaustion is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Clickhouse System Log Disk Exhaustion: Opensourcefaq (digoal/blog, 8.6k stars), Cloud SaaS Mode (chmonitor/chmonitor, 300 stars), Adapter Alignment (evloghq/evlog, 1.9k stars) and Archestra Dev Investigate (archestra-ai/archestra, 4.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 10, 2026.
Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.