tara%tequilarista.org c2cdb832cf Original Blue Martini implementation of cvs-mirroring functionality, not yet genericized for public consumption
git-svn-id: svn://10.0.0.236/trunk@133031 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-05 21:16:04 +00:00

46 lines
1.3 KiB
Perl
Executable File

package default;
use strict;
#
# addresses to which to complain
#
$default::admin_address = 'release-eng@bluemartini.com';
$default::pager_address = 'vajonez@yahoo.com';
#
# default times (seconds)
#
# how long to wait after a checkin to start mirroring
# this is mostly to give folks a time to nomirror
$default::mirror_delay = 15 * 60;
# let's be kind and not hammer the network/database.
# minimum time between checks of the database
$default::min_scan_time = 10;
# the old bonsai code uses a really inefficient means
# of getting checkin info into the database. each
# addcheckin.pl process consumes ~8MB of memory and
# take several seconds to run. The following number
# is the number of addcheckins that we'd like to see
# running at any one time. If the number of addcheckin.pl's
# exceeds the number below, wait throttle_time seconds
# and try again.
$default::max_addcheckins = 20;
$default::throttle_time = 5;
#
# Database stuff (pick the correct one!)
#
$default::db = "development";
$default::column = "value";
$default::key = "id";
%::db = (
"production" => {
"dsn" => "dbi:mysql:database=bonsai;host=bonsai2",
"user" => "bonsai_mh",
"pass" => "password",
},
"development" => {
"dsn" => "dbi:mysql:database=bonsai_dev;host=bonsai2",
"user" => "bonsai_dev_mh",
"pass" => "password",
},
);
return 1;