[mapserver-users] Web Server Tricks... Kind of Off Topic

Steven Bowden steveb@bundaberg.qld.gov.au
05 Jun 2002 09:41:36 +1000


--=-qkUapdLGbqBigKRDr80n
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I think it is called port forwarding.  Not sure how you set it up in
windows land and have only just started to have a look at it on linux. 
Basically I think the theory is that you map any requests received on a
port (ie port 80 for apache) and tell it to forward it to another IP
address.
In Linux land it canbe done using ipchains or iptables I think.  Also
have a look at NAT (Network Address Translation).

Another option could be to use a database that holds your data on the
faster machine eg postgres with postgis and have your .map file on the
slower webserver connect to the faster machine to access the data.  That
way you don't need to set up any port forwarding stuff.  This way might
not be as quick as the port forwarding way but it might be quicker than
doing it all on the slow machine.

Steve Bowden
GIS Officer
Bundaberg City Council


On Wed, 2002-06-05 at 07:43, Hankley, Chip wrote:

    I am by no means a guru at configuring / working out web server hardware /
    networking issues... and could use a little guidance.
    
    Our main webserver is pretty much a dog. We're running a 200 MHz dual
    processor server w/ win2K and IIS... it handles a number of things for our
    company (besides mapserver)... and it is S L O W (i know... 200 MHz,
    Win2K... big part of the problem).
    
    Anyway... my options are limited b/c of internal politics and the like - so
    Linux is out, as well as my own dedicated server.
    
    What I'm wondering is if there is some way to "pass-through" my mapserver
    requests to a more powerful box within the organization. For instance, a MS
    request would come in, and instead of being processed on that server, the
    actual mapserver work (the process of rendering the image from the raw GIS
    data) would occur on another more powerful machine, and then the image
    either would be passed back for service to the client, or would be read
    directly from that machine. Is such a thing possible? What would be the
    performance implications of such a trick?
    
    I think this is kind of how MO IMS and ArcIMS work in that there is a "Map
    Server" that runs as a service... not necessarily on the web server.
    
    TIA
    
    Chip Hankley
    

--=-qkUapdLGbqBigKRDr80n
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.3">
</HEAD>
<BODY>
I think it is called port forwarding.&nbsp; Not sure how you set it up in windows land and have only just started to have a look at it on linux.&nbsp; Basically I think the theory is that you map any requests received on a port (ie port 80 for apache) and tell it to forward it to another IP address.
<BR>
In Linux land it canbe done using ipchains or iptables I think.&nbsp; Also have a look at NAT (Network Address Translation).
<BR>

<BR>
Another option could be to use a database that holds your data on the faster machine eg postgres with postgis and have your .map file on the slower webserver connect to the faster machine to access the data.&nbsp; That way you don't need to set up any port forwarding stuff.&nbsp; This way might not be as quick as the port forwarding way but it might be quicker than doing it all on the slow machine.
<BR>

<BR>
Steve Bowden
<BR>
GIS Officer
<BR>
Bundaberg City Council
<BR>

<BR>

<BR>
On Wed, 2002-06-05 at 07:43, Hankley, Chip wrote:
    <BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>I am by no means a guru at configuring / working out web server hardware /</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>networking issues... and could use a little guidance.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Our main webserver is pretty much a dog. We're running a 200 MHz dual</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>processor server w/ win2K and IIS... it handles a number of things for our</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>company (besides mapserver)... and it is S L O W (i know... 200 MHz,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Win2K... big part of the problem).</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Anyway... my options are limited b/c of internal politics and the like - so</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Linux is out, as well as my own dedicated server.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>What I'm wondering is if there is some way to &quot;pass-through&quot; my mapserver</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>requests to a more powerful box within the organization. For instance, a MS</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>request would come in, and instead of being processed on that server, the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>actual mapserver work (the process of rendering the image from the raw GIS</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>data) would occur on another more powerful machine, and then the image</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>either would be passed back for service to the client, or would be read</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>directly from that machine. Is such a thing possible? What would be the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>performance implications of such a trick?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>I think this is kind of how MO IMS and ArcIMS work in that there is a &quot;Map</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Server&quot; that runs as a service... not necessarily on the web server.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>TIA</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Chip Hankley</FONT></FONT></I>
</PRE>
    </BLOCKQUOTE>
</BODY>
</HTML>

--=-qkUapdLGbqBigKRDr80n--