heartbeat

command
v0.14.41 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

README

Heartbeat Service

The Heartbeat Service is a sidecar service that performs health checks for experiment instances running in the same Kubernetes pod and reports them to the Locate API.

On start, it establishes a WebSocket connection with the Locate Service and sends an initial registration message. Subsequently, it performs periodic instance health checks and sends the results to the Locate API.

Local Development

To run the service locally, build the package and pass a test URL in the -heartbeat-url flag.

$ go build
$ ./heartbeat \
    -heartbeat-url=ws://locate-dot-mlab-sandbox.appspot.com/v2/platform/heartbeat?key=${API_KEY} \
    -registration-url=https://siteinfo.mlab-sandbox.measurementlab.net/v2/sites/registration.json \
    -hostname=ndt-mlab1-lga0t.mlab-sandbox.measurement-lab.org \
    -services=ndt/ndt7=ws:///ndt/v7/download,ws:///ndt/v7/upload \
    -services=ndt/ndt7=wss:///ndt/v7/download,wss:///ndt/v7/upload

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