Skip to content

Commit

Permalink
take out references to old cronjobs in docs and only mention crontabber
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer committed Jan 8, 2013
1 parent a54624e commit 2a7f6f7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
13 changes: 13 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@ This is the binary which processes breakpad crash dumps into stack traces:
::
make minidump_stackwalk

Create partitioned reports_* tables
------------------------------------------
Socorro uses PostgreSQL partitions for the reports table, which must be created
on a weekly basis.

Normally this is handled automatically by the cronjob scheduler
:ref:`crontabber-chapter` but can be run as a one-off:
::
make virtualenv
. socorro-virtualenv/bin/activate
export PYTHONPATH=.
python socorro/cron/crontabber.py --job=weekly-reports-partitions --force

Populate PostgreSQL Database
````````````
Refer to :ref:`populatepostgres-chapter` for information about
Expand Down
14 changes: 0 additions & 14 deletions docs/populatepostgres.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,3 @@ After modifying CSV files, use the import script to load the data
::
cd tools/dataload
./import.sh

Create partitioned reports_* tables
------------------------------------------

FIXME still uses old config system, adjust the postgres user/host/pass if needed:
::
cp scripts/config/commonconfig.py.dist scripts/config/commonconfig.py
cp scripts/config/createpartitionsconfig.py.dist scripts/config/createpartitionsconfig.py

This script should be run on a weekly basis:
::
export PYTHONPATH=.:scripts/config
./scripts/createPartitions.py

26 changes: 14 additions & 12 deletions docs/prodinstall.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,26 @@ specifying the PREFIX:
::
make install PREFIX=/usr/local/socorro


Install Socorro cron jobs
Install configuration to system directory
````````````
From inside the Socorro checkout, as the *root* user:
From inside the Socorro checkout, as the *root* user
::
ln -s /data/socorro/application/scripts/crons/socorrorc /etc/socorro/
cp puppet/files/etc_crond/socorro /etc/cron.d/
cp config/\*.ini /etc/socorro/

It is highly recommended that you customize the files
to change default passwords, and include the common_*.ini files
rather than specifying the default password in each config file.

Socorro's cron jobs are moving to a new cronjob manager called :ref:`crontabber-chapter`.
:ref:`crontabber-chapter` runs every 5 minutes from the system crontab,
and looks inside the config/ directory for it's configuration.
Install Socorro cron job manager
````````````
Socorro's cron jobs are managed by :ref:`crontabber-chapter`.

However some configuration is shared and site-specific, so is expected to
be in the system directory /etc/socorro :
:ref:`crontabber-chapter` runs every 5 minutes from the system crontab.

From inside the Socorro checkout, as the *root* user:
edit /etc/cron.d/socorro
::
cp puppet/files/etc_socorro/postgres.ini /etc/socorro/
\*/5 * * * * socorro /data/socorro/application/scripts/crons/crontabber.sh


Start daemons
````````````
Expand Down

0 comments on commit 2a7f6f7

Please sign in to comment.