Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rtevans committed Mar 31, 2016
1 parent 21c246d commit 3660402
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,31 +139,26 @@ batch_system = SLURM
```
Set these paths as needed. The raw stats data will be stored in the `archive_dir` and processed stats data in the `pickles_dir`. `machine` should match the system name used in the RabbitMQ server `QUEUE` field. This is the only field that needs to match
anything in the `monitor` subpackage.

3. Install `tacc_stats`
```
$ pip install tacc_stats/
```

4. Start the RabbitMQ server reader in the background, e.g.
```
$ nohup listend.py > /tmp/listend.log
```
Raw stats files will now be generated in the `archive_dir`.

5. A PostgreSQL database must be setup on the host. To do this, after installation
run
```
$ python manage.py migrate
```
This will generate a table named `machine_db` in your database.

6. Setup cron jobs to process raw data and ingest into database. Add the following to your
cron file
```
*/15 * * * * source /home/rtevans/testing/bin/activate; job_pickles.py; update_db.py > /tmp/ls5_update.log 2>&1
```

7. Next configure the Apache server (make sure it is installed and the `mod_wsgi` Apache module is installed)
A sample configuration file, `/etc/httpd/conf.d/ls5.conf`, looks like
```
Expand All @@ -184,10 +179,8 @@ Require all granted
</Directory>
</VirtualHost>
```

8. Start up Apache


### Running `job_pickles.py`
`job_pickles.py` can be run manually by:

Expand Down

0 comments on commit 3660402

Please sign in to comment.