Multitasking in NodeJS: PM2 Process Manager

Multitasking in NodeJS: PM2 Process Manager

Akilesh Rao

1 год назад

879 Просмотров

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/quick-start/
Scheduling cron jobs in NodeJS - https://youtu.be/LmDw-nbVLQk
Playlist - https://www.youtube.com/playlist?list=PL62km_yqC3ZEV0wKbLbd3CG-2zt3oDkes

⌚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 - https://www.youtube.com/playlist?list=PL62km_yqC3ZHlvkKVmR2f3W6SEzh8pRIf

Job scheduling in NodeJS - https://www.youtube.com/playlist?list=PL62km_yqC3ZEyoJa7JtdPOmzMgKuuZZ-x

NPM Tutorial Series - https://www.youtube.com/playlist?list=PL62km_yqC3ZG2su1cA-mY_6S3mSFafAS8

Javascript(Behind the scenes) - https://www.youtube.com/playlist?list=PL62km_yqC3ZE83FRlmER2sLH1T2RSoj4A

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

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

Тэги:

#javascript #childprocess #nodeJs #process #spawn #exec #multitasking #subprocess #stdio #stdin #stderr #stdout #streams #callback #shell #fork #execFile #node_js #buffer #cluster #loadtest #IPC #inter_process_communication #process_manager #pm2 #process_management
Ссылки и html тэги не поддерживаются


Комментарии: