Creating a node
You can deploy an individual notebook cell or a third-party Docker image as an independent service using nodes.
Warning
When deploying models, you pay for the uptime of each node instance: from its start to deletion.
If you no longer need the deployed service, delete the node.
If your project uses packages and libraries that are not included in the list of pre-installed software, first configure the node environment using a Docker image.
Node from models
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. -
In the top-right corner, click Create resource. In the pop-up window, select Node.
-
Enter the node name in the Name field.
-
Under Type, specify the resource type: Model.
-
In the Models field, select the saved model and specify the input data if needed.
Note
When deploying PyTorch models, DataSphere cannot automatically provide the input and output parameters.
If you are setting the input data, make sure to specify the output data as well. When the input data is set manually for any model type, DataSphere cannot automatically provide the output data.
-
Under Folder, select the folder to create new resources in.
-
Under Provisioning, select the configuration of instance computing resources, the availability zone, and the ID of the subnet to host the instance in.
-
Under Access control list (ACL), click
-
Click Create.
To view all created nodes:
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, select Node.
Node from a Docker image
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - In the top-right corner, click Create resource. In the pop-up window, select Node.
- Specify the basic node parameters:
- Type: Resource that a node is based on (Cell or Docker).
- Name: Node name.
- (Optional) Description: Node description.
- Set additional parameters:
- Under Docker image, specify the path to the image in Container Registry. Click Show additional parameters and specify:
- Username:
json_key
. - Password secret: Secret with a password for your container registry. See Configuring the environment for service custom deployment.
- Username:
- Under Endpoint:
- Type: Select the node connection protocol: HTTP (HTTP/2) or gRPC.
- Port: Specify the port for connecting to the node.
- Timeout: Set the session duration in seconds.
- Idle timeout: Set the idle time before disconnecting from the node, in seconds.
- (Optional) Under Telemetry:
- Type: Select the telemetry service (Prometheus or Yandex Monitoring).
- HTTP path: Specify the address to send telemetry data to.
- Port: Specify the port to send telemetry data to.
- (Optional) Under Healthcheck:
-
Type: Protocol to perform node health checks through (HTTP or gRPC).
-
Port: Port that node health checks are performed from.
-
Path: Path to the resource to check.
-
Timeout: Check duration in seconds.
-
Interval: Interval between checks in seconds.
-
Fails threshold: Allowed number of failed checks.
-
Passes threshold: Required number of successful checks.
-
- Under Docker image, specify the path to the image in Container Registry. Click Show additional parameters and specify:
- Under Folder, select the folder to create new resources in.
- Under Provisioning, select the configuration of instance computing resources, the availability zone, and the ID of the subnet to host the instance in.
- Under Access control list (ACL), click
- Click Create.
To view all created nodes:
-
Select the relevant project in your community or on the DataSphere homepage
in the Recent projects tab. - Under Project resources, select Node.