| 1 | # -*- perl -*- | ||
| 2 | |||
| 3 | # Copyright (c) 2010 AdCopy | ||
| 4 | # Author: Jeff Weisberg | ||
| 5 | # Created: 2010-May-13 18:18 (EDT) | ||
| 6 | # Function: documentation | ||
| 7 | # | ||
| 8 | # $Id: MrGamoo.pm,v 1.2 2011/01/12 19:29:21 jaw Exp $ | ||
| 9 | |||
| 10 | package AC::MrGamoo; | ||
| 11 | use strict; | ||
| 12 | |||
| 13 | our $VERSION = 1.0; | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | AC::MrGamoo - Map/Reduce Framework | ||
| 18 | |||
| 19 | =head1 SYNOPSIS | ||
| 20 | |||
| 21 | use AC::MrGamoo::D; | ||
| 22 | use strict; | ||
| 23 | |||
| 24 | my $m = AC::MrGamoo::D->new( ); | ||
| 25 | |||
| 26 | $m->daemon( $configfile, { | ||
| 27 | argv => \@ARGV, | ||
| 28 | foreground => $OPT{f}, | ||
| 29 | debugall => $OPT{d}, | ||
| 30 | port => $OPT{p}, | ||
| 31 | } ); | ||
| 32 | |||
| 33 | exit; | ||
| 34 | |||
| 35 | =head1 CONFIG FILE | ||
| 36 | |||
| 37 | various parameters need to be specified in a config file. | ||
| 38 | if you modify the file, it will be reloaded automagically. | ||
| 39 | |||
| 40 | =over 4 | ||
| 41 | |||
| 42 | =item port | ||
| 43 | |||
| 44 | specify the TCP port to use | ||
| 45 | |||
| 46 | port 3504 | ||
| 47 | |||
| 48 | =item environment | ||
| 49 | |||
| 50 | specify the environment or realm to run in, so you can run multiple | ||
| 51 | independent map/reduce networks, such as production, staging, and dev. | ||
| 52 | |||
| 53 | environment prod | ||
| 54 | |||
| 55 | =item allow | ||
| 56 | |||
| 57 | specify networks allowed to connect. | ||
| 58 | |||
| 59 | allow 127.0.0.1 | ||
| 60 | allow 192.168.10.0/24 | ||
| 61 | |||
| 62 | =item seedpeer | ||
| 63 | |||
| 64 | specify initial peers to contact when starting. the author generally | ||
| 65 | specifies 2 on the east coast, and 2 on the west coast. | ||
| 66 | |||
| 67 | seedpeer 192.168.10.11:3503 | ||
| 68 | seedpeer 192.168.10.12:3503 | ||
| 69 | |||
| 70 | =item secret | ||
| 71 | |||
| 72 | specify a secret key used to encrypt data transfered between | ||
| 73 | systems in different datacenters. | ||
| 74 | |||
| 75 | secret squeamish-ossifrage | ||
| 76 | |||
| 77 | =item syslog | ||
| 78 | |||
| 79 | specify a syslog facility for log messages. | ||
| 80 | |||
| 81 | syslog local5 | ||
| 82 | |||
| 83 | =item basedir | ||
| 84 | |||
| 85 | local directory to store files | ||
| 86 | |||
| 87 | basedir /home/data | ||
| 88 | |||
| 89 | =item debug | ||
| 90 | |||
| 91 | enable debugging for a particular section | ||
| 92 | |||
| 93 | debug job | ||
| 94 | |||
| 95 | =back | ||
| 96 | |||
| 97 | =head1 BUGS | ||
| 98 | |||
| 99 | Too many to list here. | ||
| 100 | |||
| 101 | =head1 SEE ALSO | ||
| 102 | |||
| 103 | AC::MrGamoo::Client | ||
| 104 | |||
| 105 | =head1 AUTHOR | ||
| 106 | |||
| 107 | Jeff Weisberg - http://www.solvemedia.com/ | ||
| 108 | |||
| 109 | =cut | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | 1; |