Real-Time Instances

Updated at:

A real-time instance is created when you submit a real-time task to the O&M Center. Dataphin lets you perform O&M on a real-time instance, such as viewing its associated task, instance code, and instance parameters. This topic describes the statuses of real-time instances and how to manage them.

Real-time instances

  1. From the top menu bar on the Dataphin homepage, select develop > job operations.

  2. In the top menu bar, select the production or development environment.

  3. In the left navigation pane, select Instance Operations > Real-time Instances to open the Real-time Instances page.

Real-time instances page

The real-time instances page lists all real-time instances and lets you perform O&M operations.

image

Area

Description

① Filter and search area

You can search for a real-time instance by entering its name or ID.

  • My stopped instances: Filters for instances that you own and are Stopped.

  • Instances I operated today: Filters for instances that you operated on today.

  • Project: Filters instances by their project. You can select multiple projects for which you have the O&M - Access Directory permission.

  • Expand filters: Click Filter to view all filter options. The filter options include:

    • Subtype: Includes Flink SQL, Flink Template SQL, Flink DataStream, and real-time workflow.

    • Status: Filters instances by status. You can select one or more statuses, including Succeeded, Starting, Start Failed, Running, Failed, Stopping, and Stopped.

    • Last operator: Filters by the last user to operate on the instance.

    • Owner: Filters by the O&M owner of the instance.

    • Engine type: Filters by engine type. Options include Ververica Flink, Blink.

    • Cluster: The ID of the cluster for Ververica Flink real-time compute engines.

    • Engine version: The engine version used by the instance.

    • Operation date: The date the instance was last operated on.

  • Reset: After expanding all filter options, click Reset to clear all selected filter criteria.

② List operations

  • View instance statistics: Click to navigate to the instance statistics page for more details. For more information, see View Instance Statistics.

  • Export instance list: Click to export the instances based on the current filters or search query. The list is exported in .csv format.

  • Customize list header: Click the image icon to select the columns to display and adjust their order.

    Note
    • The first column and the Operations column cannot be hidden or reordered.

    • If you clear your browser cache or switch to a different browser, the header settings revert to the default.

  • Refresh list: Click the image icon to refresh the current list.

③ Real-time instance list

The real-time instance list displays all generated real-time instances. The list includes information such as Instance object, Status, Last operator, Last updated time, Owner, and Project. You can resize each column. The adjusted column widths are saved locally in your browser and will be reset if you clear your browser's history and cookies.

  • Instance object: When a real-time task is submitted and published to the O&M center, the system creates a real-time instance with an initial status of Stopped. You can start it manually.

  • Status: The current status of the instance, such as Starting, Running, Stopping, Stopped, Failed, or Start Failed. For more information, see .

  • Consumer lag (s): Indicates the delay, in seconds, in consuming data from the source.

  • Last operator: The account that last operated on the instance.

  • Last updated time: The time of the last operation on the instance.

  • Owner: The O&M owner of the instance.

  • Project: The project to which the instance belongs, displayed in the format Project English Name (Project Chinese Name).

  • Engine type: The engine type used by the current real-time instance.

  • Cluster: The cluster where the real-time instance runs. This applies only to the Ververica Flink real-time engine. This field is empty for other engine types.

  • Resource queue: The resource queue where the real-time instance runs. This applies only to Blink real-time engines. This field is empty for other engine types.

  • Engine version: The engine version used by the instance.

The Operations column lists the available O&M actions for each real-time instance. For information about individual operations, see Individual operations.

④ Batch operations

Use the Start, Stop, and Offline batch operations to manage multiple real-time instances at once.

For more information about supported batch operations for real-time instances, see Batch operations.

Real-time instance status

Status icon

Status

Description

image.png

Succeeded

The instance has successfully processed a bounded stream.

image

Starting

A start command has been issued, but the instance is not yet running.

image

Running

The instance is currently running.

image

Stopping

The system is stopping the instance after receiving a stop command.

image

Stopped

The instance is no longer running.

image

Failed

The instance encountered an error while running.

image

Start Failed

The instance failed to start.

Manage real-time instances

Individual operations

Actions

Description

Start

In the Actions column for the target real-time instance, click the image icon to start the instance. For more information, see Start a real-time instance.

Stop

