Kafka gateway: configurable limits that differ from Kafka

未关闭
#4,530 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
50/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
kafka, rust
领域
backend

调研方向

The issue names no files. Start by finding where max_frame_size, the group caps and the CreateTopics limits are defined in the Kafka gateway code, and check how the kafka.cg.<group> offset group name is built. Done means each group cap and CreateTopics cap can be set by an environment variable, and each limit is documented next to its Kafka value. Settle the variable names with a maintainer before writing code.

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

描述

gateways

Summary

Some gateway limits are lower than Kafka's, so the gateway refuses requests that Kafka accepts:

  • max_frame_size is 8 MiB. Kafka accepts requests up to socket.request.max.bytes, which is 100 MiB.
  • The group caps have no environment variables: 1000 groups, 1000 members per group and 10,000 in total, 64 KiB per member blob, and 4 MiB per group. A large Kafka Streams assignment can pass 64 KiB.
  • CreateTopics takes at most 1000 partitions per topic and 100 topics per request.
  • A group id is at most 246 bytes, because its Iggy offset group kafka.cg.<group> must fit in 255 bytes. Kafka accepts longer ids.
  • Fetch polls at most 1000 messages per partition at a time, returns uncompressed batches, and has no fetch sessions. That costs bandwidth and CPU, not correctness.

Scope

  • Environment variables for the group caps and the CreateTopics caps
  • Document each limit next to the Kafka value
主要语言
Rust
星标
5.2k
派生
502
平均合并
3 天 5 小时
30 天内合并 PR
152

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

apache/iggy 的其他 Issue

查看 apache/iggy 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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