manager: add option to rate limit daemon-reload

Reloading is a heavy-weight operation, and currently it is not
possible to stop an orchestrator from spamming reload requests.
Add configuration options to allow rate-limiting.
This commit is contained in:
Luca Boccassi
2022-12-13 18:13:10 +00:00
parent 9524c2fd43
commit 856bfaeb05
8 changed files with 79 additions and 0 deletions
+3
View File
@@ -461,6 +461,9 @@ struct Manager {
struct restrict_fs_bpf *restrict_fs;
char *default_smack_process_label;
/* Allow users to configure a rate limit for Reload() operations */
RateLimit reload_ratelimit;
};
static inline usec_t manager_default_timeout_abort_usec(Manager *m) {