Skip to content

Latest commit

 

History

History
72 lines (54 loc) · 2.38 KB

File metadata and controls

72 lines (54 loc) · 2.38 KB

OSS Memorystore Cluster Autoscaler

Autoscaler

Forward messages from Cloud Scheduler to the Poller function topic.
Home · Poller component · Scaler component · Forwarder component · Terraform configuration · Monitoring

Table of Contents

Overview

The Forwarder function takes messages published to PubSub from Cloud Scheduler, checks their JSON syntax and forwards them to the Poller PubSub topic. The topic can belong to a different project from the Scheduler.

Architecture

architecture-forwarder

The Memorystore Cluster instances reside in a given application project.

  1. Cloud Scheduler lives in the same project as the Memorystore Cluster instances.

  2. Cloud Scheduler publishes its messages to the Forwarder topic in the same project.

  3. The Forwarder Cloud Function reads messages from the Forwarder topic, and

  4. Forwards them to the Polling topic. The Polling topic resides in a different project.

  5. The Poller function reads the messages from the polling topic and further continues the process as described in the main architecture section.

It is important to note that Autoscaler infrastructure is now distributed across several projects. The core components reside in the Autoscaler project An instance of Cloud Scheduler, the Forwarder topic and the Forwarder Function reside in each of the application projects.

Configuration parameters

Using the Forward function forwards to the PubSub specified in the environment variable POLLER_TOPIC.

Required

Key Description
POLLER_TOPIC PubSub topic the Poller function listens on