simulator

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 9 Imported by: 0

README

Simulator

Start a simulation with load balancer and event stream.

How to run

Run like go run *.go <url> [<event_file>] [<output_file>]. Default values for event_file and output_file are data/events.csv and logs/YYYY-MM-DD/HH:ii:ss.log respectively. Notes and data/events.csv has a lot of events, so you may need multiple worker nodes. We recommand at least 8 worker nodes with 4 vCPU for each node (e.g. EC2 m4.xlarge).

$ go run *.go http://localhost:8111
$ go run *.go http://localhost:8111 data/events_small.csv
$ go run *.go http://localhost:8111 data/events_small.csv output.log

If you want to generate your own event stream, you can use generate_event_streams.py on utils. The CSV file only contains FunctionName, StartTime pairs, so you can easily create another simple simulation scenario.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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