Kafka MirrorMaker 2多集群灾备与延迟治理
概览
- MM2 基于 Connect 架构在集群间复制主题与偏移;支持双向与单向拓扑;需规范命名与延迟治理。
技术参数(已验证)
- 拓扑:主动-主动与主动-备用;命名
source.cluster.topic 前缀避免冲突;偏移同步与消费者迁移。
- 一致性:复制延迟导致消费不一致;关键主题采用单向或写入收敛策略;记录位点。
- 过滤与映射:配置允许/拒绝列表与主题映射;遵循命名规则与兼容策略。
- 可观测:记录复制吞吐、延迟与失败;对积压与冲突告警;DLQ与重试。
- 安全与权限:跨集群认证与授权;限制复制范围与资源。
实战清单
- 设计明确的拓扑与命名;对关键主题选择单向与严格治理。
- 建立消费者迁移流程与位点校验;在演练中验证。
- 在看板中监控延迟与失败;维护回滚与隔离策略。
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2026-09-28 05:53:08 HTTP/2.0 GET : www.ybb.press/security/2042.html
- 运行时间 : 0.436021s [ 吞吐率:2.29req/s ] 内存消耗:5,316.52kb 文件加载:115
- 查询信息 : 19 queries 2 writes
- 缓存信息 : 36 reads,3 writes
- 配置加载 : 80
- 会话信息 : SESSION_ID=8ppqj74760klimrttbbiedje7u
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000097s ]
- [ CACHE ] INIT File
- [ BEHAVIOR ] Run \addons\cms\Cms @app_init [ RunTime:0.008992s ]
- [ BEHAVIOR ] Run \addons\fastchat\Fastchat @app_init [ RunTime:0.000216s ]
- [ BEHAVIOR ] Run \addons\log\Log @app_init [ RunTime:0.000444s ]
- [ BEHAVIOR ] Run \addons\shop\Shop @app_init [ RunTime:0.003467s ]
- [ BEHAVIOR ] Run \addons\yunping\Yunping @app_init [ RunTime:0.000516s ]
- [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000664s ]
- [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001529s ]
- [ LANG ] /www/wwwroot/yebinbing/thinkphp/lang/zh-cn.php
- [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000153s ]
- [ ROUTE ] array (
'type' => 'method',
'method' =>
array (
0 => '\\think\\addons\\Route',
1 => 'execute',
),
'var' =>
array (
'addon' => 'cms',
'controller' => 'archives',
'action' => 'index',
),
)
- [ HEADER ] array (
'x-forwarded-proto' => 'https',
'cf-visitor' => '{"scheme":"https"}',
'cf-ipcountry' => 'US',
'cf-connecting-ip' => '216.73.216.103',
'cdn-loop' => 'cloudflare; loops=1',
'user-agent' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])',
'accept-encoding' => 'gzip, br',
'accept' => '*/*',
'cf-ray' => 'a41dbd4dfb0c5aae-CMH',
'x-forwarded-for' => '216.73.216.103',
'host' => 'www.ybb.press',
'content-length' => '',
'content-type' => '',
)
- [ PARAM ] array (
'catename' => 'security',
'id' => '2042',
)
- [ RUN ] think\addons\Route->execute[ /www/wwwroot/yebinbing/vendor/fastadminnet/fastadmin-addons/src/addons/Route.php ]
- [ LANG ] /www/wwwroot/yebinbing/public/../application/common/lang/zh-cn/addon.php
- [ BEHAVIOR ] Run app\common\behavior\Common @addon_begin [ RunTime:0.004660s ]
- [ LANG ] /www/wwwroot/yebinbing/addons/cms/lang/zh-cn.php
- [ DB ] INIT mysql
- [ VIEW ] /www/wwwroot/yebinbing/addons/cms/view/default/show_article.html [ array (
0 => 'config',
1 => 'user',
2 => 'site',
3 => '__CHANNEL__',
4 => 'isWechat',
5 => 'canonical_url',
6 => '__ARCHIVES__',
7 => '__MODEL__',
) ]
- [ SESSION ] INIT array (
'id' => '',
'var_session_id' => '',
'prefix' => 'think',
'type' => '',
'auto_start' => true,
)
- [ BEHAVIOR ] Run \addons\cms\Cms @view_filter [ RunTime:0.000418s ]
- [ BEHAVIOR ] Run \addons\shop\Shop @view_filter [ RunTime:0.000138s ]

0.438669s
发表评论 取消回复