<?php

// MANAGE SYSTEM SLEEP IF REQUESTS COUNT (PER MINUTE) IS TOO HIGH /////////////////////////////////

// up to this rpm no sleep is applied
$CFG['RemoteData']['EntityManagementWs']['minRqPerMinute'] = 20;

// above this rpm, the sleep is no longer increased
$CFG['RemoteData']['EntityManagementWs']['maxRqPerMinute'] = 60;

// the max sleep to be applied on maxRqPerMinute
$CFG['RemoteData']['EntityManagementWs']['maxSleepTime'] = 2; // in seconds, but the value is float so you can type anything here, for eg. it can be 0.5

// The sleep time is determined using thiw algo:
// 1. less than minRqPerMinute requests per minute - no sleep;
// 2. from minRqPerMinute to maxRqPerMinute requests per minute - sleep is constantly increased so that minRqPerMinute has a sleep of 0 and maxRqPerMinute has maxSleepTime [ms];
// 3. greater than maxRqPerMinute requests per minute - maxSleepTime [ms];

