GithubHelp home page GithubHelp logo

isabella232 / microservice-graph-explorer-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hootsuite/microservice-graph-explorer-test

0.0 0.0 0.0 346 KB

Runs services that implement the Health Checks API to be used when testing the Microservice Graph Explorer

License: Other

Go 100.00%

microservice-graph-explorer-test's Introduction

Introduction

This project uses Docker and Docker Compose to build and run test services that can be used to demo the Health Checks API and Microservice Graph Explorer.

Running the Services

Install the Build Tools

To build and run the test services, you must install the following:

Docker

Install Docker from https://docs.docker.com/install/.

Docker Compose

Install Docker Compose from https://docs.docker.com/compose/install/.

Run the Services

Each service is written in Go and exposes the Health Checks API using the Go Health Checks Framework.

To build and run the services using Docker compose by running the follwing command:

docker-compose up -d --build

Check Services are Running

Once you have the services running locally in Docker, you can do a sanity check to make sure each service is running by loading the /status/about endpoint for demo app, service 1 and service 2.

Exploring the Service Graph

Check the Microservice Graph Explorer app is running by loading http://localhost:9000 in your favorite browser. At this point you should see the homepage of the Microservice Graph Explorer with a link to Test Service Graph under Quick Links.

Microservice Graph Explorer Homepage

To start exploring, click on Test Service Graph and you'll see a page like: For more info, watch the demo video For more info, watch the demo video

Advanced Testing

If you want to simulate other failure types, like a warning or a cascading failure, you can do this by modifying the local.yml conf file for a service and then rebuild/deploy the services using Docker Compose.

Example - A Cascading Failure

To make the Mongo dependency of Service 1 fail, open docker/service-1/conf/local.yml and update the MONGO item under checks from result: "OK" to result: "CRIT" and enter an error message like details: "Can't connect" and then run:

docker-compose up -d --build

To make the Mongo dependency fail randomly, change the value randomlyfail: "false" to randomlyfail: "true" and then build/deploy again using:

docker-compose up -d --build

Stopping the Services

To stop the services running on your machine, run:

docker-compose down --rmi all

How To Contribute

Contribute by submitting a PR and a bug report in GitHub.

Maintainers

microservice-graph-explorer-test's People

Contributors

hootadam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.