Module: Freno::Throttler::Mapper

Defined in:
lib/freno/throttler/mapper.rb

Overview

A Mapper is any object that responds to ‘call`, by receiving a context object and returning a list of strings, each of which corresponds to the store_name that will be checked in freno.

See github.com/github/freno/blob/master/doc/http.md#client-requests for more context.

As an example we could use a mapper that will receive as a context a set of [table, shard_id] tuples, and could return the list of all the stores where that shards exist.

Defined Under Namespace

Classes: Identity