Skip to content

Commit

Permalink
Add effective max model memory limit to ML info (#4814)
Browse files Browse the repository at this point in the history
  • Loading branch information
russcam authored and github-actions[bot] committed Jun 29, 2020
1 parent 964327c commit 79828fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,11 @@ public class Limits
{
[DataMember(Name = "max_model_memory_limit")]
public string MaxModelMemoryLimit { get; internal set; }

/// <summary>
/// Available in Elasticsearch 7.8.0+
/// </summary>
[DataMember(Name = "effective_max_model_memory_limit")]
public string EffectiveMaxModelMemoryLimit { get; internal set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ protected override void ExpectResponse(MachineLearningInfoResponse response)
analyzer.Tokenizer.Should().Be("ml_classic");
analyzer.Filter.Should().NotBeNullOrEmpty();
}

if (TestClient.Configuration.InRange(">=7.8.0"))
response.Limits.EffectiveMaxModelMemoryLimit.Should().NotBeNullOrEmpty();
}
}
}

0 comments on commit 79828fc

Please sign in to comment.