Skip to content

Pub/Sub: Server fails to deliver messages in a timely fashion #3025

Description

@dhoard-papajohns

I have a Pub / Sub subscription with an ack deadline of 5 minutes.

Stack Driver shows there 7k+ unacknowledged messages, with the oldest message over 2.5 hours old.

My code, which is calling the REST pull API directly shows that messages are flowing but very slowly. When the code pulls messages, it's only a few at a time, some with large latency values (11 minutes, 22 minutes, etc. from publish time to receive time.)

gcloud beta pubsub subscriptions pull <subscription name> --limit 1000 --auto-ack | grep eventType | wc -l returns 0 message most of the time.

I would expect that with an ack deadline of 5 minutes, I would be able to pull bursts of messages ( up to maxMessages) every 5 minutes.

I was originally using the official Google Pub / Sub library (latest version) with the Subscriber class but would see random large latency issues.

I have had an open issue with support for at least 2 weeks, with no resolution.

The latest feedback from support was that messages aren't getting acked in time ... which based on my logging ... is because they aren't getting delivered in time / getting delivered already past the ack deadline.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions