nsqio / go-nsq

The official Go package for NSQ
MIT License
2.59k stars 444 forks source link

msg-timeout or max-heartbeat-interval parameter cause msg requeue? #226

Closed zdavb closed 6 years ago

zdavb commented 6 years ago

I am confused by msg-timeout and max-heartbeat-interval parameters for a big msssage(cost too mush time) which parameter would be the reason to cause msg to requeue. I am using pynsq client , the msg consumer of pc99 is about 40s, then I found many msg to requeue. Besides: I set the max-in-flight = 600, maybe it's wrong, but the msg-timeout start time when msg pushed to client(not processed) or when it really processed. I read all about document in nsq.io, But I still confused, can any one help me