Home

Awesome

Issue Tracker Docker Pulls CI status

Darzee

Provides web interface for Mongoose - storage performance testing tool maintained by Dell EMC.

Contents

  1. Overview<br/>   1.1 Launch Mongoose run<br/>     1.1.1 Nodes selection<br/>     1.1.2 Configuration<br/>     1.1.3 Scenario<br/>   1.2 Monitoring<br/>     1.2.1 Mongoose runs table<br/>     1.2.2 Mongoose run statistics<br/>       1.2.2.1 Mongoose logs<br/>       1.2.2.2 Mongoose charts<br/>   1.3 Terminate Mongoose run<br/>

  2. Configuration<br/>   2.1 Deploying ports<br/>   2.2 Image versions<br/>   2.3 Container configuration<br/>     2.3.1 Prometheus<br/>   2.4 Other parameters <br/>

  3. Build and run<br/>

  4. Deployment<br/>   4.1 Docker<br/>   4.2 Kubernetes<br/>      4.2.1 Test Darzee in Kubernetes using predefined Mongoose environment<br/>        4.2.1.1 Mongoose base<br/>        4.2.1.2 Mongoose Pravega driver<br/>

  5. Troubleshooting<br/>   5.1 Prometheus inactivity<br/>   5.2 Missing load step node address<br/>   5.3 Chart.js error on start up<br/>

  6. Open issues<br/>   6.1 Mongoose run logs unavailability<br/>

1. Overview

Darzee lets you configure, run and monitor Mongoose runs.

1.1 Launch Mongoose run

Mongoose launching process is divided in 3 steps:

1.1.1 Nodes selection

Multiple Mongoose run nodes could be selected. <b>First</b> selected node will be the entry one. <br/>

1.1.2 Configuration

Configuration is presented as an editable JSON tree. <br/> Initially, the configuration is fetched from the entry node.

1.1.3 Scenario

Mongoose's scenarios are written in JavaScript. It's possible to write JavaScript code in the UI using code editor.

1.2 Monitoring

1.2.1 Mongoose runs table

Discovered Mongoose's runs are displayed within the runs table.

There's 3 possible status of Mongoose runs:

You could see Mongoose run status or run details by pressing the status icon.

By pressing run status icon, you'll be redirected to run statistics screen. See Mongoose logs, Mongoose charts.<br/>

1.2.2 Mongoose run statistics

If the run is still being processed, the data will be updating dynamically based on the Mongoose's exported metrics and generated logs.

1.2.2.1 Mongoose logs

1.2.2.2 Mongoose charts

Charts are drawn based on Mongoose's exported metrics. There're 4 types of Mongoose charts available:

1.3 Terminate Mongoose run

Processing Mongoose run could be terminated from the UI.

2. Configuration

UI's configuration depends on the parameters listen within .env file.

2.1 Deploying ports

The following parameters are being used to specify deploying ports of the services:

2.2 Image versions

The following parameters are being used to specify docker image version of a specific service:

2.3 Container configuration

2.3.1 Prometheus

Prometheus configuration is being rewritten in a runtime in order to add targets dynamically. To implement this, we're using internal container volume.

2.4 Other parameters

3. Build and run

3.1 Build

3.1.1 Build docker image

Docker image is being builted via Gradle. To build Docker image, use:

$ ./gradlew buildImage

3.1.2 Build project

Darzee has been created with Angular 7.0. You could build it just like any Angular app.

$ npm install
$ ng build 

3.2 Run

3.2.1 Run via docker

Darzee is deploying via docker image. The image contains front-end files, nodeJS server to serving the app and Prometheus. In order to have the access from outside, NodeJS server should be mapped to port 8080 and Prometheus should be mapped to port 9090:

$ docker run --env-file .env -p 8080:8080 -p 9090:9090 emcmongoose/darzee

Note that you should use project's .env file.

3.2.2 Run in development mode

Darzee has been created with Angular CLI. It could be ran in development mode using the appropriate command:

$ npm install
$ ng serve 

4. Deployment

4.1 Docker

Darzee image is being loaded into the docker hub.

bash
docker run \
    --env-file .env \
    -p {DARZEE_PORT}:{DARZEE_PORT} \
    -p {PROMETHEUS_PORT}:{PROMETHEUS_PORT} \
    emcmongoose/darzee[-<VERSION>] 

Note that you should use project's .env file.

4.2 Kubernetes

Darzee can be deployed in a kubernetes cluster. Examples of kubernetes object discription files are in the directory /console/kubernetes. <br/> In order to connect with the outside network, Darzee uses Kubernetes service /console/kubernetes/darzee-service.yml

