You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we need to refresh several thousands of facts, this creates load spikes we want to avoid
Proposed solution
make fact_expire and fact_refresh per environment settings
add a fact_remove parameter, that expresses how long after expiry the parameter should be kept (default to one week)
add a fact_rate_limiter that expresses how many facts per hour any agent can get. (float) The idea is to never exceed this rate. (i.e. the effective wait time between requests is at least 1/fact_rate_limiter)
never have more than one fact refresh in flight per agent (i.e. make it asynchronous through and through, the call from server to agent already is)
general improvements
make sure facts that are not in the active version are not refreshed
move the lineself._fact_resource_block_set[resource_id] = now closer to the if statement, to prevent races
Problem
When we need to refresh several thousands of facts, this creates load spikes we want to avoid
Proposed solution
general improvements
self._fact_resource_block_set[resource_id] = now
closer to the if statement, to prevent racesinmanta-core/src/inmanta/server/agentmanager.py
Line 852 in f8c6213
The text was updated successfully, but these errors were encountered: