Once you created a Bucket on Keymetrics you will get a public and a secret key. Keymetrics.io is a monitoring service built on top of PM2 that allows to monitor and manage applications easily (logs, restart, exceptions monitoring…). This is quite interesting in a development container when the host files are exposed to the container as a VOLUME. Replacing pm2-runtime with pm2-dev will enable the watch and restart features. You may want to tell Developers to program inside a container to keep a consistent environment between development, test and production. Read more about application state management here Development environment ![]() You can modify this delay by setting the kill_timeout option inside your application configuration file. on ( ' SIGINT ', function () ) īy default PM2 will wait 1600ms before sending a final SIGKILL signal. In your Dockerfile add this line to install PM2: Automatic Source Map Discovery and Resolving Supportįurther than that, using PM2 as a layer between the container and the application brings PM2 powerful features like application declaration file, customizable log system and other great features to manage your Node.js application in production environment.Automatic Application Monitoring to keep it always sane and high performing.Second Process Fallback for High Application Reliability.It solves major issues when running Node.js applications inside a container like: The goal of pm2-runtime is to wrap your applications into a proper Node.js production environment. ![]() Start today using pm2-runtime, a perfect companion to get the most out of Node.js in production environment.
0 Comments
Leave a Reply. |