More than one mogstored daemon

Yuri Subach subach at whirix.com
Mon Oct 3 05:36:35 PDT 2005


Hello Brad,

Looks like problem I've described below (fixed port 7501 for handling 
size requests) does not allow me to run multiple mogstoreds on one host.

Is this correct conclusion?

Yuri Subach wrote:

> I modified mogstored source code. First file:
>    my $path = "/mogdata/dev1/data";
>    my $listen = "X.X.X.X:7500";
>
> Second file:
>    my $path = "/mogdata/dev2/data";
>    my $listen = "X.X.X.X:7510";
>
> When I'm trying to run these daemons, first works good. But second 
> give me this error: "Error creating socket: IO::Socket::INET: Address 
> already in use"
> If I try to run second before first, it works fine.
>
> The possible reason of this error is following code:
>
> # setup a new socket for handling size requests
> my $server = IO::Socket::INET->new(LocalPort => 7501, # FIXME make 
> this configurable
>                                   Type      => SOCK_STREAM,
>                                   Proto     => 'tcp',
>                                   Blocking  => 0,
>                                   Reuse     => 1,
>                                   Listen    => 10 )
>
> How can I change this port number and let mogilefsd know about the 
> change?
>
>
> Brad Fitzpatrick wrote:
>
>> Should work.
>>
>>
>> On Wed, 28 Sep 2005, Yuri Subach wrote:
>>
>>  
>>
>>> Hello,
>>>
>>> You said that we can create miltiple IPs on the server for running if
>>> multiple mogstoreds. Do you think that we can run 3 mogstored 
>>> daemons on
>>> one IP but different ports (7500, 7510, 7520)?
>>>
>>> Mark Smith wrote:
>>>
>>>   
>>>
>>>> If the only point is to replicate data to different disks on your 
>>>> machine,
>>>> then you'll have to provide multiple IP address for the machine, or 
>>>> use
>>>> 127.0.0.1, 127.0.0.2, etc.
>>>>
>>>> But that defeats half of the usefulness of MogileFS, which is to 
>>>> spread
>>>> files across multiple machines, so if someone goes into the server 
>>>> room
>>>> with their double-barrel shotgun and takes out one the one server, 
>>>> you lose
>>>> your data (unless a disk survives, but still, you'd have to go put 
>>>> it in a
>>>> new machine).
>>>>
>>>> Anyway, it's doable, but you're either going to have to modify 
>>>> mogilefsd or
>>>> put multiple IPs on your machine... :)
>>>>
>>>> On Tue, Aug 16, 2005, Vitaliy F. Scherbakov wrote:
>>>>
>>>>
>>>>     
>>>>
>>>>> Hello, Everybody.
>>>>>
>>>>> Problem:
>>>>> I have machine with 1 HDD (System) and 3 HDD's (for data), this 
>>>>> machine
>>>>> has it's own IP-Address. (Data  drives are mounted to /data/devX X in
>>>>> [1,2,3]). At mogstored: $path = "/data";
>>>>> Brad, said that Mogile could replicate to devices on different hosts.
>>>>> Have You any sugestions, how to solve my problem?
>>>>>
>>>>> Maybe it is possible to run more than one instance of mogstored or
>>>>> mogilefsd?
>>>>>
>>>>> Best regards,
>>>>> Vitaliy.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>       
>>>>
>>>> -- 
>>>> Junior (aka Mark Smith)
>>>> junior at danga.com
>>>>
>>>> Software Engineer
>>>> Six Apart / Danga Interactive
>>>>
>>>>
>>>>     
>>>
>>> -- 
>>> Yuri Subach  subach at whirix.com
>>> Director of Whirix Ltd.  http://www.whirix.com
>>>
>>>
>>>   
>>
>

-- 
Yuri Subach  subach at whirix.com
Director of Whirix Ltd.  http://www.whirix.com



More information about the mogilefs mailing list