topdog

command module
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 18 Imported by: 0

README

topdog

topdog is a simple Go application that is used to demonstrate some [Istio] features. See the full example at https://github.com/ancientlore/istio-talk.

topdog is designed to be run with three tiers. To build it locally:

$ got get github.com/ancientlore/topdog

Run the application from the topdog folder where you built it. To start the backend tier:

$ ./topdog -service_port 5002

To start the middle tier:

$ ./topdog -service_port 5001 -backend http://localhost:5002

To start the UI:

$ ./topdog -service_port 5000 -midtier http://localhost:5001

Then nagivate to http://localhost:5000/ to see the user interface.

Alternately, you can run it all in one step using:

$ ./topdog -service_port 5000 -midtier http://localhost:5000 -backend http://localhost:5000

This is the same as just running topdog, since those values are the defaults.

In this case, it will use the same process for all three.

When running the backend, you can set the version command-line argument (or the VERSION environment variable) to values from 1 to 3. This makes the service weigh its results differently.

Documentation

Overview

topdog is a service used to demonstrate Istio features.

It is designed to run in a 3-tier mode, with a UI, a middle tier, and a backend tier.

Jump to

Keyboard shortcuts

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