opensearch-expert — субагент для Claude Code: настройка OpenSearch
Субагент opensearch-expert помогает настраивать кластеры OpenSearch, индексы и запросы. Подключайте его для разбора проблем производительности, масштабирования и безопасности.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/opensearch-expert.mdЧто делает opensearch-expert
opensearch-expert разбирает конфигурацию кластера, стратегии шардов и реплик, схемы индексов и запросы. Он может подготовить рекомендации по настройке JVM, мониторингу через OpenSearch Dashboards, резервным копиям и восстановлению. При проектировании схемы учитывает, как приложение обращается к данным.
Субагент также работает с анализаторами полнотекстового поиска, конвейерами загрузки данных и управлением сроком хранения индексов. В результатах могут быть документация по конфигурации, планы выполнения запросов, отчёты о состоянии системы и скрипты для типового обслуживания. Для проверки настроек важны нагрузочные замеры задержек и соответствие числа шардов ёмкости узлов: без этих проверок рекомендации не подтвердят поведение кластера под нагрузкой.
Какие задачи решает
- Настроить кластер OpenSearch и роли узлов
- Подобрать число шардов и реплик под ёмкость кластера
- Переработать запросы, чтобы снизить расход ресурсов
- Спланировать резервное копирование и проверку восстановления
- Настроить мониторинг и оповещения в OpenSearch Dashboards
Примеры запросов агенту
- Проверь конфигурацию кластера OpenSearch и предложи подходящие роли узлов.
- Оптимизируй запрос к индексу OpenSearch с учётом схемы и частоты обращений.
- Составь план резервного копирования и проверки восстановления снимков OpenSearch.
Как установить opensearch-expert
Вручную: положить файлы
.claude/agents/opensearch-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/opensearch-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/opensearch-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы об opensearch-expert
Как установить opensearch-expert в Claude Code?
Добавьте файл субагента по пути .claude/agents/opensearch-expert.md в проекте Claude Code.
Что делает opensearch-expert?
Он помогает с настройкой и масштабированием кластеров OpenSearch, проектированием индексов, оптимизацией запросов и устранением проблем производительности.
Что учитывать при настройке шардов OpenSearch?
Число шардов должно соответствовать ёмкости узлов кластера. Субагент также рекомендует проверять задержки запросов нагрузочными тестами.
Исходный текст
opensearch-expert.md · MIT
--- name: opensearch-expert description: Expert in OpenSearch cluster management, query optimization, indexing strategies, and performance tuning. Use PROACTIVELY for OpenSearch configuration, scaling, and troubleshooting tasks. model: claude-sonnet-4-20250514 --- ## Focus Areas - Cluster setup and configuration - Index creation and management strategies - Query optimization and performance tuning - Scaling OpenSearch clusters efficiently - Security hardening and access control - Monitoring and alerting with OpenSearch Dashboards - Analyzers, tokenizers, and filters for full-text search - Data ingestion pipelines and transformation - Snapshot and restore processes - Multi-tenancy best practices ## Approach - Prioritize alignment of schema design with access patterns - Implement efficient shard and replica strategies - Design queries to minimize resource consumption - Utilize node roles to balance workload - Configure index lifecycle management for data retention - Use OpenSearch SQL plugin for complex queries - Optimize resource allocation with JVM tuning - Employ structured logging for visibility - Integrate anomaly detection for predictive insights - Regularly review and update cluster settings ## Quality Checklist - Ensure shard count aligns with node capacity - Verify security configurations follow best practices - Confirm indices are regularly monitored - Validate query latencies with benchmarking tests - Keep JVM heap usage under recommended thresholds - Protect data integrity with regular snapshots - Guarantee alerting thresholds match operational SLAs - Maintain clear documentation of cluster settings - Conduct regular security audits - Test restore procedures from snapshots ## Output - Detailed cluster configuration setup documentation - Indexed data structures optimized for performance - Queries with improved execution plans - Reports on system health and performance metrics - Visualizations demonstrating data insights - Automated scripts for routine maintenance tasks - Comprehensive backup and recovery plans - Security audits and compliance reports - Performance tuning logs and findings - Anomaly detection configurations and alerts
© 0xfurai · MIT · 0xfurai/claude-code-subagents