$treeview $search $mathjax $extrastylesheet
artdaq  v3_04_00
$projectbrief
$projectbrief
$searchbox

artdaq::CapacityTestPolicy Class Reference

A RoutingMasterPolicy which tries to fully load the first receiver, then the second, and so on. More...

Inheritance diagram for artdaq::CapacityTestPolicy:
artdaq::RoutingMasterPolicy

List of all members.

Public Member Functions

 CapacityTestPolicy (fhicl::ParameterSet ps)
 CapacityTestPolicy Constructor.
virtual ~CapacityTestPolicy ()
 Default virtual Destructor.
detail::RoutingPacket GetCurrentTable () override
 Apply the policy to the current tokens.

Detailed Description

A RoutingMasterPolicy which tries to fully load the first receiver, then the second, and so on.

Definition at line 11 of file CapacityTest_policy.cc.


Constructor & Destructor Documentation

artdaq::CapacityTestPolicy::CapacityTestPolicy ( fhicl::ParameterSet  ps  )  [explicit]

CapacityTestPolicy Constructor.

Parameters:
ps ParameterSet used to configure the CapacityTestPolicy
		 * CapacityTestPolicy accepts the following Parameters:
		 * "tokens_used_per_table_percent" (Default: 50): Percentage of available tokens to be used on each iteration.
		 * 

Definition at line 45 of file CapacityTest_policy.cc.


Member Function Documentation

detail::RoutingPacket artdaq::CapacityTestPolicy::GetCurrentTable (  )  [override, virtual]

Apply the policy to the current tokens.

Returns:
A detail::RoutingPacket containing the Routing Table

CapacityTestPolicy will assign available tokens from the first receiver, then the second, and so on until it has assigned tokens equal to the inital_token_count * tokens_used_per_table_percent / 100. The idea is that in steady-state, the load on the receivers should reflect the workload relative to the capacity of the system. (i.e. if you have 5 receivers, and 3 of them are 100% busy, then your load factor is approximately 60%.)

Implements artdaq::RoutingMasterPolicy.

Definition at line 50 of file CapacityTest_policy.cc.


The documentation for this class was generated from the following file:

Generated on 5 Mar 2019 for artdaq by  doxygen 1.6.1