Kafka gateway: configurable limits that differ from Kafka

Aperta
#4,530 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kafka, rust
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Rust
Stelle
5.2k
Fork
502
Merge medio
3g 11h
PR unite (30g)
143

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iggy

Tutte le issue di apache/iggy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.