World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Server Discussion

Server Discussion Sever discussion for configuring, setting up and supporting your own World wind tile server

Reply
 
Thread Tools Display Modes
Old 09-01-2009, 05:32 PM   #1
dlian
Junior Member
 
Join Date: Jul 2007
Posts: 14
dlian is on a distinguished road
Default How is "<online-resource>" in config.xml of WMS used in relation to SQUID?

It seems "<online-resource>" in config.xml of WMS play a very important role in working with the SQUID.

But i could not find any clue in the source codes of both WMS and WWJ that "<online-resource>" make WWJ change its requesting port from 8084 to 80.

It must be my recklessness. But could some one gives the detail processes how the WWJ change its port when WMS working with SQUID?

Also, i find the SQUID don't cache any image or eleation data but only the capacity.xml data. That is why?

Thank you!
dlian is offline   Reply With Quote
Old 09-14-2009, 05:49 PM   #2
garakl
Administrator
 
Join Date: May 2006
Location: Seattle
Posts: 250
garakl is on a distinguished road
Default

You need to specify <online-resource/> element in the WEB-INF/config.xml regardless of usage of SQUID.

The content of WEB-INF/config.xml /<online-resource> is used in the GetCapabilities response and tells WWJ client the URL (hostname and port) from where to send getMap requests.

If you do not have SQUID OR any load-balancing OR web-proxy solution in front of your WMS server, you must specify your WMS server's fully qualified domain name and the same port your WMS is listening.

<port>8080</port>
<online-resource>myWMS.myGIS.net:8080/wms</online-resource>

But what is you have a firewall or enterprise switch forwarding that exposes only port 9000 (or 80, or any other). How you wil tell client to send getMap requests to myWMS.myGIS.net:9000 when your WMS is listening on 8080?
This is your solution:

<port>8080</port>
<online-resource>myWMS.myGIS.net:90/wms</online-resource>

---------------- when you have SQUID -------

Now, with SQUID listening on port 3129, for example.
<port>8080</port>
<online-resource>myWMS.myGIS.net:3129/wms</online-resource>

When your firewall/switch listens on port 80, forwards to SQUID on 3129, and squid forwards requests to WMS which is listening on port 8080.
<port>8080</port>
<online-resource>myWMS.myGIS.net:80/wms</online-resource>

Another scenario: you have two WMS servers configured for load-balancing or/and failover (know that squid could do load-balancing for you, see http://forum.worldwindcentral.com/sh...ad.php?t=21951, page 2)
In this case, you also need to specify FQDN and PORT of the load balanceing service (or machine) in the WEB-INF/config.xml /<online-resource>
garakl is offline   Reply With Quote
Old 09-14-2009, 05:54 PM   #3
garakl
Administrator
 
Join Date: May 2006
Location: Seattle
Posts: 250
garakl is on a distinguished road
Default

I forgot to answer why your SQUID is not caching imagery.
Did you follow all steps from here http://forum.worldwindcentral.com/sh...ad.php?t=21407 ?

Take a look on step 10 - we need to tell SQUID to enable caching dynamic requests, the ones that have "?" in the url. By default SQUID is not caching dynamic requests.

Also, steps 6 and 7 show how to tell SQUID to cache WMS imagery (/wms) and elevation (/elev) requests.

If you have more questions about SQUID configuration, let's discuss them in this thread http://forum.worldwindcentral.com/sh...ad.php?t=21407
garakl is offline   Reply With Quote
Old 09-15-2009, 03:06 PM   #4
dlian
Junior Member
 
Join Date: Jul 2007
Posts: 14
dlian is on a distinguished road
Default

thank you very much, dear garakl !
dlian is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID configuration to cache WMS server responses garakl Server Discussion 1 08-08-2011 02:16 PM


All times are GMT +1. The time now is 06:52 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.