The King of modern Process manager

The King of modern Process manager

Pm2 will help you to diagnose the issues in your servers in a day where the developers fails to investigate in a month.

A process manager is a useful tool to ensure that a process runs continuously and can enable it to auto-start when it crashed or due to some other issue. We were using forever for almost two or three years but personally, I was not happy with forever, no notification, no APIs and no integration, and the package was not updated approximately from almost four years.

I recently had some modification at the infrastructure where I needed to update our some Node application on an AWS server. I needed a tool to solve the technical challenges of managing the Node processes and deploying the application in a very efficient manner plus some APIs for integration or custom healths of the process. So after googling, I found the award-winning process manager which is the choice of every DevOps and Developer.

No alt text provided for this image


I chose PM2, which is a handy process management tool for running Node.js applications in production environments. PM2 provides a simple command-line interface that makes it easy to get started.

No alt text provided for this image


This powerful Node module has tools for managing application processes, logging, notifications, APIs, CPU profiling, memory profiling and more. I can bet if you use PM2 once you will never look back.

No alt text provided for this image


It allows you to monitor the running services and it facilitates common system administration tasks (such as restarting on failure, stopping, reloading configurations without downtime, modify environment variables/settings, showing performance metrics and so much more). The most interesting one is a slack notification that makes PM2 different than other processes managers.

No alt text provided for this image

Why you should try PM2 Enterprise?

One of our main reason that we avail the Enterprise Plan is runtime CPU Profiling without restarting the application or without any downtime. The Team behind PM2 is really awesome because they give us the opportunity to run pm2 on the trial bases for a week and we found it really helpful. If you are interested you can contact Lisa. She is a Presales Engineer at Keymetrics.

This is the reason that we are happy with PM2 to make us able to get CPU profiling at run time, before PM2 we were not able to get CPU profiling with forever. There are other tools and nodejs built-in feature that do this job but you can expect downtime or might you need to restart your application. With PM2 getting CPU profile is just one click away wow :)

No alt text provided for this image

This runtime CPU profiling helps us to resolve the critical issue in our application without any downtime plus we are able to see CPU stats or pattern over time which help us a lot to reduce CPU usage. You can also get historical issues.

No alt text provided for this image

Thanks once again PM2 Team for making such awesome tool :)



Majid Rehman

DevOps Engineer | 3x AWS Certified | Cloud Computing ??

5 年

Once i start PM2 , It's damn true i never look back !! Good Work Adil M

回复

要查看或添加评论,请登录

Adil M的更多文章

  • Start Node application with different process manager based on ENV

    Start Node application with different process manager based on ENV

    Nodejs application often depended on Environment variables and in normal cases it is fine but in case of Docker, I will…

    3 条评论
  • Get rid of Docker "exec"

    Get rid of Docker "exec"

    The docker exec command provides the much-needed help to users while debugging and checking logs of the container and…

    8 条评论
  • Simple, fun and dynamic SSH

    Simple, fun and dynamic SSH

    The hardest moment is when the server goes down and you just received a call from you monitoring serves and it's around…

    3 条评论
  • RDS is available, Thanks Slack! [ReadTime 2 minutes]

    RDS is available, Thanks Slack! [ReadTime 2 minutes]

    There are other ways around to get a notification when RDS is available but that might be email or SNS etc, Its take a…

    1 条评论
  • Create DynamoDB in 30 Seconds [Readtime 4 mint]

    Create DynamoDB in 30 Seconds [Readtime 4 mint]

    In my previous article, I shared about how to run DynamoDB locally using Docker, In today article I am going to share…

    1 条评论
  • Configure Multiple Environments from the Same DockerFile [Part 1]

    Configure Multiple Environments from the Same DockerFile [Part 1]

    Everyone moving toward Docker because Docker is awesome :). But when its come to run in a different environment for…

    4 条评论
  • Setting Up DynamoDB locally

    Setting Up DynamoDB locally

    The Docker version of DynamoDB lets you write and test applications without AWS account. As a DevOps, one should…

    5 条评论
  • Terraform (AWS) mistakes to avoid

    Terraform (AWS) mistakes to avoid

    provider "aws" { region = "us-west-2" access_key = var.credentials.

  • The Flaws of the average when collecting System Metrics

    The Flaws of the average when collecting System Metrics

    The above picture tells the whole story, this is what happened to us when we were collecting the average CPU usage. We…

    3 条评论

社区洞察

其他会员也浏览了