In the Actions column for a Running real-time instance, click the image icon to stop it. Two stop methods are available: stateless stop and stop with retained state.

  • Stateless stop: Discards the current state (Savepoint). The job starts without a state the next time it runs.

    Important

    A stateless stop clears any previously saved Savepoint but does not clear the Checkpoint.

  • Stop with retained state: Retains the current state (Savepoint), allowing you to resume from this state the next time it runs.

Note
  • The Blink real-time compute engine does not allow you to choose between stateless stop and stop with retained state.

  • Real-time integration instances only support stateless stop. When you click Stop, the system stops both the real-time incremental task and any running offline synchronization tasks.

  • Real-time workflow instances only support stop with retained state.

Take offline

In the Actions column for the target real-time instance, click the image icon to take the real-time instance offline in the production environment. You can take offline real-time instances with a Stopped, Run Failed, or Startup Failed status.

View run analysis

In the Actions column for the target real-time instance, click the image icon to view its runtime information, data curves, and failover details.

If the real-time instance uses the Ververica Flink or Blink real-time engine, see View Job Details for more information.

View real-time task

In the Actions column for the target real-time instance, click the image icon and select View Real-time Task. This opens the page for the task that generated the instance, where you can view its details.

View instance code

In the Actions column for the target real-time instance, click the image icon and select View Instance Code to view the task code that generated the current instance.

View instance parameters

In the Actions column for the target real-time instance, click the image icon and select View Instance Parameters to view the runtime parameters for the instance, such as metrics.reporter.promappmgr.port.

Note

You cannot view instance parameters for real-time workflow instances.

Batch operations

Actions

Description

Start

Note

The required instance state for a start operation depends on the real-time engine.

  • Ververica Flink: Stopped, Run Failed, Run Succeeded.

  • Blink: Stopped, Not Started.

Start real-time development instances and start real-time workflow instances:

  1. Select one or more real-time development instances or click Select All on This Page, then click Start and select Start Real-time Development Instance/Start Real-time Workflow Instance.

  2. In the Batch Start Real-time Development Instances or Batch Start Real-time Workflow Instances dialog box, configure the start parameters.

    • Start n instances: Displays the number and names of the instances to be started. Instance names are separated by commas (,).

    • Start method: You can choose to start without a state or from a valid state.

      • Stateless Start: Starts the task without any initial state.

      • Start from Valid State: Starts the task from an existing valid state.

        Note

        If any of the selected instances are stateless, you can only select Stateless Start for the batch operation.

    • Data read point: Setting a specific start time causes all source tables that support the startTime parameter (such as Log Service, Kafka, MySQL, MongoDB, and OceanBase) to start reading data from that time.

      Note

      Settings in the SQL job code override this specified start time.

    • Business date: You can configure a business date to assign values to time variables. Time-based variables are calculated based on the specified business date. The default value is the current day.

      Note

      Settings in the SQL code override this specified business date.

  3. Click OK to start the instances.

Stop

Note

The stop operation is supported only for instances that are in the Run Failed, Running, Startup Failed, Restore Failed, or Completed state.

Stop real-time development instances and stop real-time workflow instances:

  1. Select one or more real-time development instances or select Select all on this page, click Stop, and then select Stop real-time development instance or Stop real-time workflow instance.

  2. In the Batch Stop Real-time Development Instances or Batch Stop Real-time Workflow Instances dialog box, configure the stop parameters.

    • Stop n instances: Displays the number and names of the instances to be stopped. Instance names are separated by commas (,).

    • Stop method:

      • Stateless Stop: The current state is not retained, and the instance starts without a state the next time it runs.

      • Stop with Retained State: The current state is retained, allowing you to resume from this state the next time the instance starts.

        Note

        Real-time workflow instances only support Stop with Retained State.

Take offline

Takes the selected real-time instances offline from the production environment.

Note

You can take a real-time instance offline only when its status is Stopped.

Real-time instance DAG

Click an instance name in the list of real-time instances to view its DAG on the right side of the page. By default, the DAG is centered on the selected node and expands to show one level of parent and child nodes. You can also adjust the DAG view:

  • Click the tegtwe icon to hide the list of real-time instances and enlarge the DAG.

  • Click the geg icon to hide the DAG.

  • Hover over and drag the teaga icon to expand or shrink the DAG display area.

The DAG provides a dynamic, visual representation of the node's upstream and downstream dependencies. You can also manage upstream and downstream nodes:

