What is StrongLoop Process Manager? It’s an enterprise-grade production runtime process manager for Node.js. StrongLoop Process Manager is built to handle both the vertical and horizontal scaling of your Node applications with ease.
Configuring your Digital Ocean droplet
- Sign up or login to Digital Ocean if you haven’t already
- Create a droplet and
sshinto your instance
- Install the latest version of Node.js using your favorite package manager
- Install the latest version of the StrongLoop Process Manager CLI tools with this command:
npm install -g strong-pm
- Take a snapshot of your Droplet so you won’t have to reinstall these tools next time
Start the remote strong-pm server
Now start the
[root@pm-server1~]# sl-pm -l 7777
sl-pm: StrongLoop PM v5.1.0 (API v6.1.0) on port <code>7777
sl-pm: Base folder <code>/home/chandrika/.strong-pm
sl-pm: Applications on port <code>3000 + service ID
Browse your REST API at http://127.0.0.1:7777/explorer
This command starts StrongLoop Process Manager, which:
- Restarts your application if it crashes, with zero-downtime
- Sends application logs and errors to
- Makes sure your
strong-pmdaemon runs as the unprivileged
- Adjusts file descriptor limits
- Enables core dumps for the daemon if your system is configured for it
Now, setup a local development environment
Install the StrongLoop CLI tools on your local development machine.
npm install -g strongloop
In your application directory run
slc arc, opening it by default in a web browser window.
Build & Deploy
From the landing page of StrongLoop Arc, click on the Build & Deploy tab.
You can now deploy your Express application by building a
tar file or using
git if your application is on a
git repository. Once the application is built successfully, deploy it to your
pm server by entering the hostname, port and the number of processes.
Manage your Processes
Once your app is deployed successfully, switch to the “Process Manager” tab. Add the hostname and port of your
pm server and click “Activate”. Your process IDs should now be listed in the PIDs column.
If you want to run your app on multiple servers, you can create Droplets from the Digital Ocean image you created earlier. Start the
pm server and deploy your applications on each of your
pm servers. After your applications are deployed, add them in the Process Manager GUI. You should now be able to check app status, resize, start, stop and restart cluster from the Process Manager page.
Watch the demo! Check out this short video that gives you an overview of the StrongLoop Process Manager.
Sign up for the webinar! “Best Practices for Deploying Node.js Applications in Production” on April 16 with StrongLoop and Node core developer Sam Roberts.
In the coming weeks, look for more enhancements to the StrongLoop Process Manager and its runtime capabilities. But for now, here’s a few additional technical articles that dive into greater detail on how to make the most of this release:
- Best Practices for Deploying Node in Production
- How to Test Node.js Deployments Locally Using StrongLoop Process Manager
- How to Run StrongLoop Process Manager in Production
- How to Secure StrongLoop Process Manager with SSH
- Best Practices for Deploying Express Apps with StrongLoop Process Manager
- How to Create and Run StrongLoop Process Manager Docker Images