root/tags/mogilefs-server-2.07/mogilefsd

Revision 624, 2.0 kB (checked in by bradfitz, 3 years ago)

add MogileFS::Server, for server singleton.

now mogilefsd is just:

use MogileFS::Server;
my $s = MogileFS::Server->server;
$s->run;

But really this is useful so in tests I can include all the libraries,
without starting the server up.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
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
10use strict;
11use warnings;
12use lib 'lib';
13use MogileFS::Server;
14
15my $s = MogileFS::Server->server;
16$s->run;
17
181;
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
30mogilefsd -- MogileFS tracker daemon
31
32=head1 USAGE
33
34This is the main MogileFS daemon, mogilefsd, also called the
35"tracker".  All interaction with a MogileFS installation begins by a
36client talking to a tracker (you should run several in parallel for
37redundancy).
38
39See L<MogileFS::Client> for a client library.
40
41=head1 ARCHITECTURE
42
43=head2 Processes
44
45The mogilefsd daemon is an event-loop in the parent process, handling
46with epoll/kqueue/etc (see L<Danga::Socket>) tons of client
47connections, while managing a bunch of worker processes underneath.
48
49The worker processes under mogilefsd include:
50
51=over 4
52
53=item B<Client query processing> -- implements the MogileFS client/server protocol
54
55See L<MogileFS::Worker::Query>.
56
57=item B<Monitoring> -- monitors hosts and devices
58
59See L<MogileFS::Worker::Monitor>.
60
61=item B<Replicate> -- replicates files
62
63See L<MogileFS::Worker::Replicate>.
64
65=item B<Deleter> -- deletes files from storage nodes (protocol deletes from namespace are immediate)
66
67See L<MogileFS::Worker::Delete>.
68
69=item B<Reaper> -- re-enqueues files for replication when disks are marked dead
70
71See L<MogileFS::Worker::Reaper>.
72
73=item B<Checker/Fsck> -- background filesystem consistency checker
74
75See L<MogileFS::Worker::Checker>.
76
77=back
78
79=head2 Data Storage
80
81See L<MogileFS::Store>.
82
83=head1 AUTHORS
84
85Brad Fitzpatrick E<lt>brad@danga.comE<gt>
86
87Mark Smith E<lt>junior@danga.comE<gt>
88
89Brad 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
98Same terms as Perl itself.  Artistic/GPLv2, at your choosing.
99
100=head1 SEE ALSO
101
102L<mogstored> -- MogilefS storage daemon
103
104L<http://danga.com/mogilefs/>
Note: See TracBrowser for help on using the browser.