Managing environments
An environment defines the cloud infrastructure for DataLens Platform REST catalogs and clusters. This section describes the following:
- Creating an environment.
- Viewing a list of environments.
- Updating environment settings.
- Deleting an environment.
- Checking the billing account and quotas.
Creating an environment
Cloud and network requirements
For your environment to run, you need a Yandex Cloud cloud linked to a billing account.
Before creating an environment, create the following in your cloud:
- Cloud network with at least one subnet.
- NAT gateway in the folder with the network.
- Route table in the same network the the
0.0.0.0/0route through the NAT gateway.
Warning
Make sure to associate the route table with the subnet you choose when creating an environment. You must have internet access through the NAT gateway in this subnet. Learn more about a network, subnet, and NAT gateway.
Create an environment
To create an environment:
-
In the left-hand panel, open
Clusters and go to the Environments tab. -
Click Create.
-
Under General settings, specify the environment settings:
- Name: Environment name
- Description: Tasks and users the environment is suitable for. This is an optional setting.
- Cloud: Yandex Cloud cloud to create resources in. If you do not have an appropriate cloud, click Create and configure it in the window that opens.
- Network: Cloud network that meets the network requirements.
- Subnet: One of the subnets in the selected network. Make sure you associated a route table with a route through the NAT gateway with the subnet.
-
Click Create environment.
You can use your environment to create Trino and Apache Spark™ clusters, REST catalogs, and Apache Airflow™ clusters.
For these objects to interact with one another, create them within the same cloud and environment.
Viewing a list of environments
To open the list of environments, in the left-hand panel, select Clusters and go to the Environments tab.
The list shows an environment’s name and description, cloud, and creation date. Use the Name field for search. To open an environment’s settings, click its name.
Updating environment settings
You can change an environment’s name and description on its page. The Cloud, Network, and Subnet fields are only available for viewing.
To update an environment:
- In the left-hand panel, open
Clusters and go to the Environments tab. - Click the environment name.
- Under Main settings, change the Name or Description of your environment.
- Click Save changes.
Deleting an environment
To delete an environment:
- In the left-hand panel, open
Clusters and go to the Environments tab. - In the environment row, click
and select Delete.
Checking the billing account and quotas
The Yandex Cloud Trino and Apache Spark™ quotas apply to respective clusters. Quotas set the available number of clusters, vCPUs, and RAM amount in the cloud. The are used by all the environments in the cloud. You can only view and change quotas in the Yandex Cloud management console.
To check parameters of the cloud used by your environment:
- Under
Clusters on the Environments tab, open the environment you need. - Under Main settings, find which cloud is specified in the Cloud field.
- Make sure the cloud is linked to the billing account.
- To view quotas, go to the quotas page in the management console
and select this cloud.