This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » Concurrent browser requests : Modify...
expandshrink

Concurrent browser requests : Modify ezimage hostname

Concurrent browser requests : Modify ezimage hostname

Tuesday 07 June 2011 2:01:31 pm - 7 replies

Hello !

How is it possible to modify ezimage hostname to tell this operator to use a different hostname for media ? For exemple media.domain.com instead of siteaccess hostname ?

Thanx in advance.

Tuesday 07 June 2011 10:06:11 pm

probably.. But is this the best approach with what you're trying to accomplish?

  • Try looking into Squid
  • Also try reading O'Reilly's "Server Load Balancing" book.  A great resource. And probably the most effective if not most efficient way.
  • Another way is to change/extend ezimage by loading each image with a random DNS from a list of DNS's. Consider the list of DNS names: [ images1.mydomain.com, images2.mydomain.com,images3.mydomain.com,images4.mydomain.com ]. Although each DNS points to the same IP, I think the browsers don't ask whether it's the same IP they just send the request and load the content if available. (I would research this).
  • There are many ways to skin a cat. (Not that I would.)

Hope this Helps

Wednesday 08 June 2011 12:24:47 am

Try this one:

Also, I remember someone somewhere mentioning that something similar can be done with ezjscore extension (for images called from CSS stylesheets).

Wednesday 08 June 2011 12:54:23 am

Haha.. There's literally sooo many different implementations.  Anyone up for an exhaustive testing of routes?

 

Also..I remember using GET is slightly faster (using 1 less packet for transmission) than an actual AJAX call (Check Yahoo's website performance howto) so that route could be better.

Wednesday 08 June 2011 9:18:13 am

Ok thank u for that i will dig into the ezimage operator to see what can be done.

In fact i am looking for a solution which avoid changing anything in the templates because ezimage is spreaded everywhere.

What would be nice is having a custom hostname for media in site.ini or image.ini

Wednesday 08 June 2011 10:45:38 am

Hi,

I wrote a blog post on this subject lately : http://pwet.fr/blog/how_to_split_components_across_domains_with_ez_publish

For images in stylesheets, you can configure ezjscore to use an alternative hostname.

But this topic is on images linked with ezimage and unfortunatelly there's no out of the box solution. You can override the ezimage template operator if you're using eZ Publish 4.4 or newer.

Cheers

Wednesday 08 June 2011 10:58:22 am

I would definitely suggest you to give the xrowcdn extension a try...

It has implemented an output filter that rewrites all the urls in your eZP generated html. Also if you take look at this:

you can see that you can even define your own rules for the urls that will be rewriten, and define for each rule (or set of rules) which cdn server should be used.

It looks like a pretty handy tool that sounds like exactly what you need.

Wednesday 08 June 2011 11:45:33 am

see media_url operator >> http://projects.ez.no/novenutils

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from