Skip to content

A test app for measuring downtime during upgrade in integreatly

Notifications You must be signed in to change notification settings

integr8ly/workload-web-app-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

workload-web-app

A test app for simulating the workload on the openshift cluster based on end-user use cases in order to monitor the downtime of component products in integreatly during an upgrade.

Deploying the Application on the cluster

The app works for both RHMI 1.x and RHMI 2.x clusters. To deploy the webapp on your cluster:

RHMI 1.x Clusters

To deploy the app to a RHMI 1.x cluster, you will need to:

  1. Login to the RHMI 1.x cluster using oc login command
  2. Set the following environment variables:
    # These env vars are required
    export RHMI_V1=true
    export USERSSO_NAMESPACE=<user sso namespace>
    export THREESCALE_NAMESPACE=<3scale namespace>
    export AMQONLINE_NAMESPACE=<amqonline namespace>
    # This env var is optional. Only set it if you want to view the metrics data using the Grafana dashboard
    export GRAFANA_DASHBOARD=true
    
  3. Then run this command to deploy the app: make local/deploy

RHMI 2.x Clusters

To deploy the app to a RHMI 2.x cluster, you will need to:

  1. Login to the RHMI 2.x cluster using oc login command
  2. Set the following environment variables:
    # This env var is optional. Only set it if you want to view the metrics data using the Grafana dashboard
    export GRAFANA_DASHBOARD=true
    
  3. Then run this command to deploy the app: make local/deploy

RHOAM Clusters

To deploy the app to a RHOAM cluster, you will need to:

  1. Login to the RHOAM cluster using oc login command
  2. Set the following environment variables:
    # Mandatory env var. If not set, assuming it is false - deploying for RHMI installation type. 
    export RHOAM=true
    
    # This env var is optional. Only set it if you want to view the metrics data using the Grafana dashboard
    export GRAFANA_DASHBOARD=true
  3. Sandbox RHOAM only. Export an additional envar to switch web-app into a multitenant-managed-api compliant mode:
    export SANDBOX=true
  4. Then run this command to deploy the app: make local/deploy

Delete the app

To delete the app, run:

make local/undeploy

Note: It might take up to 15 minutes for 3scale to fully remove the service (Product) hence you need to wait this long after undeploy if you want to deploy the workload-web-app again. In case the service is not fully removed yet the deployment fails with System name has already been taken error.

About

A test app for measuring downtime during upgrade in integreatly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 61.8%
  • Shell 33.3%
  • Makefile 3.3%
  • Dockerfile 1.6%