estimate-memory-usage.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. --
  2. :api: estimate-memory-usage
  3. :request: PutDataFrameAnalyticsRequest
  4. :response: EstimateMemoryUsageResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Estimate memory usage API
  9. The Estimate memory usage API is used to estimate memory usage of {dfanalytics}.
  10. Estimation results can be used when deciding the appropriate value for `model_memory_limit` setting later on.
  11. The API accepts an +{request}+ object and returns an +{response}+.
  12. [id="{upid}-{api}-request"]
  13. ==== Estimate memory usage Request
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new request containing a {dataframe-analytics-config} for which memory usage estimation should be performed
  19. include::../execution.asciidoc[]
  20. [id="{upid}-{api}-response"]
  21. ==== Response
  22. The returned +{response}+ contains the memory usage estimates.
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-response]
  26. --------------------------------------------------
  27. <1> Estimated memory usage under the assumption that the whole {dfanalytics} should happen in memory (i.e. without overflowing to disk).
  28. <2> Estimated memory usage under the assumption that overflowing to disk is allowed during {dfanalytics}.