Set up Openflow - Snowflake Deployment: Create runtime¶
A runtime is a containerized Apache NiFi instance that executes your data integration flows -- connectors and custom flow definitions. Each runtime is isolated for security and resource control, and can scale from one node up to fifty to handle varying data volumes.
To create a runtime in your Snowflake deployment:
Sign in to Snowsight.
In the navigation menu, select Ingestion » Openflow.
Select Launch Openflow. A new tab opens for the Openflow canvas.
在 Openflow Control Plane 中,选择 Create a runtime。此时会出现 Create Runtime 对话框。
在 Create Runtime 中填充以下字段:
字段
描述
Runtime Name
输入运行时名称。
Deployment 下拉菜单
选择之前在 设置 Openflow - Snowflake Deployment:创建部署 中创建的部署
Node Type
从 Node type 下拉列表中选择一种节点类型。这指定了您的节点的大小。
Min/Max node
在 Min/Max node 范围选择器中,选择一个范围。最小值指定了运行时在空闲状态下启动的节点数,最大值指定了在数据量较大或 CPU 负载较高的情况下,运行时可以扩展到的节点数。
Snowflake Role
Choose the Snowflake role previously created in Set up Openflow - Snowflake Deployment: Create Snowflake role.
Usage Roles
(可选)选择创建的角色,以向运行时授予所需的数据库、架构和表访问权限。
External Access Integrations
(可选)选择之前创建的外部访问集成,以授予对外部资源的访问权限。
选择 Create。运行时需要几分钟时间才能创建完毕。
创建之后,请导航到 Openflow 控制平面的 Runtimes 选项卡来查看运行时。选择运行时以打开 Openflow 画布。
[Optional] Grant MONITOR privileges on the runtime¶
If you created a monitoring role when setting up your deployment, you can add the runtime to that role. This allows data engineers or operations teams to monitor the runtime without having the OPENFLOW_ADMIN role.
To add the runtime to the monitoring role, run the following code, replacing
<OPENFLOW_RUNTIME_NAME>with the name of the Openflow runtime integration:USE ROLE OPENFLOW_ADMIN; GRANT MONITOR ON OPENFLOW RUNTIME INTEGRATION <OPENFLOW_RUNTIME_NAME> TO ROLE <OPENFLOW_MONITOR_ROLE>;
后续步骤¶
Configure allowed domains for Openflow connectors. See 设置 Openflow - Snowflake Deployment:为 Openflow 连接器配置允许的域.