-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
Description
Hello,
When doing some load testing of kafka bridge on kubernetes and doing some rolling restart, some messages are not successful (http code 502) and so some data are lost..
Steps to reproduce:
- Deploy 2 replicas of kafka-bridge
- Use tool like fortio to generate multiple http calls over some time.
- While generating http calls, launch a rolling restart of the kafka bridge deployment
I tested to patch the kafka-bridge deployment with a preStop hook like the one below and didn't see any dropped messages anymore.
lifecycle:
preStop:
exec:
command: ["sh", "-c", "sleep 10"]
The issue is we cannot specify pre stop hook in the kafkabridge custom resource for now.
However, a cleaner solution seems to be to implement vertx graceful shutdown but I didn't tested this one as it requires code changes.
What do you think ?