Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Private_Edition_flag.png

Overview

Usage Engine Private Edition now supports automatic batch scaling, making it possible to increase or decrease processing capacity as needed without any manual intervention. The new solution uses Kafka for both transaction/state and working storage for aggregation and duplication data. The feature consists of several new agents that work in the same way as their existing counterparts but with an extra Storage state in the profile. These new agents cannot be grouped in the same workflows as regular agents because they have different storage.

Note that you cannot mix standard agents with scaling agents in the same workflow. Workflows with standard agents save the state in PE. Workflows with batch agents save the state in Kafka.

How it works

Assume that you have a batch use case where you collect files, and have to do duplication checks and aggregation. You want to be able to scale. You need 2 or 3 WFs. In the picture below we use 3 WFs.

  • What prerequisites for Kafka?

batchScaling.png
  1. The File collection workflow(s) will use the ID Fields (e.g. customer id?) to determine which shard/partition a UDR belongs to.

  2. The number of partitions is determined using the Max Scale Factor parameter. The number of partitions will be the same for all different storages needed:

    1. Passing of UDRs between workflows.

    2. Duplicate UDR keys.

    3. Aggregation Sessions

  3. The Duplication Check workflow(s) will check for duplicates across all partitions. Checked UDRs are placed in another topic with the same corresponding partitions as the topic the workflow collected from. (The Duplication Keyes are saved in a separate topic with the same number of partitions having the same ID fields.)

  4. The Aggregation workflow(s) will collect from an inter-workflow topic, and work against a separate aggregation session storage topic.

Subsections

This section contains the following subsections:

  • Configuration

  • Batch scaling agents

  • No labels