From f0a10a153293a02170c5af9a09e311998958c78d Mon Sep 17 00:00:00 2001 From: Anton M Date: Tue, 21 Nov 2023 22:11:10 +0400 Subject: [PATCH] add result_batch_size into docs --- docs/plugin_settings.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/plugin_settings.md b/docs/plugin_settings.md index d59f1b6..957b51d 100644 --- a/docs/plugin_settings.md +++ b/docs/plugin_settings.md @@ -27,6 +27,16 @@ The amount of seconds system will wait between executing each Compliance Test. Compliance Test execution may cause a lot of DB queries, because Compliance Test is dynamic by its nature and the system cannot prefetch all the required instances before the test. If you're realizing that `Run Compliance Tests` script overwhelms your DB with a lot of queries, you can adjust this setting to spread the queries over time. + +# result_batch_size + +*Default:* `500` + +*Type:* `int` + +Execution of the Tests and producing Test Results is carried out in batches. As soon as each batch reaches its maximum size (specified via this variable) all the Test Results within a batch will be uploaded into a DB. + + ### store_reports *Default:* `5` @@ -66,6 +76,7 @@ PLUGINS_CONFIG = { 'validity': { 'git_folder': '/opt/git/', 'sleep_between_tests': 0.02, + 'result_batch_size': 300, 'store_reports': 7, 'store_last_results': 8, },