estimate-memory-usage.asciidoc 1.4 KB

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