dmportella/expressjs

By dmportella

Updated 3 months ago

Simple expressjs site with a status route for simulating web site failure.

Image
Networking
Web Servers
Developer Tools

100K+

ExpressJs

dockeri.co

Thank you for over 350,000 downloads

ko-fi

Simple espress js site with route to simulate site failure.

Built for testing kubernetes, EKS and RANCHER instances.

Repository at: https://github.com/dmportella/rancher-docker-node

Normal route

Web site should be available on port 8080.

Health check

Returns a JSON payload with basic process and os information that is useful.

GET /__health
{
	version: '2.0.0',
	status: 'OK',
	hostname: 'os.hostname()...',
	versions: 'process.versions...',
	process: {
		uptime: 'process.uptime...',
		memoryUsage: 'process.memoryUsage()...',
		platform: 'process.platform...',
		arch: 'process.arch...',
		title: 'process.title...'
	},
	cpus: 'os.cpus()...',
	network: 'os.networkInterfaces()...',
	environment: 'process.env...'
}

Routes

  • Health check url.: /__health/
  • Set to throw 500: /__health/throw500
  • Set to time out: /__health/timeout
  • Set kill the process: /__health/killprocess

You can force the instance to throw http 500, timeout or you can kill the process.

Docker Pull Command

docker pull dmportella/expressjs