You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run a process to write messages to redpanda for pressure test, the memory usage is very high with kafka._Cfunc_GoBytes. It's so weird.
How to reproduce
Run redpanda with HDD that is lower write performance, then read messages and write to redpanda.
producer code:
p, err := kafka.NewProducer(kafkaconf)
if err != nil {
return err
}
go func() {
i := 0
for {
e, ok := <-ck.producer.Events()
if !ok {
zap.S().Infof("producer.Events() exited")
return
}
switch ev := e.(type) {
case *kafka.Message:
m := ev
if m.TopicPartition.Error != nil {
zap.S().Errorf("Delivery %v failed: %v, data size: %vbytes\n", *m.TopicPartition.Topic, m.TopicPartition.Error, len(m.Value))
}
default:
zap.S().Warnf("Ignored event: %v", ev)
}
}
}()
send message to chan
for m := range readChan {
p.ProduceChannel() <- m
}
Description
I run a process to write messages to redpanda for pressure test, the memory usage is very high with
kafka._Cfunc_GoBytes
. It's so weird.How to reproduce
Run redpanda with HDD that is lower write performance, then read messages and write to redpanda.
producer code:
send message to chan
Client configuration:
Checklist
Please provide the following information:
v1.8.2
):The text was updated successfully, but these errors were encountered: