Skip to main content Skip to complementary content

Creating preload tasks from Tasks

Preloading large apps provides immediate access for users, enhancing their experience by bypassing the time-consuming process of loading apps into memory. For example, preloading apps in the morning before work hours allows users to start work without waiting for apps to load.

Managing preload tasks

As an administrator, you can control app preloading through the Qlik Management Console, CLI, or API. Specify when to preload apps, how long they should remain loaded in memory, and on which nodes preloads are allowed.

For efficient resource management, consider configuring separate reload nodes to avoid taking resources from nodes where apps are preloaded and users work with apps. Select whether a node can do reloads, preloads, or both in the node settings. For more information, see Creating a node.

Configure sticky load balancing on the virtual proxy to ensure that when users open an app, it happens on the node where the app was preloaded. For more information, see Adding load balancing

You can chain preload tasks with reloads. For example, you can reload an app and then preload it, either on the same node or on separate nodes. For more information, see Creating a task chain

Monitoring preload tasks

The Tasks overview page shows configured preload tasks. There are two columns specific for preload tasks that you can add from the column picker:

  • Time to live (minutes): The configured number of minutes the app will stay loaded after preload.

  • Dedicated preload nodes: A list of the nodes that are selected for preloads. If empty, all nodes are available.

The Start and Stop buttons are disabled for preload tasks. To stop a preload or remove a preloaded app from memory, you need to restart the engine.

On the Engine health overview page, you can see how many apps are loaded into Engine. View the engine health details for a node to see which apps are loaded on the node.

Access to preload tasks

Access rights for preload tasks are identical to those for reload tasks. Preload tasks are treated like reload tasks in security rule properties and resource filters.

Creating a new preload task

You can create a preload task for an app from the Tasks overview page. The creation of a new preload task can also be initiated from Associated items on the App edit page, see Creating preload tasks.

Do the following:

  1. Open the QMC: https://<QPS server name>/qmc

  2. Select Tasks on the QMC start page or from the StartArrow down drop-down menu to display the overview.

  3. Click Create new Create new in the action bar.

    The Edit preload task page is displayed.

  4. Edit the properties.

    1. Type the name of the preload task in the Name field.
    2. Click Select app in the App name field.

      A dialog opens. In the dialog, double-click the app that you want to preload by this task.

      The dialog closes and the selected app is displayed in the App name field.

    3. You can change the Execution properties, see descriptions below. The task is Enabled Check mark by default. Clear the selection to disable the task.

    4. A task must have at least one trigger to be executed automatically. Manage the triggers by clicking ActionsArrow down in the Triggers table heading and selecting one of the following:
      • Create new once-only trigger, Create new hourly trigger, Create new daily trigger, Create new weekly trigger, or Create new monthly trigger. These are trigger shortcuts and the trigger that you select is added to the table instantly. The start value for the trigger is set to 5 minutes from when it was created and the trigger is enabled.
      • Create new scheduled trigger or Create new task event trigger to create a new trigger of the selected type (see the property descriptions below). A dialog opens. Edit the trigger and click OK to close the dialog and add the trigger to the table.
      • Delete if you want to delete the trigger that is selected in the table.
      • Edit if you want to open the edit dialog for the trigger that is selected in the table. Edit the trigger and click OK to close the dialog and save your changes.
    5. You can change the Preload settings, see descriptions below. By default, an app is preloaded for 240 minutes and all nodes are available for preloads.

    6. Optionally, apply tags.
    7. Optionally, apply custom properties.
  5. Click Apply in the action bar to apply and save your changes.

    Successfully added is displayed at the bottom of the page.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!