Skip to content

ycfreeman/php-nginx-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP FPM Benchmark Tools

Quick Start

To quickly deploy all the things, use the following command:

kubectl apply \
  --filename https://raw.githubusercontent.com/scmp/php-nginx-demo/master/k8s/all.yaml

This will bring up all components in there including the namespace monitoring for monitoring tools.

If you already have prometheus and grafana in the cluster, , use the following command:

kubectl apply \
  --filename https://raw.githubusercontent.com/scmp/php-nginx-demo/master/k8s/without-monitoring.yaml

This will only bring up php-fpm benchmark components without monitoring tools.

Setup Grafana

  • Configure data source for Grafana
    Configuration / Data Sources / Add data source

  • Import the dashboard using id 10757
    Dashboards / Manage / Import

    Reference: https://grafana.com/grafana/dashboards/10757

  • To access grafana you can use port forward functionality

    kubectl port-forward --namespace monitoring service/grafana 3000:3000
    

Clean up

To remove all components, use the following commands:

kubectl delete \
  --filename https://raw.githubusercontent.com/scmp/php-nginx-demo/master/k8s/all.yaml

#or

kubectl apply \
  --filename https://raw.githubusercontent.com/scmp/php-nginx-demo/master/k8s/without-monitoring.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 93.1%
  • Dockerfile 6.9%