Herve Quatremain
2019-10-17 dfaa09a5cb0c15719be2e78df6711a1547398334
New applications for chapter 4 Scaling Applications in OpenShift
2 files added
6 ■■■■■ changed files
php-scale/index.php 3 ●●●●● patch | view | raw | blame | history
stress/Dockerfile 3 ●●●●● patch | view | raw | blame | history
php-scale/index.php
New file
@@ -0,0 +1,3 @@
<?php
  print "I am running on host -> " . gethostname() ." (" . $_SERVER['SERVER_ADDR'] . ")" . "\n";
?>
stress/Dockerfile
New file
@@ -0,0 +1,3 @@
FROM registry.access.redhat.com/rhscl/httpd-24-rhel7
CMD ab -dSqrk -c 20 -n 50000000 http://${SCALE_SERVICE_HOST}:${SCALE_SERVICE_PORT}/index.php