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
Copy file name to clipboardExpand all lines: docs/code_insights/types/inventory-stats.mdx
+22-9Lines changed: 22 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,24 @@ Now, you can perform all the actions you can on other Code Insights, such as edi
24
24
25
25
## Inventory environment variables
26
26
27
-
<Callouttype="note">We have made some changes to the inventory environment variables for our self-hosted customers. Cloud customers are not impacted by this change.</Callout>
27
+
<Callouttype="note">Inventory environment variables have been moved into site configuration. This impacts any self-hosted customer using these environment variables. Cloud customers are not impacted by this change.</Callout>
28
28
29
-
If you are a self-hosted Sourcegraph Enterprise user, we have moved the inventory environment variables into the **Site configuration**settings in your**Site admin**page. You can find it under the **inventory**section.
29
+
If you are a self-hosted Sourcegraph Enterprise user, we have moved the inventory environment variables into the **inventory**section of the**Site configuration**settings in your **Site admin**page.
30
30
31
-
Here's a list of all the inventory environment variables and their default values:
31
+
Here's a list oI the Inventory environment variables and their new site configuration settings, with default values:
32
32
33
-
-`USE_ENHANCED_LANGUAGE_DETECTION: "disableEnhancedLanguageDetection"`: defaults to false
34
-
-`GET_INVENTORY_GIT_SERVER_CONCURRENCY: "gitServerConcurrency"`: defaults to 4
35
-
-`GET_INVENTORY_REDIS_CONCURRENCY: "redisConcurrency"`: defaults to 20
36
-
-`GET_INVENTORY_MAX_INV_IN_MEMORY: "maxInventoryInMemory"`: defaults to 1000
37
-
-`GET_INVENTORY_TIMEOUT: "timeoutInMinutes"`: defaults to 5
Here's an example from the site configuration section:
44
+
Here's an example of the site configuration section:
40
45
41
46
```json
42
47
"inventory" : {
@@ -49,3 +54,11 @@ Here's an example from the site configuration section:
49
54
```
50
55
51
56
<Callouttype="info">To accommodate default values in your Site configuration vs. environment variables, the positive `USE_ENHANCED_LANGUAGE_DETECTION` env var has been changed to the negative `disableEnhancedLanguageDetection`.</Callout>
57
+
58
+
There is a new environment variable for managing `worker` resources when processing Inventory insights:
59
+
60
+
```json
61
+
INSIGHTS_INVENTORY_BATCH_SIZE
62
+
```
63
+
64
+
This environment variable controls the number of repositories to process in a single batch for inventory insights in the code insights worker. It affects memory usage while processing repos. Lower number is less memory used. It does not affect the speed of the process.
0 commit comments