docs(config): add missing examples, fix structure and typos in configuration.md#440
docs(config): add missing examples, fix structure and typos in configuration.md#440
Conversation
- Add `#### Example` sections to VKEY_MAX_ENTITY_COUNT, CMD_INFO, MAX_INFO_QUERIES, IMPORT_FOLDER, TEMP_FOLDER, JS_HEAP_SIZE, JS_STACK_SIZE (were previously undocumented) - Add `---` horizontal-rule separators after VKEY_MAX_ENTITY_COUNT and CMD_INFO for consistency with the rest of the page - Fix typo: "It's" → "Its" in CMD_INFO description - Fix missing trailing period in MAX_INFO_QUERIES range description - Add Docker volume-mount note to IMPORT_FOLDER explaining that LOAD CSV silently fails without the mount (src: EMSG_FAILED_TO_LOAD_CSV) - Relocate `## Query Configurations` / `### Query Timeout` section to the end of the page so EFFECTS_THRESHOLD, DELTA_MAX_PENDING_CHANGES, IMPORT_FOLDER, TEMP_FOLDER, DELAY_INDEXING, JS_HEAP_SIZE, JS_STACK_SIZE are no longer incorrectly nested under a "Query Configurations" heading - Strip trailing whitespace from JS_HEAP_SIZE and JS_STACK_SIZE sections Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
📝 WalkthroughWalkthroughDocumentation update to the configuration guide adding examples for multiple configuration parameters ( Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
getting-started/configuration.md (1)
462-479: ⚡ Quick winTighten the
IMPORT_FOLDERDocker note wording for clarity.Current text: “Without this volume mount,
LOAD CSVwill fail silently or return a "failed to open CSV file" error.”That reads slightly contradictory (“silently” vs “return an error”). Consider rephrasing to “may fail silently or may return …” so it accurately reflects multiple outcomes.
Suggested wording
-> Without this volume mount, `LOAD CSV` will fail silently or return a "failed to open CSV file" error. +> Without this volume mount, `LOAD CSV` may fail silently or return a "failed to open CSV file" error.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@getting-started/configuration.md` around lines 462 - 479, The Docker note for IMPORT_FOLDER is ambiguous about failure behavior; update the sentence that currently reads “Without this volume mount, `LOAD CSV` will fail silently or return a "failed to open CSV file" error.” to clearly indicate both possible outcomes by rephrasing it (e.g., “Without this volume mount, `LOAD CSV` may fail silently or may return a 'failed to open CSV file' error.”), keeping the context around IMPORT_FOLDER and `LOAD CSV` intact and preserving the example docker run block.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@getting-started/configuration.md`:
- Around line 366-412: Remove the leading "$" shell prompt from all example code
blocks (e.g., the VKEY_MAX_ENTITY_COUNT, CMD_INFO, MAX_INFO_QUERIES,
JS_HEAP_SIZE, JS_STACK_SIZE examples) so markdownlint MD014 no longer treats
them as shell-session output, and normalize the TEMP_FOLDER path capitalization
to match IMPORT_FOLDER by changing "/var/lib/falkordb/tmp" to
"/var/lib/FalkorDB/tmp" (update the example under TEMP_FOLDER and any other
occurrences mentioned in the comment ranges).
---
Nitpick comments:
In `@getting-started/configuration.md`:
- Around line 462-479: The Docker note for IMPORT_FOLDER is ambiguous about
failure behavior; update the sentence that currently reads “Without this volume
mount, `LOAD CSV` will fail silently or return a "failed to open CSV file"
error.” to clearly indicate both possible outcomes by rephrasing it (e.g.,
“Without this volume mount, `LOAD CSV` may fail silently or may return a 'failed
to open CSV file' error.”), keeping the context around IMPORT_FOLDER and `LOAD
CSV` intact and preserving the example docker run block.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: a5656d9a-021f-4f42-96b2-9332d46e51a3
📒 Files selected for processing (1)
getting-started/configuration.md
| #### Example | ||
|
|
||
| ```sh | ||
| $ redis-server --loadmodule ./falkordb.so VKEY_MAX_ENTITY_COUNT 50000 | ||
|
|
||
| $ redis-cli GRAPH.CONFIG SET VKEY_MAX_ENTITY_COUNT 50000 | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ### CMD_INFO | ||
|
|
||
| An on/off toggle for the `GRAPH.INFO` command. Disabling this command may increase performance and lower the memory usage and these are the main reasons for it to be disabled. | ||
|
|
||
| It's valid values are 'yes' and 'no' (i.e., on and off). | ||
| Its valid values are `yes` and `no` (i.e., on and off). | ||
|
|
||
| #### Default | ||
|
|
||
| `CMD_INFO` is `yes`. | ||
|
|
||
| ### MAX_INFO_QUERIES | ||
|
|
||
| A limit for the number of previously executed queries stored in the telemetry stream. | ||
|
|
||
| A number within the range [0, 1000] | ||
| #### Example | ||
|
|
||
| #### Default | ||
| ```sh | ||
| $ redis-server --loadmodule ./falkordb.so CMD_INFO no | ||
|
|
||
| `MAX_INFO_QUERIES` is 1000. | ||
| $ redis-cli GRAPH.CONFIG SET CMD_INFO no | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| ## Query Configurations | ||
|
|
||
| ### Query Timeout | ||
| ### MAX_INFO_QUERIES | ||
|
|
||
| - Before v2.10, or if `TIMEOUT_DEFAULT` and `TIMEOUT_MAX` are not specified: | ||
| A limit for the number of previously executed queries stored in the telemetry stream. | ||
|
|
||
| `TIMEOUT` allows overriding the `TIMEOUT` configuration parameter for a single read query. Write queries do not timeout. | ||
| A number within the range [0, 1000]. | ||
|
|
||
| - Since v2.10, if either `TIMEOUT_DEFAULT` or `TIMEOUT_MAX` are specified: | ||
| #### Default | ||
|
|
||
| `TIMEOUT` allows overriding the `TIMEOUT_DEFAULT` configuration parameter value for a single `GRAPH.QUERY`, `GRAPH.RO_QUERY`, or `GRAPH.PROFILE` command. The `TIMEOUT` value cannot exceed the `TIMEOUT_MAX` value (the command would abort with a `(error) The query TIMEOUT parameter value cannot exceed the TIMEOUT_MAX configuration parameter value` reply). | ||
| `MAX_INFO_QUERIES` is 1000. | ||
|
|
||
| #### Example | ||
|
|
||
| Retrieve all paths in a graph with a timeout of 500 milliseconds. | ||
|
|
||
| ```sh | ||
| GRAPH.QUERY wikipedia "MATCH p=()-[*]->() RETURN p" TIMEOUT 500 | ||
| $ redis-server --loadmodule ./falkordb.so MAX_INFO_QUERIES 500 | ||
|
|
||
| $ redis-cli GRAPH.CONFIG SET MAX_INFO_QUERIES 500 | ||
| ``` |
There was a problem hiding this comment.
Fix markdownlint MD014 by removing $ prompts from new command examples.
$ redis-server ... / $ redis-cli ... inside the new #### Example code blocks is triggering commands-show-output (MD014) warnings. The simplest docs-safe fix is to drop the leading $ prompt so markdownlint no longer treats them as shell-session “commands”.
Also, the TEMP_FOLDER example path uses a different capitalization (/var/lib/falkordb/tmp) than the IMPORT_FOLDER default (/var/lib/FalkorDB/import/), which is likely just a typo and can mislead users.
✅ Proposed changes (examples)
### VKEY_MAX_ENTITY_COUNT
```sh
-$ redis-server --loadmodule ./falkordb.so VKEY_MAX_ENTITY_COUNT 50000
-
-$ redis-cli GRAPH.CONFIG SET VKEY_MAX_ENTITY_COUNT 50000
+redis-server --loadmodule ./falkordb.so VKEY_MAX_ENTITY_COUNT 50000
+
+redis-cli GRAPH.CONFIG SET VKEY_MAX_ENTITY_COUNT 50000CMD_INFO
-$ redis-server --loadmodule ./falkordb.so CMD_INFO no
+redis-server --loadmodule ./falkordb.so CMD_INFO no
-$ redis-cli GRAPH.CONFIG SET CMD_INFO no
+redis-cli GRAPH.CONFIG SET CMD_INFO noMAX_INFO_QUERIES
-$ redis-server --loadmodule ./falkordb.so MAX_INFO_QUERIES 500
+redis-server --loadmodule ./falkordb.so MAX_INFO_QUERIES 500
-$ redis-cli GRAPH.CONFIG SET MAX_INFO_QUERIES 500
+redis-cli GRAPH.CONFIG SET MAX_INFO_QUERIES 500IMPORT_FOLDER
-$ redis-server --loadmodule ./falkordb.so IMPORT_FOLDER /data/csv
+redis-server --loadmodule ./falkordb.so IMPORT_FOLDER /data/csvTEMP_FOLDER
-$ redis-server --loadmodule ./falkordb.so TEMP_FOLDER /var/lib/falkordb/tmp
+redis-server --loadmodule ./falkordb.so TEMP_FOLDER /var/lib/FalkorDB/tmpJS_HEAP_SIZE
-$ redis-server --loadmodule ./falkordb.so JS_HEAP_SIZE 134217728 # 128 MB
+redis-server --loadmodule ./falkordb.so JS_HEAP_SIZE 134217728 # 128 MB
-$ redis-cli GRAPH.CONFIG SET JS_HEAP_SIZE 134217728
+redis-cli GRAPH.CONFIG SET JS_HEAP_SIZE 134217728JS_STACK_SIZE
-$ redis-server --loadmodule ./falkordb.so JS_STACK_SIZE 2097152 # 2 MB
+redis-server --loadmodule ./falkordb.so JS_STACK_SIZE 2097152 # 2 MB
-$ redis-cli GRAPH.CONFIG SET JS_STACK_SIZE 2097152
+redis-cli GRAPH.CONFIG SET JS_STACK_SIZE 2097152
</details>
Also applies to: 480-503, 540-568
<details>
<summary>🧰 Tools</summary>
<details>
<summary>🪛 markdownlint-cli2 (0.22.1)</summary>
[warning] 369-369: Dollar signs used before commands without showing output
(MD014, commands-show-output)
---
[warning] 371-371: Dollar signs used before commands without showing output
(MD014, commands-show-output)
---
[warning] 389-389: Dollar signs used before commands without showing output
(MD014, commands-show-output)
---
[warning] 391-391: Dollar signs used before commands without showing output
(MD014, commands-show-output)
---
[warning] 409-409: Dollar signs used before commands without showing output
(MD014, commands-show-output)
---
[warning] 411-411: Dollar signs used before commands without showing output
(MD014, commands-show-output)
</details>
</details>
<details>
<summary>🤖 Prompt for AI Agents</summary>
Verify each finding against the current code and only fix it if needed.
In @getting-started/configuration.md around lines 366 - 412, Remove the leading
"$" shell prompt from all example code blocks (e.g., the VKEY_MAX_ENTITY_COUNT,
CMD_INFO, MAX_INFO_QUERIES, JS_HEAP_SIZE, JS_STACK_SIZE examples) so
markdownlint MD014 no longer treats them as shell-session output, and normalize
the TEMP_FOLDER path capitalization to match IMPORT_FOLDER by changing
"/var/lib/falkordb/tmp" to "/var/lib/FalkorDB/tmp" (update the example under
TEMP_FOLDER and any other occurrences mentioned in the comment ranges).
</details>
<!-- fingerprinting:phantom:triton:hawk:9fb9610a-6565-4a43-88ee-9955fd3343ee -->
<!-- d98c2f50 -->
<!-- This is an auto-generated comment by CodeRabbit -->
Summary
Addresses issue 1.3 from the docs audit: several configuration parameters listed in the summary table lacked
#### Examplesections, had inconsistent separators, a typo, and an incorrect section grouping that made non-query params appear under## Query Configurations.Changes
Missing
#### Examplesections added for:VKEY_MAX_ENTITY_COUNTCMD_INFOMAX_INFO_QUERIESIMPORT_FOLDERTEMP_FOLDERJS_HEAP_SIZEJS_STACK_SIZEIMPORT_FOLDER— Docker note added:LOAD CSVsilently fails in Docker containers when the CSV directory isn't volume-mounted. Added a prominent callout explaining the required-vflag and the error users will see (EMSG_FAILED_TO_LOAD_CSVfromsrc/errors/error_msgs.h).Structure fix:
Relocated
## Query Configurations/### Query Timeoutto the end of the page. Previously,EFFECTS_THRESHOLD,DELTA_MAX_PENDING_CHANGES,IMPORT_FOLDER,TEMP_FOLDER,DELAY_INDEXING,JS_HEAP_SIZE, andJS_STACK_SIZEwere incorrectly nested under a "Query Configurations" heading — they are module-level config parameters, not per-query settings.Other fixes:
---separators afterVKEY_MAX_ENTITY_COUNTandCMD_INFO(consistent with every other param on the page)It's→ItsinCMD_INFOdescriptionMAX_INFO_QUERIESrange descriptionJS_HEAP_SIZEandJS_STACK_SIZEsectionsTesting
Documentation-only change. Verified heading structure with
grep -n "^##\|^###\|^####".Memory / Performance Impact
N/A
Related Issues
Audit finding 1.3 — Configuration table omits defaults and examples for ~9 fields.
Summary by CodeRabbit