[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mogilefs
Subject:    RE: Need a help
From:       "Bhavin Shah" <bhavin () bigadda ! biz>
Date:       2008-03-27 3:41:35
Message-ID: 000601c88fba$c8809c60$5981d520$ () biz
[Download RAW message or body]

This is a multipart message in MIME format.


Hi Clinton/Paul,

 

Thanks for your help. I really appreciate it.

 

According I started running the transfer for the files using key as the
primary id with size of the crop image attached to it, so that will
differentiate my photos under same domain but different classes.

 

The issue is to test the load on MogFS I started some 15 odd scripts for
transfer from one server to another. The problem I faced is at start it
worked fine and suddenly then it stopped giving me the URLs back and when I
checked my mog db its showing the entry into it. I don't know what's wrong.
When I started all the scripts it gave me the output but then suddenly
stopped as it went further. Can anyone help me out for what might have gone
wrong.

 

Thanks and Regards

Bhavin Shah

 

From: Paul BakerT [mailto:bakerp@google.com] 
Sent: Wednesday, March 26, 2008 9:09 PM
To: Clinton Goudie-Nice
Cc: Bhavin Shah; mogilefs@lists.danga.com
Subject: Re: Need a help

 

Class is not used to separate keyspace, domain is. All class does is allow
you to tell mogilefs how many replicas of the file you want stored. To do
what you are trying you would want an "original" domain and then a "cropped"
domain, etc and store your files that way using the same key. But I have to
agree with Clinton in that you should really just append that extra bit of
information to the keyname so everything is under one domain.

On Wed, Mar 26, 2008 at 10:19 AM, Clinton Goudie-Nice
<cgoudie@twelvehorses.com> wrote:

Greetings Bhavin,

I dont believe MogileFS is designed to allow you to have multiple files with
the same key.

In our application we're not exposing the key in any way to the user, and in
fact our key is database ID from another DB, not the file's name. We
maintain all the meta information about the file, including the filename, in
another database entirely.

For simplicity, you might try naming your files somefilename*master
somefilename*cropped somefilename*croppedsmaller or some other common naming
convention, and then conceal that logic from the end user in your
application.

Hope this helps!

Clint


 




 <http://web.twelvehorses.com/> Error! Filename not specified.

 <http://web.twelvehorses.com/info_center/whitepaper/> Error! Filename not
specified.

 <http://web.twelvehorses.com/solutions/blogging_for_business/> Error!
Filename not specified.

 <http://web.twelvehorses.com/solutions/website_design/> Error! Filename not
specified.

 <http://web.twelvehorses.com/technology/> Error! Filename not specified.



Clinton Goudie-Nice
Architect / Senior Software Engineer
cgoudie@twelvehorses.com


Phone: 

+1.801.571.2665 ext 3264 


Mobile: 

+1.801.915.0629 


Fax: 

+1.801.571.2669 


LinkedIn: 

http://www.linkedin.com/in/cgoudie 


Twelve Horses
13961 Minuteman Drive
Suite 125
Draper, UT 84020
www.twelvehorses.com 


On Wed, 2008-03-26 at 11:20 +0530, Bhavin Shah wrote: 

Hello,

 

I am working on Mogile FS  for the first time. I have a issue that I wanted
to store photos with the original and crop ones with different classes and
but onto the same domain.

 

Issue is that I wanted to keep same key for a image and its crop ones also
with different classes. But using the getPath I have to pass only the key,
so how will mogFS class will know that, which image I wanted, means the crop
one or the original one. Is there any way that I can pass the class also in
getPath function.

 

 

Thanks and Regards

Bhavin Shah.




	

 


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Clinton/Paul,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for your help. I really appreciate it.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>According I started running the transfer for the files using key
as the primary id with size of the crop image attached to it, so that will
differentiate my photos under same domain but different \
classes.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The issue is to test the load on MogFS I started some 15 odd
scripts for transfer from one server to another. The problem I faced is at
start it worked fine and suddenly then it stopped giving me the URLs back and
when I checked my mog db its showing the entry into it. I don&#8217;t know \
what&#8217;s wrong. When I started all the scripts it gave me the output but then \
suddenly stopped as it went further. Can anyone help me out for what might have gone
wrong.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks and Regards<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Bhavin Shah<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Paul Baker&#8482; \
[mailto:bakerp@google.com] <br> <b>Sent:</b> Wednesday, March 26, 2008 9:09 PM<br>
<b>To:</b> Clinton Goudie-Nice<br>
<b>Cc:</b> Bhavin Shah; mogilefs@lists.danga.com<br>
<b>Subject:</b> Re: Need a help<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Class is not used to separate
keyspace, domain is. All class does is allow you to tell mogilefs how many
replicas of the file you want stored. To do what you are trying you would want
an &quot;original&quot; domain and then a &quot;cropped&quot; domain, etc and
store your files that way using the same key. But I have to agree with Clinton
in that you should really just append that extra bit of information to the
keyname so everything is under one domain.<o:p></o:p></p>

<div>

<p class=MsoNormal>On Wed, Mar 26, 2008 at 10:19 AM, Clinton Goudie-Nice &lt;<a
href="mailto:cgoudie@twelvehorses.com">cgoudie@twelvehorses.com</a>&gt; \
wrote:<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>Greetings Bhavin,<br>
<br>
I dont believe MogileFS is designed to allow you to have multiple files with
the same key.<br>
<br>
In our application we're not exposing the key in any way to the user, and in
fact our key is database ID from another DB, not the file's name. We maintain
all the meta information about the file, including the filename, in another
database entirely.<br>
<br>
For simplicity, you might try naming your files somefilename*master \
somefilename*cropped somefilename*croppedsmaller or some other common naming \
convention, and then conceal that logic from the end user in your application.<br>
<br>
Hope this helps!<br>
<br>
Clint<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td style='padding:0in 0in 0in 0in'>
  <p class=MsoNormal><o:p>&nbsp;</o:p></p>
  <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td style='padding:0in 0in 0in 0in'>
    <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=570
     style='width:427.5pt'>
     <tr>
      <td colspan=2 style='padding:0in 0in 0in 0in'>
      <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
       width=570 style='width:427.5pt'>
       <tr>
        <td valign=top style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><a href="http://web.twelvehorses.com/"
        target="_blank"><span style='text-decoration:none'><b>Error! Filename
        not specified.</b></span></a><o:p></o:p></p>
        </td>
        <td valign=top style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><a
        href="http://web.twelvehorses.com/info_center/whitepaper/"
        target="_blank"><span style='text-decoration:none'><b>Error! Filename
        not specified.</b></span></a><o:p></o:p></p>
        </td>
        <td valign=top style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><a
        href="http://web.twelvehorses.com/solutions/blogging_for_business/"
        target="_blank"><span style='text-decoration:none'><b>Error! Filename
        not specified.</b></span></a><o:p></o:p></p>
        </td>
        <td valign=top style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><a
        href="http://web.twelvehorses.com/solutions/website_design/"
        target="_blank"><span style='text-decoration:none'><b>Error! Filename
        not specified.</b></span></a><o:p></o:p></p>
        </td>
        <td valign=top style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><a href="http://web.twelvehorses.com/technology/"
        target="_blank"><span style='text-decoration:none'><b>Error! Filename
        not specified.</b></span></a><o:p></o:p></p>
        </td>
       </tr>
      </table>
      </td>
     </tr>
     <tr>
      <td valign=top style='padding:0in 0in 0in 0in'>
      <p class=MsoNormal><br>
      <b><span style='font-size:10.0pt;color:#333333'>Clinton \
                Goudie-Nice</span></b><br>
      <span style='font-size:7.5pt;color:#333333'>Architect / Senior Software
      Engineer</span><br>
      <span style='font-size:7.5pt;color:#2D5CA8'><a
      href="mailto:cgoudie@twelvehorses.com" \
target="_blank">cgoudie@twelvehorses.com</a></span><o:p></o:p></p>  <table \
class=MsoNormalTable border=0 cellspacing=0 cellpadding=0  width="100%" \
style='width:100.0%'>  <tr>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span style='font-size:7.5pt;color:#333333'>Phone:</span>
        <o:p></o:p></p>
        </td>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span \
style='font-size:7.5pt;color:#333333'>+1.801.571.2665  ext 3264</span> \
<o:p></o:p></p>  </td>
       </tr>
       <tr>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span style='font-size:7.5pt;color:#333333'>Mobile:</span>
        <o:p></o:p></p>
        </td>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span \
style='font-size:7.5pt;color:#333333'>+1.801.915.0629</span>  <o:p></o:p></p>
        </td>
       </tr>
       <tr>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span style='font-size:7.5pt;color:#333333'>Fax:</span>
        <o:p></o:p></p>
        </td>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span \
style='font-size:7.5pt;color:#333333'>+1.801.571.2669</span>  <o:p></o:p></p>
        </td>
       </tr>
       <tr>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span \
style='font-size:7.5pt;color:#333333'>LinkedIn:</span>  <o:p></o:p></p>
        </td>
        <td style='padding:0in 0in 0in 0in'>
        <p class=MsoNormal><span style='font-size:7.5pt;color:#333333'><a
        href="http://www.linkedin.com/in/cgoudie" \
target="_blank">http://www.linkedin.com/in/cgoudie</a></span>  <o:p></o:p></p>
        </td>
       </tr>
      </table>
      </td>
      <td valign=top style='padding:0in 0in 0in 0in'>
      <p class=MsoNormal align=right style='text-align:right'><br>
      <b><span style='font-size:10.0pt;color:#333333'>Twelve Horses</span></b><br>
      <span style='font-size:7.5pt;color:#333333'>13961 Minuteman Drive</span><br>
      <span style='font-size:7.5pt;color:#333333'>Suite 125</span><br>
      <span style='font-size:7.5pt;color:#333333'>Draper, UT 84020</span><br>
      <b><span style='font-size:7.5pt;color:#2D5CA8'><a
      href="http://www.twelvehorses.com" \
target="_blank">www.twelvehorses.com</a></span></b>  <o:p></o:p></p>
      </td>
     </tr>
    </table>
    </td>
   </tr>
  </table>
  </td>
 </tr>
</table>

<div>

<div>

<p class=MsoNormal><br>
On Wed, 2008-03-26 at 11:20 +0530, Bhavin Shah wrote: <o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span \
style='color:black'>Hello,</span><br> <br>
<span style='color:black'>&nbsp;</span><br>
<br>
<span style='color:black'>I am working on Mogile FS &nbsp;for the first time. I
have a issue that I wanted to store photos with the original and crop ones with
different classes and but onto the same domain.</span><br>
<br>
<span style='color:black'>&nbsp;</span><br>
<br>
<span style='color:black'>Issue is that I wanted to keep same key for a image
and its crop ones also with different classes. But using the getPath I have to
pass only the key, so how will mogFS class will know that, which image I
wanted, means the crop one or the original one. Is there any way that I can
pass the class also in getPath function.</span><br>
<br>
<span style='color:black'>&nbsp;</span><br>
<br>
<span style='color:black'>&nbsp;</span><br>
<br>
<span style='color:black'>Thanks and Regards</span><br>
<br>
<span style='color:black'>Bhavin Shah.</span><br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
 style='width:100.0%'>
 <tr>
  <td style='padding:0in 0in 0in 0in'>
  <table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width="100%"
   style='width:100.0%'>
   <tr>
    <td style='padding:0in 0in 0in 0in'></td>
   </tr>
  </table>
  </td>
 </tr>
</table>

</div>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic