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
{{ message }}
Repository navigation
Commit dd9558e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/CONFIGURATION.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,8 @@ Current keys:
94
94
|`watch_non_git`|`false`| Also poll project roots that are **not git repositories**. By default the watcher only follows git projects, so a project indexed from a plain directory is never refreshed after its first index — reindex it manually with `index_repository`. Set `true` to poll such roots on the same adaptive cadence with a file-tree scan: the indexer's own discovery walk (same skip lists, `.gitignore` and `.cbmignore` rules) hashed over each file's path, size and mtime. Any change reindexes once; paths the indexer skips (including cbm's own `.codebase-memory/` output) never trigger. The first poll after the daemon starts reindexes each such project once, since nothing records which tree state the index holds. The scan walks the whole tree every poll, so it costs more than git polling on very large trees. Read once when the daemon starts, like `watcher_enabled`. |
95
95
|`index_max_files`|`off`| Optional maximum number of accepted source files in one discovery run. |
96
96
|`index_max_source_mb`|`off`| Optional maximum accepted source size in MiB in one discovery run. |
97
+
|`index_max_rss_mb`|`off`| Optional maximum charged memory in MiB for the complete contained index-worker process tree (`64..1048576`). On macOS this is phys_footprint, not resident size. |
98
+
|`index_max_duration_seconds`|`off`| Optional maximum wall-clock duration in seconds for the whole index request, including crash/hang recovery (`1..86400`). Like `index_max_rss_mb`, it stops a worker only before it starts to publish the new index; see [INDEX_RESOURCE_LIMITS.md](INDEX_RESOURCE_LIMITS.md). |
97
99
98
100
For a watched project, `index_status` names the polling method in `watch.strategy`:
99
101
`git` (HEAD and dirty-state polling), `tree` (a non-git root polled by the
@@ -135,11 +137,13 @@ has not run yet).
135
137
>`auto_index` still runs, and `index_repository` stays available for manual
136
138
> reindexing.
137
139
138
-
The two`index_max_*` settings are independent and disabled by default. They
140
+
The four`index_max_*` settings are independent and disabled by default. They
139
141
apply to explicit indexing, automatic indexing, and watcher re-indexing, but not
140
142
to `cross-repo-intelligence`, which does not scan repository source files.
141
-
Equality is allowed; exceeding either setting fails the complete index request
142
-
and preserves any previously serving database. See
143
+
Equality is allowed; exceeding any setting fails the complete index request and
144
+
preserves any previously serving database. Worker RSS covers descendants and is
145
+
not the same as the internal `CBM_MEM_BUDGET_MB` allocation budget. Total
146
+
duration is independent of the existing 15-minute no-log-progress timeout. See
143
147
[Index resource limits](INDEX_RESOURCE_LIMITS.md) for counting, validation, and
0 commit comments