Multitasking in NodeJS: PM2 Process Manager

Published: 04 September 2022
on channel: Akilesh Rao
1,122
35

In the previous videos, we saw how to achieve multitasking in nodeJS using the spawn, fork, and exec methods. We also looked at the cluster module and how it lets you utilize your system’s resources to the fullest, by splitting the incoming traffic between multiple processes. This video focuses on a process manager called PM2. PM2 has a host of tools to manage processes, store logs, restart processes in case of failure, set up deployment strategies, and much more. We’ll briefly go through some of these features in this video.

This video is part of a series where we take a look at multitasking in nodeJS.

🔗LINKS:
Cluster docs - https://nodejs.org/api/cluster.html
PM2 docs - https://pm2.keymetrics.io/docs/usage/...
Scheduling cron jobs in NodeJS -    • Scheduling Cron jobs with NodeJS  
Playlist -    • Multi tasking in NodeJS  

⌚TIMESTAMPS:
0:00 - Intro
0:39 - Installation
1:01 - Basic execution
2:19 - Custom process name
2:57 - Testing the application/process
3:14 - Process status
3:58 - Stopping and deleting processes
5:16 - Restarting and reloading a process
6:48 - PM2 start options
13:42 - Creating the config file
16:36 - Working with a cluster of processes using pm2
19:22 - Using the pm2 monitor
20:03 - Running a load test to test the monitor
21:57 - Outro

🧑‍💻Other playlists:
NodeJS Authentication with Passport -    • NodeJS Authentication with Passport(2021)  

Job scheduling in NodeJS -    • Job scheduling in NodeJS  

NPM Tutorial Series -    • NPM Tutorial Series (2021)  

Javascript(Behind the scenes) -    • Javascript(Behind the scenes)  

Socials
🐤 Twitter -   / themangalorian  
📷 Instagram -   / _alt.ar_  
👔 LinkedIn -   / akilesh-rao-610357137  
🧑‍💻 GitHub - https://github.com/AkileshRao]
📝 Medium -   / akileshrao19  

#javascript #childprocess #nodeJs #process #spawn #exec #multitasking #subprocess #execFile #fork #cluster #loadtest #pm2 #processmanager #processmanagement


On this page of the site you can watch the video online Multitasking in NodeJS: PM2 Process Manager with a duration of hours minute second in good quality, which was uploaded by the user Akilesh Rao 04 September 2022, share the link with friends and acquaintances, this video has already been watched 1,122 times on youtube and it was liked by 35 viewers. Enjoy your viewing!