furan/module-indexer-isolation 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

furan/module-indexer-isolation

Composer 安装命令:

composer require furan/module-indexer-isolation

包简介

Magento 2 module to isolate slow indexers into their own cron group

README 文档

README

Moves slow Magento indexers into their own cron group so they stop blocking everything else.

The problem

Magento's index cron group processes all indexers sequentially. If one takes hours (e.g. catalogsearch_fulltext on a large catalogue), every other indexer waits behind it.

What this module does

Selected indexers are moved into a separate index_isolated cron group that runs in its own PHP process. The remaining indexers continue in the default group unblocked. No additional system crontab entry is needed.

Quick start

cp -r Furan/IndexerIsolation app/code/Furan/IndexerIsolation
bin/magento module:enable Furan_IndexerIsolation
bin/magento setup:upgrade
  1. Go to Stores > Configuration > Advanced > System > Indexer Isolation
  2. Set "Enable Indexer Isolation" to Yes
  3. Select which indexers to isolate
  4. Save

The multiselect only shows indexers that are safe to isolate. Indexers with a shared_index or that other indexers depend on are excluded automatically.

When disabled, Magento behaves exactly as stock. Zero overhead.

How it works

Two interception layers handle the two indexer pathways:

Mview (partial reindex via changelogs): A plugin on Mview\ConfigInterface dynamically reassigns the mview group for isolated views from indexer to index_isolated. The default group skips them, the isolated group picks them up.

ReindexAllInvalid (full reindex of invalid indexers): A process-local in-memory flag combined with a plugin on Indexer\ConfigInterface filters isolated indexers out of getIndexers() during reindexAllInvalid(). No database state is modified. The isolated group runs in a separate PHP process and is unaffected by the flag.

Three dedicated cron jobs in the index_isolated group handle mview updates, full reindex, and changelog cleanup.

Requirements

  • Magento 2.4.8 or later
  • PHP 8.1+

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-23