Managing data streams
You can view a list of streams, edit their settings, create a new stream, or delete an existing one.
Creating a stream
-
In the management console
, select the folder to create a data stream in. -
Select Data Streams.
-
Click Create stream.
-
Specify the Yandex Managed Service for YDB database or create a new one. If you opted for creating a new database, click
after creating it to update the list of databases. -
Enter a name for the stream. The naming requirements are as follows:
- The name must be from 3 to 63 characters long.
- It may contain lowercase Latin letters, numbers, and hyphens.
- The first character must be a letter and the last character cannot be a hyphen.
-
Specify the number of data shards.
Warning
You cannot reduce the number of shards for the created stream.
-
Set the maximum shard throughput. A stream's throughput is equal to the product of the number of shards by the throughput of each of them.
-
Select a pricing mode (for serverless databases).
-
Select data storage settings:
Size Limit
: Specify the maximum data storage size.Time Limit
: Specify the maximum data retention period for the stream.
-
Click Create.
Wait for the stream to start. Once the stream is ready for use, its status will change from CREATING
to ACTIVE
.
Viewing a list of streams
- In the management console
, select the folder to get the list of streams for. - Select Data Streams. A list of streams opens.
Change stream settings
- In the management console
, select the folder where you want to update the stream settings. - Select Data Streams.
- Click
in the line with the desired stream and select Edit. - Configure the stream settings:
- Select the required number of shards.
- Set the maximum shard throughput per second.
- Select a pricing plan.
- Select data storage settings:
Size Limit
: Specify the maximum data storage size.Time Limit
: Specify the maximum data retention period for the stream.
- Click Update.
Deleting a stream
- In the management console
, select the folder to delete a stream from. - Select Data Streams.
- Click
in the line with the stream and select Delete. - Confirm the deletion.