Creating a file registry service

Overview

A file registry service is a simple store of key-values pairs where keys are files (i.e., wrench::WorkflowFile) and values are file locations (i.e., wrench::FileLocation). It is used to keep track of the location of file copies. In real-world deployments, this service is often called a "replica catalog".

Creating a file registry service

In WRENCH, a file registry service is defined by the wrench::FileRegistryService class, an instantiation of which requires the following parameters:

The example below creates an instance that runs on host ReplicaCatalog. Furthermore, the service is configured so that looking up an entry takes 100 flops of computation, and so that the message sent to the service to lookup an entry is 1KiB:

auto fr_service = simulation->add(
new wrench::FileRegistryService("ReplicaCatalog",
{{wrench::BareMetalComputeServiceMessagePayload::FILE_LOOKUP_REQUEST_MESSAGE_PAYLOAD, 1024}});

See the documentation of wrench::FileRegistryServiceProperty and wrench::FileRegistryServiceMessagePayload for all possible configuration options.

static const std::string LOOKUP_COMPUTE_COST
The computational cost, in flops, of looking entries for a file.
Definition: FileRegistryServiceProperty.h:28
A file registry service (a.k.a. replica catalog) that holds a database of which files are available a...
Definition: FileRegistryService.h:35