Mogstored Tuning
dormando
dormando at rydia.net
Thu Apr 10 21:42:16 UTC 2008
You can get a little bit of an idea because a mogstored is essentially a
perlbal plugin. So the management interface works, and you can write a
little extra code to track stats if you wanted.
Otherwise a general idea should be fine, or just purely a reqs/sec with
an understanding of how many writes you're probably doing.
-Dormando
Mark Smith wrote:
>> We are using mogstored for both reads and writes. I wasn't aware of
>> the ability to split out reads, but I found the command in mogadm. I'll
>> give that a spin. Thanks for the suggestion!
>
> Definitely definitely do that, that's one of the first things we did
> when we actually started using MogileFS in a serious way on LJ.
> Apache2 works, lighttpd works, whatever can do GETs in a quick way
> will work!
>
>> Is there a way to gather statistics on the number of reads/writes
>> passing through mogstored?
>
> Not built in, but you should be able to determine this by just
> understanding your traffic. Unless you are overwriting files
> constantly, or serving as a backup service where people don't get
> their data often, there's only a few writes per file. One to insert,
> N to replicate up to mindevcount, and then many reads for serving.
> The files aren't touched again (unless you do something with fsck or
> rebalancing, but even then you're still heavily on the side of reads
> for most usage).
>
>
More information about the mogilefs
mailing list