Skip to content

Persistent mode

Persistent mode is a setting introduced in version 2.10.0. Historically, Apleno Server creates a new working directory and extracts all the files from an app inside that working directory before executing the app. This folder is deleted when the app is closed. This is useful for apps that work heavily with files and don't need to manage files depending on the current user.

But some apps, like Dash/Streamlit apps, are made like a classic web server, and generally work without changing files in the working directory. If an app is also very big (for example more than 50 MB), it can greatly slow down the starting of an app because the server will have to unzip all the files to write them in a new working directory.

This is where the Persistent mode setting of an app version settings comes in:

  • When set to Yes, all the app's files will be extracted once in a working directory. This working directory will be the only one and will be used for every instance of the app.
  • When set to No, a new and fresh working directory will be created for each instance of the app. This folder will then be deleted when the instance is closed.