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 new version of the application deployed, follow these steps:
Log in to the Aiven Console, and select your Aiven for Apache Flink® service.
Select Applications from the left sidebar, and select the application that contains the deployment you want to create a new version.
On the application landing screen, select Create new version.
In the create new version screen, make any desired changes to the create statement, source, or sink tables.
Select Save and deploy later. You can see the new version listed in the versions drop-down list on the left side of the screen.
To deploy the new version of the application, stop any existing version that is running.
Select Create deployment, and on the Create new deployment screen:
Choose the version you want to deploy.
Choose the savepoint from where you want to deploy.
Use the toggle for Restart on failure to enable or disable the option of automatically restarting a Flink job in case it fails.
Enter the number of parallel instances you want to have for the task.
Select Deploy from a savepoint or Deploy without savepoint depending on your previous selection.
Stop application deployment#
To stop a deployment for your Flink application, follow these steps:
Select Applications from the left sidebar on your Aiven for Apache Flink service, and select the application that contains the deployment you want to stop.
On the application landing screen, select Stop deployment.
On the Stop deployment screen, enable the option to Create a savepoint before stopping to preserve the current state of the application.
Note
To stop a deployment without saving the current state of the application, disable the option for Create a savepoint before stopping and select Stop without savepoint.
Select Create savepoint & stop to initiate the stopping process.
The application status will display Saving_and_stop_requested
and then Finished
once the stopping process is completed.
Additionally, you can view a history of all the application deployments and statuses by selecting Deployment history.
Rename application#
To rename an application, follow these steps:
Select Applications from the left sidebar on your Aiven for Apache Flink service, and select the application you want to rename.
On the application landing screen, select the Application action menu (ellipsis) located on the right side of the screen, and select Update application from the menu options.
In the Update Application screen, 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, follow these steps:
Select Applications from the left sidebar on your Aiven for Apache Flink service, and select the application for which you want to view the deployment history.
On the application landing screen, select Deployment History to view the deployment history.
To remove a specific deployment from the history, locate it in the deployment history screen and select the Delete icon next to it.
To learn about the different application statuses, see <Flink application status>
Delete application#
Before deleting an application, it is necessary to remove all associated deployment history.
Select Applications from the left sidebar on your Aiven for Apache Flink service, and select the application you want to delete.
On the application landing screen, select the Application action menu (ellipsis) located on the right side of the screen, and select Delete application from the menu options.
In the Delete Confirmation screen, enter the name of the application and select Confirm to proceed with the deletion.