Commit 7235cb7
docs: add canonical envvars.md reference and fix OPENSEARCH_GO_ROUTER default (#884)
* fix: add canonical envvars.md reference and fix OPENSEARCH_GO_ROUTER default
Add guides/envvars.md as the single authoritative reference for every
OPENSEARCH_GO_* runtime environment variable -- accepted values, defaults,
meanings, and the exhaustive OPENSEARCH_GO_ERROR_MASK token list.
Consolidate scattered env var documentation by pointing existing references
at the new guide instead of re-describing values inline:
- USER_GUIDE.md: replace partial env var summary table with a link
- opensearchapi/README.md: link error-mask env override to envvars.md tokens
- guides/error_handling.md: link to envvars.md for the canonical token list
- guides/routing.md: cross-link configuration reference to envvars.md
Fix a documentation bug where routing.md listed OPENSEARCH_GO_ROUTER's
default as false; the correct default is true (router auto-constructed
when unset, matching the actual behaviour and USER_GUIDE.md).
Signed-off-by: molloyzak13 <molloyzak13@users.noreply.github.com>
* chore: add CHANGELOG entry for envvars.md documentation
Closes #883
Signed-off-by: molloyzak13 <molloyzak13@users.noreply.github.com>
* docs: fix envvars.md defaults, add build/test section, fix broken link
- Correct OPENSEARCH_GO_STANDBY_ROTATION_INTERVAL default (0=use
DiscoverNodesInterval, not 30s)
- Correct shard-cost 'unknown' example (32.0, not 16.0)
- Fix OPENSEARCH_GO_DEBUG See-also anchor (#debugging)
- Clarify overload thresholds use >= comparison; drop incorrect
'100/1.0 disables detection' claims
- Add Build/test/development section per issue #883
- Note EnableDebugLogger equivalent for OPENSEARCH_GO_DEBUG
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
* feat(opensearchtransport): add OPENSEARCH_GO_POLICY_DUMP router-tree dump
Dumps the router policy tree (labeled node paths) via the debug logger at
client init when OPENSEARCH_GO_POLICY_DUMP=true and OPENSEARCH_GO_DEBUG=true.
The render walks the structural tree directly rather than reusing the
pointer-keyed buildPolicyPaths map, which collapsed router wrappers that share
a single inner policy instance (the default router has 12 router nodes but only
5 distinct inner policies); each node is now rendered in full and labeled with
its pool or role.
Document in guides/envvars.md: godoc links on the policy-type column, a
dedicated path-matcher section, the reference default-router DOM, and a
Quick-reference table promoted to a top-of-document TOC with the rationale for
the env-var surface.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
---------
Signed-off-by: molloyzak13 <molloyzak13@users.noreply.github.com>
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
Co-authored-by: molloyzak13 <molloyzak13@users.noreply.github.com>
Co-authored-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent 1da06b8 commit 7235cb7
10 files changed
Lines changed: 506 additions & 23 deletions
File tree
- guides
- internal/envvars
- opensearchapi
- opensearchtransport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 551 | + | |
569 | 552 | | |
570 | 553 | | |
571 | 554 | | |
| |||
0 commit comments