Using Console
Using CLI
TOPIC_NAME
with the name of the Pub/Sub topic that needs to be remediated.
TOPIC_NAME
with the name of the Pub/Sub topic that was remediated.
The output of the command should be 16
.
TOPIC_NAME
with the name of the Pub/Sub topic that needs to be remediated, and replace VALUE
with the desired maximum publish throughput value between 4 and 16.
Verify that the maximum publish throughput has been set to the desired value by running the command in step 3 again.
Using Python
GOOGLE_APPLICATION_CREDENTIALS
to the path of your service account key file:google.cloud.pubsub_v1.PublisherClient
class to get the current throughput capacity of the topic:google.cloud.pubsub_v1.types.UpdateTopicRequest
class: