<div dir="ltr"><div>I want to know if the content size (i.e. exp(11KB) in the example below) is also effective in CSM. What if I have a cdb of jpg images, does webpolygraph server trim and extend the image files being served in order to achieve the size as specified? If so, will the serving contents still be authentic (image/zip/flash...) files? </div>
<div><br></div><a href="http://www.web-polygraph.org/docs/userman/csm/">http://www.web-polygraph.org/docs/userman/csm/</a><br><div><div><pre style="color:rgb(0,0,0)"><em><small>Content SimpleContent = {
mime = { type = "text/html"; extensions = [ ".html" ]; };
size = exp(11KB);
cachable = 80%;
content_db = "pages.cdb"; // import content templates
...
};</small></em></pre></div><div><br></div><div><br></div></div><div>Thanks, </div><div>Jacky</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 12, 2012 at 2:08 PM, Dmitry Kurochkin <span dir="ltr"><<a href="mailto:dmitry.kurochkin@measurement-factory.com" target="_blank">dmitry.kurochkin@measurement-factory.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jacky.<br>
<div class="im"><br>
unjc email <<a href="mailto:unjc.email@gmail.com">unjc.email@gmail.com</a>> writes:<br>
<br>
> Hi there,<br>
><br>
> I have followed the Realistic content simulation manual to try to<br>
> create realistic image contents. Here are what I have done:<br>
><br>
> 1. Created cdb file<br>
> I have created cdb file that contains jpg image files only.<br>
>> polygraph-4.3.1/src/csm/cdb --add wp.cdb media/*.jpg<br>
><br>
> Question: Can I add different file types (.jpg, .gif, .png) and kinds<br>
> (.flv, .html, .swf) into the cdb file?<br>
><br>
<br>
</div>PGL ContentType uses all objects in the given cdb database. You can add<br>
any files to a single cdb database but PGL ContentType would not<br>
distinguish between them which is probably not what you want.<br>
<div class="im"><br>
><br>
> 2. add a PGL ContentType for images from that database<br>
><br>
> Content ImageContent = {<br>
> kind = "image";<br>
> mime = { type = "image/jpeg"; extensions = [ ".jpg" ]; };<br>
> //obj_life_cycle = olcImage;<br>
> //size = const(13KB);<br>
> cachable = 0%;<br>
> checksum = 1%;<br>
> content_db = "workloads/wp.cdb"; // import content templateS<br>
> };<br>
><br>
> Server S = {<br>
> kind = "S101";<br>
> contents = [ ImageContent ];<br>
> direct_access = contents;<br>
> ...<br>
><br>
><br>
> I download an image from one of the URLs and try to view it on a<br>
> browser; but the image is shown broken.<br>
> <a href="http://hostname:9090/w1925a4f2.210b3b17:00000008/t03/_00000003.jpg" target="_blank">http://hostname:9090/w1925a4f2.210b3b17:00000008/t03/_00000003.jpg</a><br>
><br>
<br>
</div>You should use "--format verbatim" option when adding images to cdb<br>
database. This would<br>
<br>
Regards,<br>
Dmitry<br>
<div class="im"><br>
><br>
> Please advise if I have missed any step in creating the realistic<br>
> image contents.<br>
><br>
><br>
><br>
><br>
> Thanks,<br>
> Jacky<br>
</div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@web-polygraph.org">Users@web-polygraph.org</a><br>
> <a href="http://www.web-polygraph.org/mailman/listinfo/users" target="_blank">http://www.web-polygraph.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div>