Re: [DISCUSS] Minimum constraint for segment.ms

2024-04-09 Thread Tommi Vainikainen
Hi, I support changing constraints for mentioned settings. I've noticed that first producing big messages, and then setting `segment.bytes` to low value causes unwanted consequences. I did not notice that it would delete all the records, but I did not set it to one, but instead the case is

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-19 Thread Doğuşcan Namal
Hi all, There are also message.max.bytes, replica.fetch.max.bytes and their derivatives requires a constraint on their maximum value as the maximum total memory on the instance. Otherwise, these could cause out of memory errors on the instance. Do you think this is in scope here as well? On

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-14 Thread Haruki Okada
Hi, Divij. This isn't about config default value/constraint change though, I found there's a behavior discrepancy in max.block.ms config, which may cause breaking change if we change the behavior. The detail is described in the ticket: https://issues.apache.org/jira/browse/KAFKA-16372 What do

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-13 Thread Kamal Chandraprakash
One use case I see for setting the `segment.bytes` to 1 is to delete all the records from the topic. We can mention about it in the doc to use the `kafka-delete-records` API instead. On Wed, Mar 13, 2024 at 6:59 PM Divij Vaidya wrote: > + users@kafka > > Hi users of Apache Kafka > > With the

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-13 Thread Divij Vaidya
+ users@kafka Hi users of Apache Kafka With the upcoming 4.0 release, we have an opportunity to improve the constraints and default values for various Kafka configurations. We are soliciting your feedback and suggestions on configurations where the default values and/or constraints should be

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-13 Thread Divij Vaidya
Thanks for the discussion folks. I have started a KIP https://cwiki.apache.org/confluence/display/KAFKA/KIP-1030%3A+Change+constraints+and+default+values+for+various+configurations to keep track of the changes that we are discussion. Please consider this as a collaborative work-in-progress KIP and

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-13 Thread Christopher Shannon
I think it's a great idea to raise a KIP to look at adjusting defaults and minimum/maximum config values for version 4.0. As pointed out, the minimum values for segment.ms and segment.bytes don't make sense and would probably bring down a cluster pretty quickly if set that low, so version 4.0 is

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-13 Thread Sergio Daniel Troiano
hey guys, Regarding to num.recovery.threads.per.data.dir: I agree, in our company we use the number of vCPUs to do so as this is not competing with ready cluster traffic. On Wed, 13 Mar 2024 at 09:29, Luke Chen wrote: > Hi Divij, > > Thanks for raising this. > The valid minimum value 1 for

Re: [DISCUSS] Minimum constraint for segment.ms

2024-03-13 Thread Luke Chen
Hi Divij, Thanks for raising this. The valid minimum value 1 for `segment.ms` is completely unreasonable. Similarly for `segment.bytes`, `metadata.log.segment.ms`, `metadata.log.segment.bytes`. In addition to that, there are also some config default values we'd like to propose to change in v4.0.