<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-html-editor-font-wrapper="true" style="font-family: arial, sans-serif; font-size: 13px;">I guess I was following the example in on this page:<br><br><a href="https://mapserver.org/mapcache/caches.html">https://mapserver.org/mapcache/caches.html</a><br><br>It explains the naming.<br><br>Look under section: Using Multiple SQLite Database Files.<br><br>You don't need to worry about calling the database. Mapcache is doing that.<br><br>/Lars Schylberg<br><br><br>September 20, 2018 2:40 PM, "Sebastiano Laini" <<a target="_blank" tabindex="-1" href="mailto:Sebastiano.Laini@buchanancomputing.co.uk?to=%22Sebastiano%20Laini%22%20<Sebastiano.Laini@buchanancomputing.co.uk>">Sebastiano.Laini@buchanancomputing.co.uk</a>> wrote:<br> <blockquote><div><div vlink="purple" lang="EN-GB"><div> <p><span style='font-size: 11.0pt;font-family: "Calibri",sans-serif;color: #1F497D;mso-fareast-language: EN-US'>Thanks guys,</span></p> <p><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></p> <p><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.</span></p> <p><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></p> <div><p><span style='font-size: 11.0pt;font-family: "Calibri",sans-serif;color: #1F497D'>Sebastiano</span></p></div> <div><div style="border: none;border-top: solid #E1E1E1 1.0pt;padding: 3.0pt 0cm 0cm 0cm"><p><b><span style='font-size: 11.0pt;font-family: "Calibri",sans-serif' lang="EN-US">From:</span></b><span style='font-size: 11.0pt;font-family: "Calibri",sans-serif' lang="EN-US"> mapserver-users [mailto:<a target="_blank" rel="noopener noreferrer" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b><a target="_blank" rel="noopener noreferrer" href="mailto:lars.schylberg@blixtmail.se">lars.schylberg@blixtmail.se</a><br><b>Sent:</b> 20 September 2018 13:13<br><b>To:</b> mapserver-users <<a target="_blank" rel="noopener noreferrer" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br><b>Subject:</b> Re: [mapserver-users] Mapcache instruction</span></p></div></div> <div> <p><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 target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:yves.jacolin@camptocamp.com?to=%22Yves%20Jacolin%22%20%3cyves.jacolin@camptocamp.com%3e"><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:</span></p> <blockquote style="margin-top: 5.0pt;margin-bottom: 5.0pt"><div><div><div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>Here a short tuto from my personal notes:</span></p></div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>1. create a cache entry in your mapcache file</span></p></div> <div><pre><code> <cache name="mbtiles" type="sqlite3"> <dbfile>/var/www/osm_google.db</dbfile> </cache> </code></pre></div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>2. create a empty sqlite file</span></p></div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>- run sqlite3</span></p></div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>- run this commande inside sqlite3: ".save filename.db" (without ")</span></p></div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>3. use this cache in your settings</span></p></div> <div><p><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:/....</span></p></div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>Y.</span></p></div> <div> <div><p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>Le jeu. 20 sept. 2018 à 13:07, Sebastiano Laini <</span><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:Sebastiano.Laini@buchanancomputing.co.uk"><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 :</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,</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.</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.</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.</span></p> <p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>Regards;</span></p> <p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>Sebastiano.</span></p> </div></div> <p><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>_______________________________________________<br>mapserver-users mailing list</span><br><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:mapserver-users@lists.osgeo.org"><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>mapserver-users@lists.osgeo.org</span></a><br><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="https://lists.osgeo.org/mailman/listinfo/mapserver-users"><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'> </span></p> </blockquote> </div> <p><br clear="all"><br><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>--</span></p> <div><div><div><div><div><div><div><div><div><div><div><p><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 target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="mailto:yves.jacolin@camptocamp.com"><span style='font-size: 10.0pt;font-family: "Arial",sans-serif'>yves.jacolin@camptocamp.com</span></a><br><a target="_blank" rel="external nofollow noopener noreferrer" tabindex="-1" href="http://www.camptocamp.com"><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'> </span></p></div></div></div></div></div></div></div></div></div></div></div> </div></div></div></blockquote> <p><br><br> </p> </div> </div></div></div></blockquote> <br><br><signature></signature> </div></body></html>