From 8357e960967988af007054956201e741e654897d Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Tue, 2 Jul 2024 13:07:59 -0400 Subject: [PATCH 1/2] Add missing heap profile docs --- docs/api/components/schemas.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/api/components/schemas.yaml b/docs/api/components/schemas.yaml index b7f85101f1..99551e0ac0 100644 --- a/docs/api/components/schemas.yaml +++ b/docs/api/components/schemas.yaml @@ -2248,6 +2248,16 @@ Startup-config: description: TCP keep-alive interval between SG and Couchbase server type: integer readOnly: true + heap_profile_collection_threshold: + description: Threshold in bytes for collecting heap profiles automatically. If set, Sync Gateway will collect a memory profile when it exceeds this value. The default value will be set to 85% of the lesser of cgroup or system memory. + readOnly: true + type: integer + default: max memory + heap_profile_disable_collection: + description: Disables automatic heap profile collection. + default: false + type: boolean + readOnly: true title: Startup-config Runtime-config: type: object From bea3473067e93188085105d43356a8752f63c4f2 Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Tue, 2 Jul 2024 16:28:48 -0400 Subject: [PATCH 2/2] Update docs/api/components/schemas.yaml Co-authored-by: Adam Fraser --- docs/api/components/schemas.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/components/schemas.yaml b/docs/api/components/schemas.yaml index 99551e0ac0..28d448e787 100644 --- a/docs/api/components/schemas.yaml +++ b/docs/api/components/schemas.yaml @@ -2249,7 +2249,7 @@ Startup-config: type: integer readOnly: true heap_profile_collection_threshold: - description: Threshold in bytes for collecting heap profiles automatically. If set, Sync Gateway will collect a memory profile when it exceeds this value. The default value will be set to 85% of the lesser of cgroup or system memory. + description: Threshold in bytes for automatic collection of heap profiles. If not specified, defaults to 85% of the lesser of cgroup or system memory. readOnly: true type: integer default: max memory