Skip to content

Commit f0c50b0

Browse files
committed
Add documentation for configuring throttling rate
Signed-off-by: Tushar Goel <[email protected]>
1 parent 4ac5efc commit f0c50b0

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Sphinx>=3.3.1
22
sphinx-rtd-theme>=0.5.0
3-
doc8>=0.8.1
3+
doc8>=0.8.1

docs/source/misc.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,20 @@ VulnerableCode first checks the file at `/etc/vulnerablecode/.env` and if not
4646
present, it will attempt to load a `.env` file from the checkout directory.
4747

4848
The file at `/etc/vulnerablecode/.env` has precedence.
49+
50+
51+
Throttling rate configuration
52+
-------------------------------
53+
54+
The default throttling settings are defined in ``settings.py``.
55+
56+
To override the default settings, add env variables in ``.env`` file
57+
define the settings there. For example::
58+
59+
ALL_VULNERABLE_PACKAGES_THROTTLING_RATE = '1000/hour'
60+
BULK_SEARCH_PACKAGE_THROTTLING_RATE = '10/minute'
61+
PACKAGES_SEARCH_THROTTLING_RATE = '1000/second'
62+
VULNERABILITIES_SEARCH_THROTTLING_RATE = '1000/hour'
63+
ALIASES_SEARCH_THROTTLING_RATE = '1000/hour'
64+
CPE_SEARCH_THROTTLING_RATE = '10/minute'
65+
BULK_SEARCH_CPE_THROTTLING_RATE = '10/minute'

0 commit comments

Comments
 (0)