adaptive-architecture

command module
v0.0.0-...-0a10bb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 9 Imported by: 0

README

Adaptive Architecture

This repo contains a PoC that demonstrates a distributed system design with adaptive capabilities.

Requirements

  • MacOS
  • Prometheus
  • Grafana
  • Golang

Getting Started

After configuring your go paths, run these Makefile targets

make install
make build
make run

In grafana, import a new dashboard by loading the grafana.json file in this repo.

Controls

The services are configured to run on various sequential ports from 7773 to 7777.

To control response time use the following:

curl http://localhost:7777/slowdown # doubles response time
curl http://localhost:7777/speedup # halves response time

To control rate limit use the following

curl http://localhost:7777/reduceratelimit # halves the rate limit
curl http://localhost:7777/increaseratelimit # doubles the rate limit

To control the failure rate use the following

curl http://localhost:7777/control?percentage_reqs_fail=20 # sets failure rate to 20 percent

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL