A hardware question

mike ha scritto:

http://mogstored-server:7501/dev1/0/000/000/0000000005.fid

I don’t know MogileFS, what is the rationale for this form of URL?

I was assuming that each file have the same URL path component for each
mogstred-server, so you only need to dynamically know the upstream
address and port.

[…]

Regards Manlio P.

On 5/1/08, Manlio P. [email protected] wrote:

I don’t know MogileFS, what is the rationale for this form of URL?

I believe the .fid is file ID. So “0000000005” is the file ID, and it
spreads the file over a seg/ment/ed directory to make sure there’s not
too many files in one dir…

I was assuming that each file have the same URL path component for each
mogstred-server, so you only need to dynamically know the upstream address
and port.

I am not sure if this is right.

I believe MogileFS will store the same file however it’s host and
“devX” that is dynamic, I need to spend more time with a multi-storage
node and double check this

I think it is like this (3 replicas)

http://mogstored-server:7501/dev1/0/000/000/0000000005.fid
http://mogstored-server:7501/dev2/0/000/000/0000000005.fid
http://mogstored-server2:7501/dev3/0/000/000/0000000005.fid

Or, it could start with /dev1/ on every host though, but that might
mean it is not the same device on every node, but the file ID is the
same.

I could be completely wrong though. Really need to ask some specifics
from Mogile folks and try some stuff.

On Thu, May 1, 2008 at 11:17 PM, mike [email protected] wrote:

Or, it could start with /dev1/ on every host though, but that might
mean it is not the same device on every node, but the file ID is the
same.

AFAIK, the dev number is a completely arbitrary int and is set by
mogadm when you setup the cluster.

I could be completely wrong though. Really need to ask some specifics
from Mogile folks and try some stuff.

Do you know if there’s better documentation out there? I had to dig
into the perl source code in order to get it setup.

On 5/1/08, Eden Li [email protected] wrote:

AFAIK, the dev number is a completely arbitrary int and is set by
mogadm when you setup the cluster.

Actually I saw a thread recently and I believe it was talking about
devX numbers - some guy had an issue where it skipped from 1, 2, 3, 5
and the code seemed to go incrementally and failed when it hit the
missing 4.

I am pretty sure it was the dev IDs…

Either way, I believe the full URL is what is needed for this to be
useful, not just a single http://a.b.c.d:port/ since the devX could be
there or not, I believe.

Do you know if there’s better documentation out there? I had to dig
into the perl source code in order to get it setup.

Nope. I’d ask the mailing list there any questions, Google, etc.

They have a wiki up but it doesn’t have much info and last I checked
the navigation sent you in a circle.