Skip to content

Commit 2712fcf

Browse files
authored
Merge pull request #450 from weaviate/docs/debug-endpoints-disabled-by-default
Document DEBUG_ENDPOINTS_ENABLED (debug endpoints disabled by default in v1.37.9)
2 parents 02dd1d7 + 73f1567 commit 2712fcf

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/deploy/configuration/env-vars/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import APITable from '@site/src/components/APITable';
5757
| `INVERTED_SORTER_DISABLED` | Forces the "objects bucket" strategy and doesn't consider inverted sorting. Most users should never set this flag; it exists for benchmarking and as a safety net. Default: `false` | `boolean` | `false` |
5858
| `GO_PROFILING_DISABLE` | If `true`, disables Go profiling. Default: `false`. | `boolean` | `false` |
5959
| `GO_PROFILING_PORT` | Sets the port for the Go profiler. Default: `6060` | `integer` | `6060` |
60+
| `DEBUG_ENDPOINTS_ENABLED` | Gate for the debug HTTP listener (the profiling port set by `GO_PROFILING_PORT`, default `6060`), which serves Weaviate's **unauthenticated** internal debug and profiling endpoints — `/debug/config`, Go profiling (`/debug/pprof/*`, `/debug/fgprof`), and various maintenance and diagnostic routes. [Runtime-configurable](/deploy/configuration/env-vars/runtime-config.md) via the `debug_endpoints_enabled` override. Default: `false`. `GO_PROFILING_DISABLE` still controls whether the listener binds at all. <br/>Added in `v1.37.9` | `boolean` | `true` |
6061
| `GRPC_MAX_MESSAGE_SIZE` | Maximum gRPC message size in bytes. Default: 10MB | `string - number` | `2000000000` |
6162
| `GRPC_PORT` | The port on which Weaviate's gRPC server listens for incoming requests. Default: `50051` | `string - number` | `50052` |
6263
| `HNSW_GEO_INDEX_EF` | Balance geo index search speed and recall. This value controls the search depth for geo-based queries. Default: `800`<br/>Added in `v1.31.22` | `string - number` | `1000` |

docs/deploy/configuration/env-vars/runtime-config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ The following overrides are currently supported:
6161
| `async_replication_hashtree_init_concurrency` | `ASYNC_REPLICATION_HASHTREE_INIT_CONCURRENCY`|
6262
| `async_replication_cluster_max_workers` _(removed in `v1.38`)_ | `ASYNC_REPLICATION_CLUSTER_MAX_WORKERS` _(removed in `v1.38`)_ |
6363
| `autoschema_enabled` | `AUTOSCHEMA_ENABLED` |
64+
| `debug_endpoints_enabled` | `DEBUG_ENDPOINTS_ENABLED` |
6465
| `default_quantization` | `DEFAULT_QUANTIZATION` |
6566
| `default_sharding_count` | `DEFAULT_SHARDING_COUNT` |
6667
| `default_vector_index` | `DEFAULT_VECTOR_INDEX` |

docs/weaviate/best-practices/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ If `go` is available to your system, you can view the heap profile with golang's
168168
- Have a go runtime installed, or start a Go-based docker container
169169
- Expose port 6060 if running in docker/k8s
170170

171+
:::caution `DEBUG_ENDPOINTS_ENABLED` required in `v1.37.9`+
172+
As of `v1.37.9`, the debug HTTP listener (including the `/debug/pprof/*` endpoints) is disabled by default. Set [`DEBUG_ENDPOINTS_ENABLED=true`](/deploy/configuration/env-vars/index.md) to serve these endpoints before profiling.
173+
:::
174+
171175
To view the profile visually:
172176

173177
```bash

0 commit comments

Comments
 (0)