Re: [mapserver-users] defining fallback source in WMS client definition

2020-03-30 Thread Lars Fricke

  
  
Hello Jérome,

Thank you for pointing out this option. I will keep it in mind once
we use MapCache one fine day. For now I think having to dive into
that seems too large of a task. 

  Best
  Lars
  
   Lars
Fricke
Forschung & Entwicklung
  
  
+49(0)39602-183097
+49(0)39602-183098
  
  
SkenData GmbH
Mühlendamm 8B
18055 Rostock
www.skendata.de
  
   

  
   
www.wert14.de
  
   Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937
  

Am 30.03.20 um 10:09 schrieb jbo-ads:

Hi,
  
  
  Wouldn't MapCache be a better tool for that task? I think of a
  configuration based on fallback caches:
.
  
  Jérome.
  
  
  
  Le 30/03/2020 à 09:11, Lars Fricke a écrit :
  
  Dear all,


We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to
collect several WMS into one place, serving them to our
application.

The task now is to define a fallback for one of the WMS source
servers. That means:


Mapserver will have two technically identical sources for the
same output layer, only the URL is different. Is there a way to
define (in mapfile preferably) that one source is only used if
the other fails (is offline)? I thought of layer groups but then
I will have a duplicate call if both sources are available. I do
know this would be a better task for a load balancer or proxy
but we do not have that option at this time.


Thank you for your time and thoughts.


Best


Lars


Lars Fricke

Forschung & Entwicklung


+49(0)39602-183097

+49(0)39602-183098


SkenData GmbH

Mühlendamm 8B

18055 Rostock

www.skendata.de



Wert14



www.wert14.de


Geschäftsführer: Jon Meis und Sven Jantzen

Amtsgericht Rostock HRB 12937



___

mapserver-users mailing list

mapserver-users@lists.osgeo.org

https://lists.osgeo.org/mailman/listinfo/mapserver-users

  
  
  
  ___
  
  mapserver-users mailing list
  
  mapserver-users@lists.osgeo.org
  
  https://lists.osgeo.org/mailman/listinfo/mapserver-users


  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] defining fallback source in WMS client definition

2020-03-30 Thread Lars Fricke

  
  
Hello Andreas,
  
  Thank you for your advice. That sounds like the best way. We are
  on Nginx but I guess it can do the same.
  
  Best
  
  Lars

   Lars
Fricke
Forschung & Entwicklung
  
  
+49(0)39602-183097
+49(0)39602-183098
  
  
SkenData GmbH
Mühlendamm 8B
18055 Rostock
www.skendata.de
  
   

  
   
www.wert14.de
  
   Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937
  

Am 30.03.20 um 10:45 schrieb Eichner,
  Andreas - SID:


  Hallo Lars,

since you're on Ubuntu you're likely running MapServer in combination with an Apache HTTPd. So one option is to use an URL on localhost in your MapFile and let your webserver fordward it via mod_proxy using a fail over configuration.

HTH 

-Ursprüngliche Nachricht-
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im Auftrag von Lars Fricke
Gesendet: Montag, 30. März 2020 09:12
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] defining fallback source in WMS client definition

Dear all,

We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to collect several WMS into one place, serving them to our application. 
The task now is to define a fallback for one of the WMS source servers. That means: 

Mapserver will have two technically identical sources for the same output layer, only the URL is different. Is there a way to define (in mapfile preferably) that one source is only used if the other fails (is offline)? I thought of layer groups but then I will have a duplicate call if both sources are available. I do know this would be a better task for a load balancer or proxy but we do not have that option at this time.

Thank you for your time and thoughts.

Best

Lars


Lars Fricke
Forschung & Entwicklung


+49(0)39602-183097
+49(0)39602-183098


SkenData GmbH
Mühlendamm 8B
18055 Rostock
www.skendata.de



Wert14



www.wert14.de


Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937





  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] defining fallback source in WMS client definition

2020-03-30 Thread Eichner, Andreas - SID
Hallo Lars,

since you're on Ubuntu you're likely running MapServer in combination with an 
Apache HTTPd. So one option is to use an URL on localhost in your MapFile and 
let your webserver fordward it via mod_proxy using a fail over configuration.

HTH 

-Ursprüngliche Nachricht-
Von: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Im 
Auftrag von Lars Fricke
Gesendet: Montag, 30. März 2020 09:12
An: mapserver-users@lists.osgeo.org
Betreff: [mapserver-users] defining fallback source in WMS client definition

Dear all,

We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to collect several 
WMS into one place, serving them to our application. 
The task now is to define a fallback for one of the WMS source servers. That 
means: 

Mapserver will have two technically identical sources for the same output 
layer, only the URL is different. Is there a way to define (in mapfile 
preferably) that one source is only used if the other fails (is offline)? I 
thought of layer groups but then I will have a duplicate call if both sources 
are available. I do know this would be a better task for a load balancer or 
proxy but we do not have that option at this time.

Thank you for your time and thoughts.

Best

Lars


Lars Fricke
Forschung & Entwicklung


+49(0)39602-183097
+49(0)39602-183098


SkenData GmbH
Mühlendamm 8B
18055 Rostock
www.skendata.de



Wert14



www.wert14.de


Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] defining fallback source in WMS client definition

2020-03-30 Thread jbo-ads

Hi,

Wouldn't MapCache be a better tool for that task? I think of a 
configuration based on fallback caches: 
.


Jérome.


Le 30/03/2020 à 09:11, Lars Fricke a écrit :

Dear all,

We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to collect 
several WMS into one place, serving them to our application.
The task now is to define a fallback for one of the WMS source 
servers. That means:


Mapserver will have two technically identical sources for the same 
output layer, only the URL is different. Is there a way to define (in 
mapfile preferably) that one source is only used if the other fails 
(is offline)? I thought of layer groups but then I will have a 
duplicate call if both sources are available. I do know this would be 
a better task for a load balancer or proxy but we do not have that 
option at this time.


Thank you for your time and thoughts.

Best

Lars

Lars Fricke
Forschung & Entwicklung

+49(0)39602-183097
+49(0)39602-183098

SkenData GmbH
Mühlendamm 8B
18055 Rostock
www.skendata.de


Wert14


www.wert14.de

Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] defining fallback source in WMS client definition

2020-03-30 Thread Lars Fricke

  
  
Dear all,
  
  We use Mapserver 7.4.3 on Ubuntu. We use it as WMS client to
  collect several WMS into one place, serving them to our
  application. 
  The task now is to define a fallback for one of the WMS source
  servers. That means: 
  
  Mapserver will have two technically identical sources for the same
  output layer, only the URL is different. Is there a way to define
  (in mapfile preferably) that one source is only used if the other
  fails (is offline)? I thought of layer groups but then I will have
  a duplicate call if both sources are available. I do know this
  would be a better task for a load balancer or proxy but we do not
  have that option at this time.
  
  Thank you for your time and thoughts.
  
  Best
  
  Lars

   Lars
Fricke
Forschung & Entwicklung
  
  
+49(0)39602-183097
+49(0)39602-183098
  
  
SkenData GmbH
Mühlendamm 8B
18055 Rostock
www.skendata.de
  
   

  
   
www.wert14.de
  
   Geschäftsführer: Jon Meis und Sven Jantzen
Amtsgericht Rostock HRB 12937
  

  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users