Run Darzee as a deployment: <br/>

$ bash kubectl apply -f /console/kubernetes/darzee-deployment.yaml
$ bash kubectl apply -f /console/kubernetes/darzee-service.yml

4.2.1 Test Darzee in Kubernetes using predefined Mongoose environment

The project contains scripts for deploying predefined Mongoose environment in order to run the UI. <br/> Mongoose's environments are described via Kubernetes deplyoments. Note that there's 2 type of ports for Mongoose:

4.2.1.1 Mongoose base

$ bash cd /console/src/assets/configuration-examples/kubernetes/mongoose-base/tools
$ bash chmod +x  create-mongoose-environment.sh
$ bash ./create-mongoose-environment.sh 

This will deploy 2 pods, each of them will contain 5 Mongoose instances. <b>Remote API ports are 9991...9994, 9999, RMI ports are 1091...1094, 1099</b>. Every one of them are connected to the web outside of k8s cluster via the service. You can get service's external IP via

$ bash kubectl get svc mongoose-base-svc
$ bash kubectl get svc mongoose-base-svc-2

Combining external IP with Mongoose ports, you'll get an access to it from the network outside of cluster.

In order to delete the environment, use:

$ bash cd /console/src/assets/configuration-examples/kubernetes/mongoose-base/tools
$ bash chmod +x  delete-mongoose-environment.sh
$ bash ./delete-mongoose-environment.sh 

4.2.1.2 Mongoose Pravega driver

$ bash cd /console/src/assets/configuration-examples/kubernetes/mongoose-pravega/tools
$ bash chmod +x  create-mongoose-pravega-environment.sh
$ bash ./create-mongoose-pravega-environment.sh 

This will create a deployment and a service. The deployment will contain instance of Mongoose Pravega driver, the service will connect it to the network outside of cluster via <b>remote API port 9999</b>. <br/> Note that in kubernetes object description for Mongoose pravega driver, you should specify a running Pravega controller IP (<b><PRAVEGA_CONTROLLER_IP></b>), otherwise it won't work.

args: [--run-node, --storage-namespace=mongoose-pravega-scope, --run-port=9999, --load-step-node-port=1099, 
          --storage-net-node-addrs=<PRAVEGA_CONTROLLER_IP>, --load-batch-size=100, --storage-driver-limit-queue-input=10000]

You can get service's external IP via

$ bash kubectl get svc mongoose-pravega-svc

In order to delete the environment, use:

$ bash cd /console/src/assets/configuration-examples/kubernetes/mongoose-pravega/tools
$ bash chmod +x  delete-mongoose-pravega-environment.sh
$ bash ./delete-mongoose-pravega-environment.sh 

5. Troubleshooting

5.1 Prometheus inactivity

If Darzee's container Prometheus is not active, it's possible to use a custom one with some limitations. <br/> It's recommended to restart the image in case of Prometheus inactivity thought.

5.2 Missing load step node address

In case data for the load step is fetched from the Prometheus, but its IP address hasn't been found, it's possible to write it from the UI.

5.3 Chart.js error on start up

<b>NOTE: Actual for 06.08.2019</b> </br>

With Angular builder version change, some errors are popping up. We've experienced issues with the charts library we're using: after building Darzee docker image from Gitlab CI, the UI hasn't been starting up because of invalid linking of the charts library with the UI via Webpack. Althought, it has been working correctly with manual build. </br> Different Angular CLI and Angular versions is the reason why the issue took a place. It was resolved here. </br>

<b>Related issues: </b>

6. Open issues

We're constantly working on making the UI and Mongoose project overall better. In this section, you'd find a list of a high-priority issues that would be fixed as soon as possible.

6.1 Mongoose run logs unavailability

Mongoose run's table is constructed based on the retrieved data from Prometheus: run ID, additional nodes, load step ID, etc. The list doesn't contain entry node address. <br/> <b>Now</b>: Mongoose run's entry nodes addresses are stored within browser's local storage. It helps to retain the information about entry nodes as long as the local storage not getting cleaned up, yet it'd be saved even if the browser and/or tab has been closed.<br/> We need entry node's address in order to get logs via POST request with Mongoose Logs API to its entry node. <br/> <b>Problem</b>: while working outside of the browser from which Mongoose run has been launched (other browser, other computer, etc.), the data about run's entry node is missing, thus logs couldn't be gathered via the Logs API.<br/> <b>Temporary solution</b>: see Missing load step node address.

Track progress on the issue here.