Skip to content

Add comprehensive configuration documentation and tuning guide - #163

Merged
makr-code merged 3 commits into
mainfrom
copilot/map-themis-switches-configs
Dec 25, 2025
Merged

makr-code merged 3 commits into
mainfrom
copilot/map-themis-switches-configs

Conversation

Copilot AI commented Dec 25, 2025 •

Copy link
Copy Markdown
Contributor

Systematically documents all ThemisDB configuration parameters and provides detailed tuning guidance for different workloads and hardware profiles.

Changes

Configuration Reference (config/config.yaml)

  • Complete YAML reference documenting 100+ parameters across storage, server, vector index, features, and monitoring
  • Inline comments explaining each option with defaults, recommendations, and trade-offs
  • Example configurations for common deployment scenarios

Key sections:

  • Storage (RocksDB): Memory (memtable, cache, buffers), write optimization (WAL, pipelining, concurrent writes), compaction (background jobs, triggers, strategies), read optimization (bloom filters, cache), compression, BlobDB, I/O, TTL
  • Server: Threading, connection limits, TLS/SSL, HTTP/2, WebSocket
  • Vector Index: HNSW parameters (M, ef_construction, ef_search), GPU acceleration, persistence
  • Features: Semantic cache, LLM store, CDC, time-series, retention policies
  • Monitoring: OpenTelemetry tracing, Prometheus metrics, logging

Tuning Guide (docs/de/guides/CONFIGURATION_TUNING_GUIDE.md)

Comprehensive 1,153-line German guide covering:

  • Storage tuning: Memory budget planning with formulas, write performance (concurrent memtables, stall prevention), compaction strategies, read optimization, compression selection
  • Server tuning: Thread configuration by workload type, connection limits, TLS setup
  • Vector index tuning: HNSW parameter selection (M: 8-64, ef_search: 20-200), GPU acceleration, recall vs latency trade-offs
  • Memory management: RAM allocation calculations, low-memory optimizations
  • Use-case profiles: Write-heavy, read-heavy, vector search, balanced workloads with specific parameter recommendations
  • Hardware profiles: Raspberry Pi 3/4/5, high-end servers (32+ GB RAM) with optimized configurations
  • Troubleshooting: Common issues (write stalls, high latency, memory pressure) with solutions

Quick Start Guide (docs/en/guides/guides_configuration.md)

English reference with quick start examples, performance tuning by workload/hardware, and cross-references.

Integration

  • Updated README.md with links to configuration guides in Operations section and Quick Start
  • Cross-referenced existing documentation (Raspberry Pi tuning, search performance, deployment guides)

Example

Tuning for write-heavy workloads:

storage:
  memtable_size_mb: 512
  max_write_buffer_number: 4
  max_background_jobs: 12
  enable_pipelined_write: true
  allow_concurrent_memtable_write: true
  use_universal_compaction: true  # Lower write amplification
  level0_slowdown_writes_trigger: 20
  
server:
  worker_threads: 0  # Auto-detect cores

Vector search optimized configuration:

vector_index:
  hnsw_m: 32              # Better connectivity for 100k-1M vectors
  hnsw_ef_construction: 400  # High build quality
  ef_search: 100          # Runtime tunable: 50 (fast) to 200 (recall)
  use_gpu: true           # 10-20x speedup for batch queries
  max_elements: 1000000
Original prompt

Wir müssen systematisch alle Schalter und Konfigurationen der Themis in config.yaml und weiteren abbilden und einen guide zum tuning verfassen.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Document switches and configurations for Themis in config.yaml Add comprehensive configuration documentation and tuning guide Dec 25, 2025
Copilot AI requested a review from makr-code December 25, 2025 19:19
@makr-code
makr-code marked this pull request as ready for review December 25, 2025 19:48
@makr-code
makr-code merged commit ff742ae into main Dec 25, 2025
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
@makr-code makr-code mentioned this pull request Mar 12, 2026
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants