amulya349
amulya349

Reputation: 1238

Autoscaling GCE Instance groups based on multiple Cloud pub/sub queues

I found in the docs to autoscale based on number of undelivered messages in a topic. (Autoscaling GCE Instance groups based on Cloud pub/sub queue).

I want to know if the following scenario is possible: I have two pub/sub queues and I want to write an autoscaling condition that if any one of the queues has no_undelivered_messages > 150, it should scale i.e it should scale if num_messages in queue1>150 OR num_messages in queue2.

Please help with this case if it's possible. Thanks

Upvotes: 1

Views: 208

Answers (1)

John Hanley
John Hanley

Reputation: 81346

You can scale based upon metrics using the AND operator but not the OR operator.

Per-group metric filtering requirements

Upvotes: 0

Related Questions