magento-infra

Configure and troubleshoot Magento 2 Redis, RabbitMQ, OpenSearch, and MySQL infrastructure.

32|3|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-infra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: magento-infra
Source: https://github.com/furan917/magento-ai-toolkit/tree/main/skills/magento-infra
Command: npx skills add https://github.com/furan917/magento-ai-toolkit --skill magento-infra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Magento deployments often suffer from misconfigured infrastructure services like Redis caches, RabbitMQ queues, OpenSearch search backends, and multi-database MySQL setups, leading to slow storefronts and unreliable background processing.

Core Features & Use Cases

  • Configures and troubleshoots Redis caches (DB0 app cache, DB1 FPC, DB2 sessions) to improve cache hit rates and reliability.
  • Orchestrates RabbitMQ for asynchronous processing with clear consumer, topology, and management guidance.
  • Configures OpenSearch/Elasticsearch for Magento product/catalog search with safe reindex guidance and health checks.
  • Provides guidance on multiple MySQL connections (default, indexer, checkout) to isolate workloads and prevent locking.
  • Includes CLI commands and env.php examples to reproduce production-grade setups.

Quick Start

Paste this file as a system prompt and describe your Magento infrastructure task to begin.

Frequently Asked Questions about magento-infra

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure multiple MySQL connections in Magento 2 env.php to isolate indexer workloads?

To isolate Magento 2 MySQL workloads, you configure multiple connections in env.php for default, indexer, and checkout databases. This prevents locking and improves reliability by separating read and write operations across isolated services.

Why does my Magento storefront stay slow after setting up Redis caching?

Slow Magento storefronts often stem from misconfigured Redis caches. Proper configuration requires assigning isolated Redis DBs for app cache, FPC, and sessions to improve hit rates and ensure predictable performance.

What is the best way to manage RabbitMQ queues for Magento 2 background processing?

The best way to manage RabbitMQ asynchronous processing in Magento 2 is by orchestrating consumers and topologies via CLI workflows. This ensures reliable background processing and clear queue management.

Can I configure OpenSearch for Magento product catalog search on a self-hosted environment?

Yes, you can configure OpenSearch for Magento product catalog search on both cloud and self-hosted environments. The setup includes health checks and safe reindex guidance to ensure stable search performance.

How do I troubleshoot Magento 2 infrastructure reliability issues in production?

Troubleshooting Magento 2 production reliability issues involves debugging Redis caches, RabbitMQ queues, OpenSearch, and MySQL connections. Applying env.php configurations and CLI workflows helps stabilize performance.

When do I need separate Redis database instances for Magento 2 sessions and full page cache?

You need separate Redis database instances for Magento 2 to isolate sessions and full page cache from application cache. Configuring DB0, DB1, and DB2 separately improves cache hit rates and prevents data collision.