Amazon Managed Service for Apache Flink (Amazon MSF) was previously known as Amazon Kinesis Data Analytics for Apache Flink.
Run a Managed Service for Apache Flink application
This topic contains information about running a Managed Service for Apache Flink.
When you run your Managed Service for Apache Flink application, the service creates an Apache Flink job. An Apache Flink job is the execution lifecycle of your Managed Service for Apache Flink application. The execution of the job, and the resources it uses, are managed by the Job Manager. The Job Manager separates the execution of the application into tasks. Each task is managed by a Task Manager. When you monitor your application's performance, you can examine the performance of each Task Manager, or of the Job Manager as a whole.
For information about Apache Flink jobs, see Jobs and Scheduling
Identify application and job status
Both your application and the application's job have a current execution status:
-
Application status: Your application has a current status that describes its phase of execution. Application statuses include the following:
-
Steady application statuses: Your application typically stays in these statuses until you make a status change:
-
READY: A new or stopped application is in the READY status until you run it.
-
RUNNING: An application that has successfully started is in the RUNNING status.
-
-
Transient application statuses: An application in these statuses is typically in the process of transitioning to another status. If an application stays in a transient status for a length of time, you can stop the application using the StopApplication action with the
Forceparameter set totrue. These statuses include the following:STARTING:Occurs after the StartApplication action. The application is transitioning from theREADYto theRUNNINGstatus.STOPPING:Occurs after the StopApplication action. The application is transitioning from theRUNNINGto theREADYstatus.DELETING:Occurs after the DeleteApplication action. The application is in the process of being deleted.UPDATING:Occurs after the UpdateApplication action. The application is updating, and will transition back to theRUNNINGorREADYstatus.AUTOSCALING:The application has theAutoScalingEnabledproperty of the ParallelismConfiguration set totrue, and the service is increasing the parallelism of the application. When the application is in this status, the only valid API action you can use is the StopApplication action with theForceparameter set totrue. For information about automatic scaling, see Use automatic scaling in Managed Service for Apache Flink.FORCE_STOPPING:Occurs after the StopApplication action is called with theForceparameter set totrue. The application is in the process of being force stopped. The application transitions from theSTARTING,UPDATING,STOPPING, orAUTOSCALINGstatus to theREADYstatus.ROLLING_BACK:Occurs after the RollbackApplication action is called. The application is in the process of being rolled back to a previous version. The application transitions from theUPDATINGorAUTOSCALINGstatus to theRUNNINGstatus.-
MAINTENANCE:Occurs while Managed Service for Apache Flink applies patches to your application. For more information, see Manage maintenance tasks for Managed Service for Apache Flink.
You can check your application's status using the console, or by using the DescribeApplication action.
-
-
Job status: When your application is in the
RUNNINGstatus, your job has a status that describes its current execution phase. A job starts in theCREATEDstatus, and then proceeds to theRUNNINGstatus when it has started. If error conditions occur, your application enters the following status:For applications using Apache Flink 1.11 and later, your application enters the
RESTARTINGstatus.For applications using Apache Flink 1.8 and prior, your application enters the
FAILINGstatus.
The application then proceeds to either the
RESTARTINGorFAILEDstatus, depending on whether the job can be restarted.You can check the job's status by examining your application's CloudWatch log for status changes.
Run batch workloads
Managed Service for Apache Flink supports running Apache Flink batch workloads. In a batch job, when an Apache Flink job gets to the FINISHED status,
Managed Service for Apache Flink application status is set to READY. For more information about Flink job statuses, see Jobs and Scheduling