Create/Edit Application
Overview

To create a new Application you need to onboard a Server first on which the Application will be hosted.
Key Sections
Name
The user-defined name for the application. You can choose to click on the dice button on the right to choose a random name.
Server
Select the server from the dropdown that will host this application.
Directory on server (absolute path)
This field specifies the local path on the server where the application files will be downloaded from the remote repository.
ClusterWare populates that field automatically with a directory named after the cluster name in the user's home directory.
Instances
This section specifies the number of instances (processes) that ClusterWare will start as part of this application.
Number of instances to run: Specify how many instances of your application you want to run on this server.
Starting port: Specify the port on which the instance #0 will be listening to incoming requests. Each subsequent application instance started by ClusterWare will receive a port number incremented by one.
The common practice is to maximize server utilization by running one single-threaded application instance per CPU core (#CPUs = #instances).
To prevent starting multiple application instances listening for connections on the same port number your application code needs to use the PORT environment variable to start the HTTP server. Example.
See the full list of environment variables passed by ClusterWare to an application instance.
Alerts & Metrics
CPU Usage
Toggle on/off, and specify a percentage above which alerts should be triggered.
Memory Consumption
Toggle on/off, and specify an amount in MB above which alerts should be triggered.
Not all online
Enable or disable automatic alerts if any application instance is not running.
Last updated