diurnal_load#

eclypse.policies.workload.diurnal_load(*, amplitude, period, baseline=1.0, node_assets=None, edge_assets=None)[source]#

Apply sinusoidal multiplicative load over a period.

Parameters:
  • amplitude (float) – Peak sinusoidal multiplier offset.

  • period (int) – Number of calls in one cycle.

  • baseline (float) – Base multiplier around which the load oscillates.

  • node_assets (str | list[str] | None) – Optional node asset key selector.

  • edge_assets (str | list[str] | None) – Optional edge asset key selector.

Returns:

Stateful policy that applies diurnal load.

Return type:

UpdatePolicy