Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support for replication using MirrorMaker 2

未关闭
#693 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
kubernetes, rust

调研方向

首先阅读 docs/modules/kafka/examples/mirror_maker/ 中现有的说明,以及 issue 中关于 CRD、专用模式、发现、身份验证和复制方向的未决问题。然后检查 operator 如何定义 CRD、部署工作负载和编写集成测试。完成的标准是原生支持专用模式的 MirrorMaker 2,更新或移除示例文档,并添加一个在两个 SDP Kafka 集群之间进行复制的集成测试。

由索引模型根据 Issue 内容生成。

描述

customer-request

Run MirrorMaker 2 as a Stacklet

We do have NiFi in the stack which can be used for most data moving operations but it'd be overhead if all you need is to mirror two Kafkas.
So, this is about adding native support for MirrorMaker2 to SDP.

This is also useful for migrating an existing Kafka into Stackable.

FYI: We have internal notes from #923 in docs/modules/kafka/examples/mirror_maker/ which might or might not help but need updating with this either way.

Scope

  • A CRD that runs MirrorMaker 2 in dedicated mode, replicating between Kafka clusters
    • See the open questions below
  • Docs and an integration test replicating between two SDP Kafka clusters.
  • Update/delete docs/modules/kafka/examples/mirror_maker/

Expected effort

10 days.
If it takes longer, stop and let me know.

Out of scope

  • Kafka Connect
  • Per-connector actions: restart, pause, resume, stop, offset rewind

Open questions

  • CRD name (MirrorMakerCluster?)
  • Do we need Discovery 2.0 for this?
  • How elaborate is the CRD: do we model the connector options as real structs or is all of that done using overrides.
  • dedicated.mode.enable.internal.rest defaults to false and is required above one replica. Always on, or only when replicas exceed one?
  • Kerberos?
  • Both directions in one CR, or one CR per direction?

Possible approach

Strimzi implements this differently than I would and Claude believes that this is because of KAFKA-9981 which was still open at the time they implemented it and which would make the dedicated mode I propose here unusable. They are building a Kafka Connect cluster with MirrorMaker config.
I propose we use the dedicated MirrorMaker mode.

Kafka Connect is purely configured using a REST API so we'd need to have the whole access delegation story and a client in the operator to talk to connect to configure it etc.
MirrorMaker can be configured using a file. That seems way more convenient.

Downside(ish): Connect exposes a web server with read & write stuff (status and pause/resume etc.). MirrorMaker does not. But we could easily patch those lines in. The patch looks simple. I don't want that for v1 though.

This is the direction I'd prefer. If you disagree tell me before implementation starts.

Notes

[!NOTE]
These are notes that came out of the Claude research

  • Connect and MirrorMaker 2 are already in our images
  • In dedicated mode the properties file is the source of truth. MirrorHerder extends
    DistributedHerder and, on becoming leader, diffs the desired connector configs against the
    config topic and replaces them. A changed properties file therefore takes effect on restart or leader change which I believe matches our commons operator restarter pattern
  • One JVM holds a Worker and a herder per replication flow, so several flows do not require
    several sets of pods.
  • Connector and task state is available as a metric (connector-metrics and
    connector-task-metrics, attribute status), which covers most of what a CR status would want
    without any REST API. The failure trace is not a metric; it is in status.storage.topic.
主要语言
Rust
星标
28
派生
8
平均合并
2 天 12 小时
30 天内合并 PR
9

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stackabletech/kafka-operator 的其他 Issue

查看 stackabletech/kafka-operator 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。