CREATE OPENFLOW RUNTIME
statementnot supportedContainer services & dev toolingCreates a runtime in a gen 2 deployment.
Syntax
supportedpartialnot supportednot scored
CREATE OPENFLOW RUNTIME [ IF NOT EXISTS ] [ <database>.<schema>. ]<name>
IN DEPLOYMENT <deployment_name>
NODE_TYPE = { SMALL | MEDIUM | LARGE }
[ NODE_TYPE_TIER = { 'S1' | 'S2' | 'S3' | 'M4' | 'M6' | 'L8' } ]
MIN_NODES = <integer>
MAX_NODES = <integer>
EXECUTE_AS_ROLE = <role>
[ EXTERNAL_ACCESS_INTEGRATIONS = ( <eai> [ , <eai> ... ] ) ]
[ DISPLAY_NAME = <string> ]
[ COMMENT = <string> ]
Parameters
| Name | Required | Description |
|---|---|---|
[ database.schema. ]name | required | Specifies the identifier for the runtime. Use a fully qualified name or omit database.schema to use the session default. For more information, see Identifier requirements. |
IN DEPLOYMENT deployment_name | required | Gen 2 deployment that hosts this runtime. |
NODE_TYPE = { SMALL | MEDIUM | LARGE } | required | Node type. Cannot be changed after creation. Use NODE_TYPE_TIER to resize within the same node type after creation. |
MIN_NODES = integer | required | Minimum number of nodes (1–50). |
MAX_NODES = integer | required | Maximum number of nodes (1–50). |
EXECUTE_AS_ROLE = role | required | Role connectors use when reading from and writing to Snowflake. See Create an execute-as role. |
NODE_TYPE_TIER = { S1 | S2 | S3 | M4 | M6 | L8 } | optional | Instance tier within the node type. The tier determines the CPU and heap memory available to each node. The tier must match the NODE_TYPE value: S1, S2, and S3 require NODE_TYPE = SMALL; M4 and M6 require NODE_TYPE = MEDIUM; L8 requires NODE_TYPE = LARGE. Tier Node type CPUs per node Heap per node S1 SMALL 1 4 GB S2 SMALL 2 8 GB S3 SMALL 3 12 GB M4 MEDIUM 4 16 GB M6 MEDIUM 6 24 GB L8 LARGE 8 33 GBExpandShow lessSee more You can change the tier within the same node type after creation using ALTER OPENFLOW RUNTIME … SET NODE_TYPE_TIER. Default: S1 for SMALL, M4 for MEDIUM, L8 for LARGE. |
IF NOT EXISTS | optional | Creates the runtime only if it does not already exist. If the runtime already exists, the statement does nothing and returns a success message. |
EXTERNAL_ACCESS_INTEGRATIONS = ( eai [ , ... ] ) | optional | Snowflake deployments only. External access integrations that allow egress to external data sources. Default: No value |
DISPLAY_NAME = string | optional | UI display name. If unset, the SQL name is shown in the Openflow UI. Default: No value |
COMMENT = string | optional | Default: No value |
Usage notes
- This command returns immediately. Runtime provisioning runs asynchronously and typically takes 3–5 minutes. Use SYSTEM$WAIT_FOR_OPENFLOW_RUNTIME_STATUS or SYSTEM$WAIT_FOR_STABLE_OPENFLOW_RUNTIMES to wait for the runtime to become ACTIVE.
- The optimal node count depends on your connector type and workload. See the setup topic for your connector for recommended values.
Access control
Requires USAGE on the containing database, CREATE OPENFLOW RUNTIME on the target schema (or schema ownership), and USAGE on the parent deployment.