---
title: "Return recommended engine size based on the dimensions of the compressed dataset and given engine size limits. (-- api-linter: core::0136::http-uri-suffix=disabled aip.dev/not-precedent: The linter is bugged. It requires incorrect suffix (\"H2o\" instead of \"H2O\") --)"
method: POST
path: "/v1/h2oEngines:calculateH2OEngineSizeCompressedDataset"
tags: ["H2OEngineService"]
---

# Return recommended engine size based on the dimensions of the compressed dataset and given engine size limits. (-- api-linter: core::0136::http-uri-suffix=disabled aip.dev/not-precedent: The linter is bugged. It requires incorrect suffix ("H2o" instead of "H2O") --)

`POST /v1/h2oEngines:calculateH2OEngineSizeCompressedDataset`

## Request

- Base URL: `https://docs.h2o.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.h2o.ai/v1/h2oEngines:calculateH2OEngineSizeCompressedDataset`
- Auth: none declared
- TypeScript: <https://skmtc.dev/h2o/apis/ai-h2o-engine-sandbox-v1-filesystem-proto/docs/v1/h2oEngines:calculateH2OEngineSizeCompressedDataset/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- V1CalculateH2OEngineSizeCompressedDatasetRequest: Request message.
  - `rowsCount` string, int64, required: Estimated number of rows in the dataset.
  - `columnsCount` string, int64, required: Estimated number of columns in the dataset.
  - `limits` V1H2OEngineSizeLimits: Limits required for H2OEngine size calculation.
    - `memoryBytesPerNodeMin` string, int64, required: Memory bytes per node min constraint.
    - `memoryBytesPerNodeMax` string, int64, nullable: Memory bytes per node max constraint.
    - `nodeCountMin` string, int64, required: Node count min constraint.
    - `nodeCountMax` string, int64, nullable: Node count max constraint.

## Response `200`

A successful response.

- V1CalculateH2OEngineSizeCompressedDatasetResponse: Response message.
  - `h2oEngineSize` V1H2OEngineSize: Message representing recommended H2OEngine size.
    - `nodeCount` string, int64: The number of nodes recommended for the engine.
    - `memoryBytes` string, int64: The amount of memory in bytes per node recommended for the engine.

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/h2o/apis/ai-h2o-engine-sandbox-v1-filesystem-proto.md) - [All operations](https://skmtc.dev/h2o/apis/ai-h2o-engine-sandbox-v1-filesystem-proto/llms.txt) - [OpenAPI document](https://skmtc.dev/h2o/apis/ai-h2o-engine-sandbox-v1-filesystem-proto/revisions/297cfadc1d39?raw)
