Skip to content

Commit

Permalink
Add effective max model memory limit to ML info (#4814) (#4822)
Browse files Browse the repository at this point in the history
Relates: elastic/elasticsearch#55529, #4803

Co-authored-by: Russ Cam <[email protected]>
  • Loading branch information
github-actions[bot] and russcam authored Jun 29, 2020
1 parent d364dc1 commit 70e92c4
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 70e92c4

Please sign in to comment.