<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        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";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle21
        {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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thanks guys,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I will try to do it after I will recompile again Mapcache to use SQLite as I compite it
</span><i><span style="font-size:11.0pt">-DWITH_SQLITE=OFF \</span></i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I suppose that I can also think about to split the db as we are speaking about more than 10milion files.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">How exactly do you call the database and how this code
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif">/{grid}/{tileset}/{z}/{x}-{y} works?</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Sebastiano<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language: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="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>lars.schylberg@blixtmail.se<br>
<b>Sent:</b> 20 September 2018 13:13<br>
<b>To:</b> mapserver-users <mapserver-users@lists.osgeo.org><br>
<b>Subject:</b> Re: [mapserver-users] Mapcache instruction<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I also ran into the problem of running out of i-nodes last year.<br>
<br>
Here is the configuration I have with a sqlite cache:<br>
<br>
<cache name="Nordic_sqlite" type="sqlite3"><br>
<dbfile>/data/mapcache/{grid}/{tileset}/{z}/{x}-{y}.sqlite3</dbfile><br>
<xcount>10000</xcount><br>
<ycount>10000</ycount><br>
<pragma name="max_page_count">1573741823</pragma><br>
</cache><br>
<br>
I guess the pragma thing is described in the documentation.<br>
xcount and ycount describes how much You want to store in each sqlite db file before it creates a new db file.<br>
mapcache is creating the db files automatically. So seeding a large area You end up with many sqlite db files that all work together.<br>
<br>
This has worked really good for our use case.<br>
<br>
Lars Schylberg<br>
<br>
<br>
September 20, 2018 1:24 PM, "Yves Jacolin" <</span><a href="mailto:yves.jacolin@camptocamp.com?to=%22Yves%20Jacolin%22%20%3cyves.jacolin@camptocamp.com%3e" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">yves.jacolin@camptocamp.com</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">>
 wrote:<o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Here a short tuto from my personal notes:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">1. create a cache entry in your mapcache file<o:p></o:p></span></p>
</div>
<div>
<pre><code> <cache name="mbtiles" type="sqlite3"> <dbfile>/var/www/osm_google.db</dbfile> </cache> </code><o:p></o:p></pre>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">2. create a empty sqlite file<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">- run sqlite3<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">- run this commande inside sqlite3: ".save filename.db" (without ")<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">3. use this cache in your settings<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">You don't need MySQL or PostgreSQL, only sqlite3 and its dependencies. Path used in my example for cache block are for Unix like system, you should adapt it for Windows : c:/....<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Y.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Le jeu. 20 sept. 2018 à 13:07, Sebastiano Laini <</span><a href="mailto:Sebastiano.Laini@buchanancomputing.co.uk" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Sebastiano.Laini@buchanancomputing.co.uk</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">>
 a écrit :<o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<div>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hi all,<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">We have a MapCache setup with “disk_cache” but we are running out of Inodes when I try to seed the whole UK with projection 27700.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I was thinking to propose to my supervisor to use the “SQLite Caches” but I don’t know how it works. Can someone guide me through the process of setup MapCache with this type of cache? And if
 I need some dependency, we use PostgreSQL in our server so I assume I need to install also MySQL.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I’ve already read the documentation but still I have doubt about the db part, how to create the db and locate it. I never use SQLite, just PostgreSQL.<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Regards;<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Sebastiano.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">_______________________________________________<br>
mapserver-users mailing list<br>
</span><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">mapserver-users@lists.osgeo.org</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">https://lists.osgeo.org/mailman/listinfo/mapserver-users</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">
<o:p></o:p></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br clear="all">
<br>
--<o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Training and support manager<br>
Camptocamp<br>
Bâtiment le Dauphin - 1er étage<br>
18 rue du Lac Saint André<br>
73382 Le Bourget-du Lac<br>
<br>
Tel (France) : +33 4 58 48 20 43<br>
Tel (Switzerland) : +41 21 619 10 43<br>
Mob. : +33 6 18 75 42 21<br>
<br>
email : </span><a href="mailto:yves.jacolin@camptocamp.com" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">yves.jacolin@camptocamp.com</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
</span><a href="http://www.camptocamp.com" target="_blank"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">http://www.camptocamp.com</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">
<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</body>
</html>