Skip to main content

Create a Flink service

Create a Flink service in your workspace to run stream and batch processing jobs with Apache Flink. The Setup Flink Service form has four screens: Basic Information, Nodes Configuration, Advanced, and Review & Create.

Prerequisites​

  • A workspace whose Status is Connected. See Create a workspace.
  • A storage mounted on the workspace for Flink, to hold your job files. See Manage workspace storage.
  • The endpoint, access key, secret, and bucket name of the S3 storage for checkpoints and savepoints.
  • To use a custom domain, a certificate imported on the Certificate tab of the workspace. See Manage certificates.

Open the create form​

  1. Select Data platform → Workspace management, then select your workspace.
  2. On the Overview tab, select Create.
  3. In the Create service dialog, select Flink, then select Create service.

Create service dialog with the Category filter and the service cards, including the Flink card

In a workspace with no services yet, the Overview tab shows Create first service instead. Select the Flink card there to open the form directly.

The Setup Flink Service form opens on the Basic Information screen.

Enter basic information​

  1. Enter a Name.
  2. Enter a Description (optional).
  3. Select a Version.
  4. Select Next Step.

Basic Information screen of the Setup Flink Service form with the Name, Description, and Version fields

FieldDescription
NameRequired. The service name. 1 to 30 characters. Lowercase letters, numbers, and hyphens (-).
DescriptionOptional. A description of the service.
VersionRequired. The Flink version to run.

Configure nodes​

  1. Under Job manager, select a Storage Policy.
  2. Under Task manager, select a Storage Policy.
  3. Select a Type.
  4. Enter the Number of nodes.
  5. Turn on auto scaling (optional). See Worker auto scaling.
  6. Select Next Step.

Nodes Configuration screen of the Setup Flink Service form with the Job manager and Task manager fields and the Enable auto scaling option

Job manager​

FieldDescription
Storage PolicyRequired. The storage policy of the job manager nodes.
TypeFixed. Medium-4 (2 CPU - 4 GB RAM).
Number of nodesFixed. 2.

Task manager​

FieldDescription
Storage PolicyRequired. The storage policy of the task manager nodes.
TypeRequired. The node size of the task manager nodes.
Number of nodesRequired. From 1 to 10.

Worker auto scaling​

Auto scaling lets the service add task manager nodes automatically, up to the number you set in Max nodes.

  1. Select Enable auto scaling.
  2. Enter Max nodes.
FieldDescription
Enable auto scalingOptional. Turns on auto scaling for the task manager nodes. Enter Number of nodes first.
Max nodesRequired with Enable auto scaling. Greater than Number of nodes, and at most 10.

Configure advanced settings​

On the Advanced screen, connect Flink to the storage it uses, set the task slots, and set a custom domain if you need one.

  1. Connect the Checkpoint/Savepoint storage.
  2. Select the Job storage.
  3. Set the Task slot.
  4. Set a Custom domain, or clear Custom Domain if you do not need one.
  5. Select Next Step.

Checkpoint/Savepoint storage​

Checkpoint/Savepoint storage holds the state of your streaming applications in an S3 bucket.

  1. Enter the Endpoint, Access Key, Secret, Bucket Name, and Path of the bucket.
  2. Select Test connection to check the connection from the workspace to the storage.

Checkpoint/Savepoint storage section with the Endpoint, Access Key, Secret, Bucket Name, and Path fields and the Test connection button

FieldDescription
EndpointRequired. The endpoint of the object storage.
Access KeyRequired. The access key of the object storage.
SecretRequired. The secret key that goes with the access key.
Bucket NameRequired. The name of the bucket.
PathRequired. The folder in the bucket that holds the checkpoints and savepoints. Enter it without a leading or trailing slash.

Job storage​

Job storage holds the .jar files of your Flink jobs. You can upload jobs to it directly in S3.

  1. Select a storage in Job storage.
  2. Enter the Path of the job files.

Job storage section with the Job storage list and the Path field

FieldDescription
Job storageRequired. A storage already mounted on the workspace. See Manage workspace storage.
PathRequired. The folder that holds the job files. Enter it without a leading or trailing slash.

Task slot​

  1. Enter the Slot per task. The form shows the resulting Total slot.

Task slot section with the Slot per task field and the read-only Total slot field

FieldDescription
Slot per taskRequired. From 1 to 4.
Total slotRead-only. Slot per task × task manager Number of nodes, or × Max nodes when auto scaling is on.

Custom domain​

A custom domain lets you reach the service at your own domain name. The fields depend on the Type of the workspace: a Public workspace always serves the service over HTTPS, and a Private workspace lets you choose HTTPS or HTTP.

Custom Domain is selected by default. Clear it if you do not need a custom domain.

  1. Fill in the fields for your workspace type, as described in the tables below.
  2. Select Validate to check that the certificate is valid for the domain.

Manage certificate, next to Certificate name, opens certificate management, where you can import a certificate that is not in the list yet. See Manage certificates.

In a Public workspace, the form has no TLS/SSL certificate option because HTTPS is always on.

FieldDescription
Custom Domain (field)Required. The domain name of the service.
Certificate nameRequired. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Public workspace with the Custom Domain and Certificate name fields and the Manage certificate and Validate buttons

In a Private workspace, you choose HTTPS or HTTP with TLS/SSL certificate.

FieldDescription
Custom Domain (field)Required. The domain name of the service.
TLS/SSL certificateOptional. Select it to serve the service over HTTPS. When it is cleared, the service runs over HTTP and needs no certificate.
Certificate nameRequired with TLS/SSL certificate. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Private workspace with the Custom Domain field, the TLS/SSL certificate option, the Certificate name field, and the Manage certificate and Validate buttons

Review and create​

  1. Check the settings on the Review & Create screen.
  2. Select Create.

Review & Create screen of the Setup Flink Service form with the instance information, job manager, task manager, storage, custom domain, and task slot settings

The service is ready when its Status is Healthy. This takes about 10 minutes.

Next steps​