| 1 | #!/usr/bin/perl |
|---|
| 2 | # |
|---|
| 3 | # MogileFS daemon |
|---|
| 4 | # |
|---|
| 5 | # Copyright 2004, Danga Interactive |
|---|
| 6 | # Copyright 2005-2006, Six Apart Ltd. |
|---|
| 7 | # |
|---|
| 8 | # See POD at bottom. |
|---|
| 9 | |
|---|
| 10 | use strict; |
|---|
| 11 | use warnings; |
|---|
| 12 | use lib 'lib'; |
|---|
| 13 | use MogileFS::Server; |
|---|
| 14 | |
|---|
| 15 | my $s = MogileFS::Server->server; |
|---|
| 16 | $s->run; |
|---|
| 17 | |
|---|
| 18 | 1; |
|---|
| 19 | |
|---|
| 20 | # Local Variables: |
|---|
| 21 | # mode: perl |
|---|
| 22 | # c-basic-indent: 4 |
|---|
| 23 | # indent-tabs-mode: nil |
|---|
| 24 | # End: |
|---|
| 25 | |
|---|
| 26 | __END__ |
|---|
| 27 | |
|---|
| 28 | =head1 NAME |
|---|
| 29 | |
|---|
| 30 | mogilefsd -- MogileFS tracker daemon |
|---|
| 31 | |
|---|
| 32 | =head1 USAGE |
|---|
| 33 | |
|---|
| 34 | This is the main MogileFS daemon, mogilefsd, also called the |
|---|
| 35 | "tracker". All interaction with a MogileFS installation begins by a |
|---|
| 36 | client talking to a tracker (you should run several in parallel for |
|---|
| 37 | redundancy). |
|---|
| 38 | |
|---|
| 39 | See L<MogileFS::Client> for a client library. |
|---|
| 40 | |
|---|
| 41 | =head1 ARCHITECTURE |
|---|
| 42 | |
|---|
| 43 | =head2 Processes |
|---|
| 44 | |
|---|
| 45 | The mogilefsd daemon is an event-loop in the parent process, handling |
|---|
| 46 | with epoll/kqueue/etc (see L<Danga::Socket>) tons of client |
|---|
| 47 | connections, while managing a bunch of worker processes underneath. |
|---|
| 48 | |
|---|
| 49 | The worker processes under mogilefsd include: |
|---|
| 50 | |
|---|
| 51 | =over 4 |
|---|
| 52 | |
|---|
| 53 | =item B<Client query processing> -- implements the MogileFS client/server protocol |
|---|
| 54 | |
|---|
| 55 | See L<MogileFS::Worker::Query>. |
|---|
| 56 | |
|---|
| 57 | =item B<Monitoring> -- monitors hosts and devices |
|---|
| 58 | |
|---|
| 59 | See L<MogileFS::Worker::Monitor>. |
|---|
| 60 | |
|---|
| 61 | =item B<Replicate> -- replicates files |
|---|
| 62 | |
|---|
| 63 | See L<MogileFS::Worker::Replicate>. |
|---|
| 64 | |
|---|
| 65 | =item B<Deleter> -- deletes files from storage nodes (protocol deletes from namespace are immediate) |
|---|
| 66 | |
|---|
| 67 | See L<MogileFS::Worker::Delete>. |
|---|
| 68 | |
|---|
| 69 | =item B<Reaper> -- re-enqueues files for replication when disks are marked dead |
|---|
| 70 | |
|---|
| 71 | See L<MogileFS::Worker::Reaper>. |
|---|
| 72 | |
|---|
| 73 | =item B<Checker/Fsck> -- background filesystem consistency checker |
|---|
| 74 | |
|---|
| 75 | See L<MogileFS::Worker::Checker>. |
|---|
| 76 | |
|---|
| 77 | =back |
|---|
| 78 | |
|---|
| 79 | =head2 Data Storage |
|---|
| 80 | |
|---|
| 81 | See L<MogileFS::Store>. |
|---|
| 82 | |
|---|
| 83 | =head1 AUTHORS |
|---|
| 84 | |
|---|
| 85 | Brad Fitzpatrick E<lt>brad@danga.comE<gt> |
|---|
| 86 | |
|---|
| 87 | Mark Smith E<lt>junior@danga.comE<gt> |
|---|
| 88 | |
|---|
| 89 | Brad Whitaker E<lt>whitaker@danga.comE<gt> |
|---|
| 90 | |
|---|
| 91 | =head1 COPYRIGHT |
|---|
| 92 | |
|---|
| 93 | Copyright 2004, Danga Interactive |
|---|
| 94 | Copyright 2005-2006, Six Apart Ltd. |
|---|
| 95 | |
|---|
| 96 | =head1 LICENSE |
|---|
| 97 | |
|---|
| 98 | Same terms as Perl itself. Artistic/GPLv2, at your choosing. |
|---|
| 99 | |
|---|
| 100 | =head1 SEE ALSO |
|---|
| 101 | |
|---|
| 102 | L<mogstored> -- MogilefS storage daemon |
|---|
| 103 | |
|---|
| 104 | L<http://danga.com/mogilefs/> |
|---|