Comments (6)
What version are you using?
from kafka-pixy.
Have you acknowledged all consumed messages before stopping? Alternatively you could have used auto_ack=true when consuming. Before stopping kafka-pixy
waits for acknowledgments of consumed messages for proxies.<proxy-name>.consumer.ack_timeout which is 5 minutes by default.
from kafka-pixy.
What version are you using?
v0.17.0
Before stopping kafka-pixy waits for acknowledgments of consumed messages for proxies..consumer.ack_timeout which is 5 minutes by default.
That seems like a long time for a process to wait after a SIGTERM (especially without logging an explanatory message).
I'd expect kafka-pixy to stop promptly, dropping the connection, and for the client's Ack to fail with a gRPC error so the client would know the Ack didn't succeed.
What does "before retrying" mean in this context:
# Period of time that Kafka-Pixy should wait for an acknowledgement
# before retrying.
ack_timeout: 5m
from kafka-pixy.
That seems like a long time for a process to wait after a SIGTERM (especially without logging an explanatory message).
If kafka-pixy
stops immediately that would result in unacknowledged messages to be offered to another client later, possibly by another kafka-pixy
instance, hence it is advisable to set this parameter to be greater than the longest it takes to handle your messages.
What does "before retrying" mean in this context:
It means that if a message is not acknowledged in ack_timeout
time, it will be offered by kafka-pixy
again.
from kafka-pixy.
Thanks for the explanation. I agree it's working as designed.
My suggested changes are:
- clarify the wording of the
ack_timeout
comments by explaining the effect, both on messages and on shutdown. - if a shutdown is blocked waiting on
ack_timeout
log a message to that effect. - add an config option to shutdown more aggressively and document the consequences.
from kafka-pixy.
I agree with the first two suggestions, however we will not implement the third, because a user have an option to auto ack consumed messages.
from kafka-pixy.
Related Issues (20)
- gRPC and TCP listen addresses are not used HOT 1
- move to go mod HOT 4
- Update Version on DockerHub HOT 8
- Kafka header names are not case sensitive in REST API HOT 5
- failed to run and build in window HOT 1
- Question: Perf test metrics HOT 5
- TLS between kafka-pixy and kafka HOT 1
- ConsumeNAck drops the first message HOT 15
- Quick start for Java ? HOT 1
- Getting issue with docker HOT 5
- Passing config HOT 1
- strange consume behavior with freshly created consumer group HOT 4
- kafkaPeers, zookeeperPeers - can't set multiple comma separated peers HOT 1
- Consumer connect to localhost instead of specified kafka endpoint
- Aggregation, how it works?
- Long pauses on retrieving messages
- Negative Offsets
- How To Read and Understand Source Code HOT 1
- Question: what is the level of effort to upgrade to kafka 2.6.2?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka-pixy.