21 questions for “Deployment & Process Managers (PM2)”

Found in 1 field. Select a question to see its full answer.

Information Technology

21 questions in 1 technology

#QuestionTechnologyTopicLevel
1How do you configure PM2 using an ecosystem.config.js file rather than passing options directly on the command line? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Intermediate
2What problem does PM2 solve for running a Node.js application in production, beyond just executing 'node server.js'? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Beginner
3How do you configure PM2 to automatically restart your Node.js application after a server reboot? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Intermediate
4How does PM2's built-in log management work, and how would you configure log rotation to prevent log files from growing unbounded? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Advanced
5What does PM2's built-in monitoring dashboard (pm2 monit, or PM2 Plus) show, and what metrics are most useful for production operations? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Advanced
6What is a Kubernetes Deployment's rolling update strategy, and how does it apply to updating a running Node.js application? Node.js › Docker & DeploymentNode.jsDocker & DeploymentAdvanced
7What is the 'detached' option when spawning a child process, and when would you use it? Node.js › Child Processes & Process ManagementNode.jsChild Processes & Process ManagementAdvanced
8What is the purpose of a HEALTHCHECK instruction in a Dockerfile for a Node.js application? Node.js › Docker & DeploymentNode.jsDocker & DeploymentIntermediate
9How do you correctly handle OS signals like SIGTERM and SIGINT in a Node.js application to implement graceful shutdown? Node.js › Global Objects & the process ObjectNode.jsGlobal Objects & the process ObjectAdvanced
10How do you implement graceful shutdown for a Node.js background worker process to avoid losing or corrupting in-progress jobs? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced