Manage Aiven for Apache Flink® applications
This section provides information on managing your Aiven for Apache Flink® applications.
Creating a new version of an application
To create a version of the application deployed:
- Log in to the Aiven Console, and select your Aiven for Apache Flink® service.
- From the left sidebar, select Applications.
- On the Applications landing page, click the application name for which to create a version.
For an SQL application
- Click Create new version.
- In the Create new version page, modify the create statement, source, or sink tables as needed.
- Click Save and deploy later. You can see the new version listed in the versions drop-down list.
- To deploy the new version of the application, stop any existing version that is running.
- Click Create deployment, and in the Create new deployment
dialog:
- Select the version to deploy.
- Select the savepoint from where to deploy.
- Toggle Restart on failure to automatically restart Flink jobs upon failure.
- Enter the number of parallel instances for the task.
- Click Deploy from a savepoint or Deploy without savepoint depending on your previous selection.
For a JAR application
- Click Upload new version.
- In the Upload new version dialog:
- Click Choose file to select your custom JAR file.
- Review and accept the terms of service by checking the box.
- Click Upload version to upload your JAR file.
- In the Deployment history you can see the latest version running.
Stop an application deployment
To stop a deployment for your Flink application:
-
In your Aiven for Apache Flink service, select Applications from the left sidebar.
-
On the Applications landing page, click the application name to be stopped.
-
In the application's overview page, click Stop deployment.
-
In the Stop deployment dialog, enable the option to Create a savepoint before stopping to save the current state of the application.
To stop a deployment without saving the current state of the application, disable the option for Create a savepoint before stopping and click Stop without creating savepoint.
-
Click Create savepoint & stop to initiate the stopping process.
The application status will display Saving_and_stop_requested
and
Finished
once the stopping process is completed.
Additionally, the Deployment history provides a record of all the application deployments and statuses.
Rename an application
To rename an application:
- In your Aiven for Apache Flink service, select Applications from the left sidebar.
- On the Applications landing page, click the application name to rename.
- In the application's overview page, click the Application action menu (...), and click Update application from the menu options.
- In the Update Application dialog, enter the new name for the application and select Save changes to confirm the new name and update the application.
Accessing deployment history
The Deployment History screen provides the following:
- A list of all the deployments for an application
- The user who created the application (created by)
- Data and time of creation (created at)
- Application version
- If a savepoint was created or not
To view and delete the deployment history of an application:
- In your Aiven for Apache Flink service, select Applications from the left sidebar.
- On the Applications landing page, click the application name for which to view the deployment history.
- In the application landing page, click Deployment History to view the deployment history.
- To remove a specific deployment from the history, locate it in the deployment history page and click the Delete icon next to it.
Delete an application
Before deleting an application, it is necessary to remove all associated deployment history.
- In your Aiven for Apache Flink service, select Applications from the left sidebar.
- On the Applications landing page, click the application name to delete.
- In the application's overview page, click the Application action menu (...), and click Delete application from the menu options.
- In the Delete Confirmation dialog, enter the name of the application and click Confirm to proceed with the deletion.