Skip to content

Commit fb0b75a

Browse files
committed
Add feedback from the team
1 parent db0ed7e commit fb0b75a

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

docs/code_insights/types/inventory-stats.mdx

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,24 @@ Now, you can perform all the actions you can on other Code Insights, such as edi
2424

2525
## Inventory environment variables
2626

27-
<Callout type="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+
<Callout type="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>
2828

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.
3030

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:
3232

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
33+
- `USE_ENHANCED_LANGUAGE_DETECTION` ==> `"disableEnhancedLanguageDetection"`
34+
- defaults to `false`
35+
- `GET_INVENTORY_GIT_SERVER_CONCURRENCY` ==> `"gitServerConcurrency"`
36+
- defaults to `4`
37+
- `GET_INVENTORY_REDIS_CONCURRENCY` ==> `"redisConcurrency"`
38+
- defaults to `20`
39+
- `GET_INVENTORY_MAX_INV_IN_MEMORY` ==> `"maxInventoryInMemory"`
40+
- defaults to `1000`
41+
- `GET_INVENTORY_TIMEOUT` ==> `"timeoutInMinutes"`
42+
- defaults to `5`
3843

39-
Here's an example from the site configuration section:
44+
Here's an example of the site configuration section:
4045

4146
```json
4247
"inventory" : {
@@ -49,3 +54,11 @@ Here's an example from the site configuration section:
4954
```
5055

5156
<Callout type="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

Comments
 (0)