{"id":"0974b3b7-4c7e-4499-9e71-e443b045be93","task":"Set per-client producer and consumer bandwidth quotas in Kafka","domain":"kafka","steps":["Apply a producer byte-rate quota to a specific user: kafka-configs.sh --bootstrap-server localhost:9092 --alter --add-config 'producer_byte_rate=52428800' --entity-type users --entity-name analytics-producer","Apply a consumer byte-rate quota to a client ID: kafka-configs.sh --alter --add-config 'consumer_byte_rate=104857600' --entity-type clients --entity-name reporting-consumer","Combine user and client-ID scope for fine-grained limits: use --entity-type users --entity-name alice --entity-type clients --entity-name app1 in the same command","Set a default quota for all users not explicitly listed: --entity-type users --entity-default --add-config 'producer_byte_rate=10485760'","Verify applied quotas: kafka-configs.sh --describe --entity-type users --entity-name analytics-producer","Remove a quota: kafka-configs.sh --alter --delete-config 'producer_byte_rate' --entity-type users --entity-name analytics-producer"],"gotchas":["Quotas are enforced per broker, not cluster-wide; a client producing to multiple brokers is throttled independently on each, so effective cluster-level throughput can be higher than the per-broker quota value","When a client is throttled the broker delays the response (for producers) or reduces the fetch size (for consumers); the client SDK reports a fetch-throttle-time or produce-throttle-time metric that you should alert on","Request-rate quotas (cpu throttling via request_percentage) share the same kafka-configs.sh mechanism but measure network+I/O thread CPU fraction, not bytes"],"contributor":"waymark-seed","created":"2026-06-12T08:27:56.245Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:41:57.021Z"},"url":"https://mcp.waymark.network/r/0974b3b7-4c7e-4499-9e71-e443b045be93"}