<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle25
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks, I’ll take a look at it </span>
<span style="font-family:Wingdings;color:#1F497D">J</span><span style="color:#1F497D">,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">What should be maxsize to seed? Before was 2084 with  8 8 metatiles now is 4096 with 16 16 metatiles<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I found some of the problematic layers, some of them take 4 to 6 seconds in TAB files, while the same layer in raster take 40ms, we just need to find another way to style it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Sebastiano Laini<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Web Developer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Buchanan Computing<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Rahkonen Jukka (MML) [mailto:jukka.rahkonen@maanmittauslaitos.fi]
<br>
<b>Sent:</b> 08 November 2019 15:03<br>
<b>To:</b> Sebastiano Laini <Sebastiano.Laini@BuchananComputing.co.uk>; 'mapserver-users@lists.osgeo.org' <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> VS: mapcache seed speed optimization<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FI">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">You can see examples about how to debug and improve the rendering speed with Mapserver in the presentation of Lars Schylberg
<a href="https://media.ccc.de/v/bucharest-271-mapserver-optimize-for-performance">
https://media.ccc.de/v/bucharest-271-mapserver-optimize-for-performance</a>. <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Your maps look pretty and I hope you will find some bottleneck layers so you can make them faster.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="FI" style="mso-fareast-language:FI">Lähettäjä:</span></b><span lang="FI" style="mso-fareast-language:FI"> Sebastiano Laini <<a href="mailto:Sebastiano.Laini@BuchananComputing.co.uk">Sebastiano.Laini@BuchananComputing.co.uk</a>>
<br>
<b>Lähetetty:</b> perjantai 8. marraskuuta 2019 16.30<br>
<b>Vastaanottaja:</b> 'mapserver-users@lists.osgeo.org' <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<b>Kopio:</b> Rahkonen Jukka (MML) <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>>; 'Yves Jacolin' <<a href="mailto:yves.jacolin@camptocamp.com">yves.jacolin@camptocamp.com</a>><br>
<b>Aihe:</b> RE: mapcache seed speed optimization<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">My MapServer is on the same server as MapCache and my network is pretty fast.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I was just trying to experiment with the –n and –p value and checking the CPU load and I didn’t seen any difference, but now that I read the responses I’m trying –n 6 and the CPU and the RAM is more in use now
 and seems to seed faster than before. I reach that numbers because the last time I was seeding with –n 10 was incredibly slow so I started to increase the numbers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Now in HTOP I can actually see 6 mapcache processes and not just 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Sadly to seed the whole UK in disk cache we run out of inodes, I would like to use SSD.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">About our data we use a mix of everything, here the final result
