Release 1.0.0
Liveness and Readiness health check for egg application
$ npm i egg-healthy --save
Configure plugin.js
// {app_root}/config/plugin.js exports.healthy = { enable: true, package: 'egg-healthy', };
Configure config.js
// {app_root}/config/config.default.js exports.healthy = { readinessPath: 'custom path for readiness check', livenessPath: 'custom path for liveness check', };
see config/config.default.js for more detail.
You can run egg in kubernetes well with this plugin, you can set Liveness and Readiness Probes when create pod.
livenessProbe: httpGet: path: /healthy/liveness port: 7001 initialDelaySeconds: 3 periodSeconds: 3 readinessProbe: httpGet: path: /healthy/readiness port: 7001 initialDelaySeconds: 3 periodSeconds: 3
Please open an issue here.
MIT
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
egg-healthy
Liveness and Readiness health check for egg application
Install
Usage
Configuration
Configure plugin.js
Configure config.js
see config/config.default.js for more detail.
Run with Kubernetes
You can run egg in kubernetes well with this plugin, you can set Liveness and Readiness Probes when create pod.
Questions & Suggestions
Please open an issue here.
License
MIT