Skip to content

Commit

Permalink
#57 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyweston committed May 8, 2018
1 parent 909199d commit dbbd36c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions site/src/main/tut/docs/rrd.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ A round robin database is a fixed size database meaning you can leave the data l

## Cleaning Up

Because we have to define what's in the RRD upfront, you'll have to delete the `~/.temperature/temperature.rdd` if the configuration changes. Starting the server for the first time will initialise the RRD; it will create "archives" for every machine it's expecting to monitor. These are passed in as command line arguments when you start up the server (for example `kitchen`, `garage` and `bedroom`).

$ java -jar temperature-machine-2.1.jar bad.robot.temperature.server.Server kitchen garage bedroom

> Don't forget to set the hostname of each machine to match. So for the above, the server might be named `kitchen` and a RRD "archive" will be created along with `garage` and `kitchen`. If a client with a hostname of `outside` connects, it won't have an archive to write data to and you won't be able to log it's temperatures.
Because we have to define what's in the RRD upfront, you'll have to delete the `~/.temperature/temperature.rdd` if the configuration changes. Starting the server for the first time will initialise the RRD; it will create "archives" for every machine it's expecting to monitor. These are found in `~/.temperature/temperature-machine.cfg`.

So, if you need to add additional machines after running the server for the first time, you'll need to do the following.

`rm ~/.temperature/*`

Starting the server up when the `~/temperature.rrd` already exists **doesn't** delete it.

A change in the configuration after the RRD has been created will not recreate or delete it - the configuration will be ignored until the RRD is deleted and the software restarted.

0 comments on commit dbbd36c

Please sign in to comment.