</span><a href="https://www.buchananmapping.co.uk/">https://www.buchananmapping.co.uk/</a><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">We use raster, vector and tab files; the reason I can’t move out from mapserver are mainly the mapinfo tables (tab), possibly those tab files are the slowest layers<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Even though some of the vector layers are very huge, some of them the data is about 21GB.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ll try to debug layer by layer through MapServer and strip down to the minimum or replace some layers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Lastly, the last time I’ve tried to seed the whole UK it took me more than a month and I simply stop it because was unacceptable to seed 7 levels of resolutions 70, 28, 14, 7, 2.8, 1.4, 0.7 that correspond to
 these scales 2500, 5000, 10000, 25000, 50000, 100000, 250000, 500000<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Sebastiano Laini<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Web Developer<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Rahkonen Jukka (MML) [<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">mailto:jukka.rahkonen@maanmittauslaitos.fi</a>]
<br>
<b>Sent:</b> 08 November 2019 14:02<br>
<b>To:</b> Sebastiano Laini <<a href="mailto:Sebastiano.Laini@BuchananComputing.co.uk">Sebastiano.Laini@BuchananComputing.co.uk</a>>; 'mapserver-users@lists.osgeo.org' <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: mapcache seed speed optimization<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FI">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When you seed tiles from WMS the slowest component is usually the WMS server. And what the WMS server is spending its time is usually rendering. And what makes rendering slow is usually that you render too much, and sometimes
 that WMS server gets the vector data too slow because the backend data source is slow, very often because it has poor indexes which do not for suit the queries that WMS server is
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">sending.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If you have a slow WMS you can’t get more speed out of it by bombing it with very many parallel threads. I would have a try if using 2-4, perhaps 8 threads makes seeding faster but if there is no difference I would concentrate
 on the WMS configuration. BTW. why did you <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">select to use 20000 threads?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I am not sure why you see just 1 core running on 100% load. I guess that you are now running WMS and MapCache on the same computer. Mapserver program is using only 1 core but http server should start more processes for
 parallel requests. That CPU load is at 100% is generally a good thing because it tells that CPU is working, instead of waiting data from a slow disk. Another thing is that CPU may be doing something heavy and stupid.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Myself I would start by gathering  some information about how Mapserver WMS is working be setting “DEBUG 2” on each layer or for the whole mapfile. By looking at the rendering times of each layer the slowest layers can
 be found and then it is time to think about how to make those layers faster.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">You wrote that you use SQLite cache so it would be good to know that SQLite database does not support parallel writes
</span><a href="https://sqlite.org/lockingv3.html"><span lang="EN-US">https://sqlite.org/lockingv3.html</span></a><span lang="EN-US">. Seeding with a few parallel threads may increase the speed if the WMS is the slowest part in your chain but when you have
 saturated the SQLite writing speed adding threads will do no good. If you have optimized your WMS so well that SQLite sets the limits then you should test other cache alternatives. I guess that file cache would be faster to seed from multiple threads.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When is comes to ticket </span><a href="https://github.com/mapserver/mapcache/issues/169">https://github.com/mapserver/mapcache/issues/169</a> the latest comment is from a Mpaserver developer and their last words “<span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">I
 wouldn't mind helping to fix if there were interested parties...” feel rather polite to me.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white">-Jukka Rahkonen-</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="FI" style="mso-fareast-language:FI">Lähettäjä:</span></b><span lang="FI" style="mso-fareast-language:FI"> mapserver-users <</span><a href="mailto:mapserver-users-bounces@lists.osgeo.org"><span lang="FI" style="mso-fareast-language:FI">mapserver-users-bounces@lists.osgeo.org</span></a><span lang="FI" style="mso-fareast-language:FI">>
<b>Puolesta </b>Sebastiano Laini<br>
<b>Lähetetty:</b> perjantai 8. marraskuuta 2019 14.35<br>
<b>Vastaanottaja:</b> 'mapserver-users@lists.osgeo.org' <</span><a href="mailto:mapserver-users@lists.osgeo.org"><span lang="FI" style="mso-fareast-language:FI">mapserver-users@lists.osgeo.org</span></a><span lang="FI" style="mso-fareast-language:FI">><br>
<b>Aihe:</b> [mapserver-users] mapcache seed speed optimization<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m evaluating new stacks but seems that I’m stuck with mapserver and mapcache due to the input source of our maps, so I’m trying to improve the speed of the mapserver/mapcache stack and what I cannot improve is the seed speed.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The –n and –p parameters seems to be useless.<o:p></o:p></p>
<p style="line-height:18.0pt;background:white"><strong><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#3E4349">-n | –nthreads</span></strong><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#3E4349">: number of parallel threads
 that should be used to request tiles from the WMS source. The default is 1, but can be set higher if the WMS server can withstand parallel requests. (As a rule of thumb, the value chosen here should never be much higher than the number of CPUs on the WMS server.)<o:p></o:p></span></p>
<p style="line-height:18.0pt;background:white"><strong><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#3E4349">-p | –nprocesses</span></strong><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:#3E4349">: number of parallel
 processes that should be used to request tiles from the WMS source.<o:p></o:p></span></p>
<p class="MsoNormal">I’ve tried to use –n 20000 and –p 60000 but for some reason the CPU load is max 100% in 1 core, no way to make it use more power and speed up the seed process.<o:p></o:p></p>
<p class="MsoNormal">Max memory used is 470MB between Centos 7 (with all the services running) and the seed process.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve setup apache to use HTT/2 and it make quite a difference when the cache is already seeded but during the seed process doesn’t seems to be affected.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My MapServer build is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">./configure \</span></code><code><span lang="FI" style="font-size:10.0pt"><o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-ogr=/usr/local/bin/gdal-config \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-gdal=/usr/local/bin/gdal-config \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-wfsclient \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-wmsclient \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-wfs \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--enable-debug \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-curl-config=/usr/bin/curl-config \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-proj \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-jpeg \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-freetype \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-postgis=/usr/pgsql-9.3/bin/pg_config \<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">--with-geos=/usr/local/bin/geos-config<o:p></o:p></span></code></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal">I know there is mapserver 7 and yet I’m using 6 for the test.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">While the MapCache is: <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">cmake   -DCMAKE_PREFIX_PATH="/usr/bin/sqlite3" \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_SQLITE=1 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_BERKELEY_DB=0 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_TIFF=0 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_GEOTIFF=0 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_FCGI=0 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_PCRE=0 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_PIXMAN=1 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_OGR=1 \<o:p></o:p></p>
<p class="MsoNormal">        -DWITH_GEOS=1 \<o:p></o:p></p>
<p class="MsoNormal">         ../<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">MapCache is the latest version and this is my mapcache.xml file, we use sqlite as a cache method<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <cache name="cache_sqlite" type="sqlite3"><o:p></o:p></p>
<p class="MsoNormal">  <dbfile>/home/www/html/maps/cache/{tileset}/{grid}/{z}/{x}-{y}.sqlite3</dbfile><o:p></o:p></p>
<p class="MsoNormal">  <xcount>10000</xcount><o:p></o:p></p>
<p class="MsoNormal">  <ycount>10000</ycount><o:p></o:p></p>
<p class="MsoNormal">  <pragma name="max_page_count">1573741823</pragma><o:p></o:p></p>
<p class="MsoNormal">  </cache><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <tileset name="bccache"><o:p></o:p></p>
<p class="MsoNormal">    <source>bcmaps</source><o:p></o:p></p>
<p class="MsoNormal">    <cache>cache_sqlite</cache><o:p></o:p></p>
<p class="MsoNormal">    <grid>bcgrid</grid><o:p></o:p></p>
<p class="MsoNormal">    <format>PNG</format><o:p></o:p></p>
<p class="MsoNormal">    <metatile>16 16</metatile><o:p></o:p></p>
<p class="MsoNormal">    <metabuffer>0</metabuffer><o:p></o:p></p>
<p class="MsoNormal">    <expires>2628000</expires><o:p></o:p></p>
<p class="MsoNormal">  </tileset><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <grid name="bcgrid"><o:p></o:p></p>
<p class="MsoNormal">               <metadata><o:p></o:p></p>
<p class="MsoNormal">               <title>BC custom grid</title><o:p></o:p></p>
<p class="MsoNormal">               </metadata><o:p></o:p></p>
<p class="MsoNormal">               <srs>EPSG:27700</srs><o:p></o:p></p>
<p class="MsoNormal">               <size>256 256</size><o:p></o:p></p>
<p class="MsoNormal">               <extent>0 0 700000 1250000</extent><o:p></o:p></p>
<p class="MsoNormal">               <resolutions>70 28 14 7 2.8 1.4 0.7</resolutions><o:p></o:p></p>
<p class="MsoNormal">  </grid><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <format name="mypng" type="PNG"><o:p></o:p></p>
<p class="MsoNormal">               <compression>best</compression><o:p></o:p></p>
<p class="MsoNormal">  </format><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <service type="wms" enabled="true"><o:p></o:p></p>
<p class="MsoNormal">    <full_wms>assemble</full_wms><o:p></o:p></p>
<p class="MsoNormal">    <resample_mode>bilinear</resample_mode><o:p></o:p></p>
<p class="MsoNormal">    <format>mypng</format><o:p></o:p></p>
<p class="MsoNormal">    <maxsize>4096</maxsize><o:p></o:p></p>
<p class="MsoNormal">  </service><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve also tried to use –DWITH_MAPSERVER but seems that the integration is not working and they doen’t care?
<a href="https://github.com/mapserver/mapcache/issues/169">https://github.com/mapserver/mapcache/issues/169</a> this issue was open 2 years ago and still open, not even a reply from the developers.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How can I improve the seed process?<o:p></o:p></p>
<p class="MsoNormal">Should I increase the maxsize and metatile to requests more tiles and cache faster?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Sebastiano Laini<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Web Developer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D;mso-fareast-language:EN-GB">Buchanan Computing<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>