From cb2011400e7ca4801bd61f66110b906ccf302791 Mon Sep 17 00:00:00 2001 From: Stuart Berg Date: Fri, 6 Jan 2023 11:02:28 -0500 Subject: [PATCH] schema: Memory thresholds should never be exactly 0.0. Instead, config should use 'false' to disable memory management --- distributed/distributed-schema.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/distributed/distributed-schema.yaml b/distributed/distributed-schema.yaml index c02fc1e928e..1bdb2d80695 100644 --- a/distributed/distributed-schema.yaml +++ b/distributed/distributed-schema.yaml @@ -541,7 +541,7 @@ properties: transfer: oneOf: - - {type: number, minimum: 0, maximum: 1} + - {type: number, exclusiveMinimum: 0, maximum: 1} - {enum: [false]} description: >- When the total size of incoming data transfers gets above this amount, @@ -549,7 +549,7 @@ properties: target: oneOf: - - {type: number, minimum: 0, maximum: 1} + - {type: number, exclusiveMinimum: 0, maximum: 1} - {enum: [false]} description: >- When the process memory (as observed by the operating system) gets @@ -558,7 +558,7 @@ properties: spill: oneOf: - - {type: number, minimum: 0, maximum: 1} + - {type: number, exclusiveMinimum: 0, maximum: 1} - {enum: [false]} description: >- When the process memory (as observed by the operating system) gets @@ -568,7 +568,7 @@ properties: pause: oneOf: - - {type: number, minimum: 0, maximum: 1} + - {type: number, exclusiveMinimum: 0, maximum: 1} - {enum: [false]} description: >- When the process memory (as observed by the operating system) gets @@ -577,7 +577,7 @@ properties: terminate: oneOf: - - {type: number, minimum: 0, maximum: 1} + - {type: number, exclusiveMinimum: 0, maximum: 1} - {enum: [false]} description: >- When the process memory reaches this level the nanny process will kill