image

Area

Description

① Node information bar

Shows a summary of the selected node. Click View Node Details for more information.

Ververica Flink real-time engine: Includes Node details, Runtime log, Operation log, Node code, and Task parameters (supported only for compute task instances).

  • Node details: Contains basic and runtime information for the current node. Basic information includes the node name, ID, instance ID, and its associated project. Runtime information includes the running status and duration.

  • Runtime log: Displays the runtime log for the current node. If the run fails and generates dirty data, you can download the dirty data file.

  • Operation log: Displays the operation log for the node, showing when each operation was performed, by whom, and its details.

  • Runtime analysis: Uses a dashboard to display various runtime metrics, such as the number of failures and backpressure data, over a selected time period.

  • Log: Displays the Startup log, Runtime log, and Exception information.

  • Node code: Displays the specific code for the current node.

  • Task parameters: Displays the task parameters for the current node.

Real-time workflow: Includes Node details, Runtime analysis, Log, Operation log, and Node code.

  • Runtime analysis: Displays an Overview and operator execution details.

  • Log: Displays the Startup log and Runtime log.

    • Startup log: Records logs for the real-time workflow.

    • Runtime log: Currently, only Info-level logs are supported. You can click Download Log to download the runtime log as a .txt file.

      Note

      The runtime log are retained for a maximum of seven days. If no new content is added within this period, they are automatically deleted.

      Listener logs include:

      • Kafka consumer offset advancement: changes in start/end/uncommit set.

      • Message consumption details: topic, partition, offset.

      • checkpoint persistence snapshot records.

      • Timeout and re-consumption events.

② Node search and filter area

Quickly set the number of upstream and downstream levels to expand from the main node. If many nodes are expanded and difficult to view, you can search for a node by name to quickly locate it within the current DAG view.

③ Scheduling dependency graph

Displays the instance's scheduling dependency graph. You can expand more upstream and downstream nodes and perform O&M operations on them. Hover over a DAG node to view its name, type, scheduling cycle, O&M owner, and description.

④ Canvas adjustment area

Provides shortcuts to adjust the DAG's zoom level, including setting a specific zoom percentage (default: 100%), zooming in (max: 200%), zooming out (min: 20%), fitting to the canvas, and entering full-screen mode. This area also displays the node ID and name of the main node in the current DAG.

Operations on real-time instance DAG nodes

Actions

Description

Expand parent nodes

Expands the specified levels of parent or child nodes for the main node in the DAG.

Expand child nodes

View real-time task

Opens the DAG for the task node that generated the current instance. You can view task node details, upstream and downstream node information, and manage the task node. For more information, see Manage real-time tasks.

View node code

Displays the code for the task that generated the current instance.

View runtime log

Displays the runtime log for the instance node. If the task generates dirty data, you can click Download Dirty Data File to download it for local analysis. The file includes the time of generation, error content, and error reason. The file is retained for 7 days by default.

View task parameters

View the task parameters of the current instance node, such as execution.checkpointing.interval.

Note

Viewing task parameters is not supported for real-time workflow instances.

Edit development node

Navigates to the task editing page in the Dev project for the task that generated the current instance. This operation is applicable only in the Dev-Prod development mode.

Edit node

Navigates to the task editing page for the task that generated the current instance. This operation is applicable only in Basic mode.

View generation node

Views the task configuration in the Prod project that generated the current instance.

View operation log

Displays the operation log for the instance, which includes the Operation time, the Operator, and the Operation details.

View runtime analysis

Views the running information, data curves, failover details, and other parameters for the current real-time instance.

If the real-time instance uses the Ververica Flink or Alibaba Blink real-time engine, see View Job Details for more information.

Start

Starts the current real-time instance. For detailed instructions, see Start a real-time instance.

Stop

Stops a real-time instance that is Running or Completed. For completed instances, only stop without saving state is supported. Two stop methods are available: stop without saving state and stop with state preserved.

  • Stop without saving state: Does not create a savepoint. The job then restarts from a clean state.

  • Stop with state preserved: Creates a savepoint of the current state, allowing the job to resume from that point on the next run.

Note

The Alibaba Blink real-time compute engine does not support choosing between stop without saving state and stop with state preserved.

Decommission

Decommissions a real-time instance in the production environment. This action is available only for instances that are Stopped.