Scaling Policy Derivation Tool

- Adjust the config.yml file
- Adjust the vm_profiles.json file
- Run
docker-compose up
The configuration file config.yml should be available to execute the following commands.
-
spd deriveDerives a new scaling policy for the settings specified in the config.yml file -
spd delete --pId=<some id>Deletes the policy with the specified Id -
spd policies --all=trueRetrieves and writes a file with all the policies derived. -
spd policies --pId=<some id>Retrieves and writes a file with the id specified -
spd policies --start-time=<timestamp> --end-time=<timestamp>Retrieves and writes a file with the policies for the time interval specified. Timestamp should follow the UTC format using seconds. E.gYYYY-MM-DDTHH:mm:ssZ -
spd invalidate --start-time=<timestamp> --end-time=<timestamp>Invalidates all the polices for a time window. Then, derive and schedule new ones.
To test use the mocks in /test go run mock_services.go
- Run
godoc -http=":6060"inside document folder. - Go to http://localhost:6060/pkg/github.com/Cloud-Pie/SPDT/