Loading image issue cantaloupe. #509
Replies: 7 comments
-
Hi @qudratullah1061, Are you sure these TIFFs are pyramidal and tiled? Can you attach one of them to a comment so I can download and take a look at it? |
Beta Was this translation helpful? Give feedback.
-
Hi @adolski Thanks for your reply. Here is the image. You can download it from this link. Its converted to pyramidal tiled tiff. Please let me know if anything is wrong with this file. I am converting all formats jpg,tif to tiled pyramidal tiff like below file for cantaloupe as source. https://drive.google.com/file/d/1TBABX9BgISuGv7xCJmaChFfcEpMkfqXx/view?usp=sharing |
Beta Was this translation helpful? Give feedback.
-
Thanks @qudratullah1061. This is indeed a pyramidal tiled TIFF. A request for A couple of things to check:
|
Beta Was this translation helpful? Give feedback.
-
I am using this script. If user requests for full image i am serving 1000x1000 image maximum. Also if user request for info.json or with only image name i am redirecting to custom html page. require 'java'
end Regarding storage i am using s3 buckets with 6tb size of images around (64k) images. Regarding chunking how can i enable it? Need to enable it from cantaloupe or s3 feature? |
Beta Was this translation helpful? Give feedback.
-
The script looks fine... for chunking I would start with the default values from the sample configuration file, and tweak from there:
When I run that request again using S3Source with chunking enabled, I see this in the log:
This is telling me that Cantaloupe had to download 17054362 bytes from the bucket in order to complete the request. So if you are running 30 such requests in parallel, and you want each to complete within 500 ms, you would need (very roughly) 1GB/sec bandwidth between your EC2 and your S3 bucket. Are you sure you have enough bandwidth to achieve your performance goals? I would also try to put the EC2 and the S3 bucket in the same AWS region, if possible. Suspecting that bandwidth is a concern here, I would also consider compressing the TIFF tiles (with LZW, JPEG, etc.) so that the files will transfer faster. |
Beta Was this translation helpful? Give feedback.
-
We are using c5.4xlarge EC2 with 16 vCPU, 32GB Memory, 10 Gbps network bandwidth, and 4,750 Mbps EBS bandwidth I am tweaking with chunk sizes. Thanks. EC2 and the S3 bucket in the same AWS region. |
Beta Was this translation helpful? Give feedback.
-
Hi @adolski I have changed configuration and increased Chunk Size to 512MB and Max Chunk Cache Size to 5GB and performance looks good for now for images which are atleast served once.. Still checking performance with other different tests and will let you know regarding final outcomes. Thank you very much for your help and feedbacks you provided. These were really helpful. Please let me know if you have further advice regarding image server specs or performance to make it more better. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I hope you are doing great. I am using cantaloupe image server and generated pyramidal tile tiffs as suggested but still when i load image it takes around 4 secods to load for individual image. Like i request 30 images some images takes around 5-7 seconds to load and server choked some times. I am using amazon Large ec2 instance with 32gb of ram. I have enabled derivative cache increased heap size to 10g when initialized but no luck for now to reduce loading time of images. Can you please tell me where is the bottleneck? I'll be very thank full to you if you can provide some clue to me.
Here is the testing url.
https://iiif.blavatnikarchive.org/iiif/2/baf__baf52574ad5d3093f4d995837db4e712ba08d23b90e4dd9ca34f1d9425346012/full/!1000,1000/0/default.jpg
Website url where you can see multiple images loading and response time in network tab.
https://newiiif.blavatnikarchive.org/search/items
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions