<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Hey all,<br>
<br>
First background. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I have a Nominatim Kubernetes installation where one Pod contains the php-fpm server container and the nginx container, and a StatefulSet which contains the Postgres+PostGIS database. I have successfully imported the entire planet and things are working as
expected. I am defining resource requirements for a deployment environment I am not the admin of and the current requirements are raising some eyebrows. As currently configured the database and the API are requesting 16 CPUs and 64 GB of RAM each. These values
were derived from the <a href="https://nominatim.org/release-docs/latest/admin/Installation/#hardware" title="https://nominatim.org/release-docs/latest/admin/Installation/#hardware">
Nominatim installation documentation section on hardware</a>. Most references to hardware requirements seem to be defined for a deployment where the API and database share resources on a single server. I am not running updates once the import is complete due
to certain non-negotiable restrictions. The deployed version is v3.7.2. I am getting relatively performant responses, though the load (requests per second) on the server is quite light at the moment.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
On to my questions.<br>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<ol>
<li><span>What are the resource requirements for a standalone database during import? What about after import? Note I am using the recommended tuning parameters from the docs.</span></li><li><span>What are the resource requirements for a php-fpm server with the API (search.php, reverse.php, etc.) after the import is complete?
<br>
</span></li><li><span>When a request is made to an endpoint is the processing done on the API side or the database side?<br>
</span></li></ol>
<div>For the sake of reference my research into this has led to me a couple of places:</div>
<div>
<ul>
<li><span><a href="https://github.com/osm-search/Nominatim/issues/1290" id="LPlnk408016">https://github.com/osm-search/Nominatim/issues/1290</a> - Indicates an even larger server is required but again is unclear if this server is running both the database and
API or if that changes anything<br>
</span></li><li><span><a href="https://github.com/robjuz/helm-charts/tree/master/charts/nominatim" id="LPlnk432066">https://github.com/robjuz/helm-charts/tree/master/charts/nominatim</a> - Leaves resource requirements up to the user</span></li><li><span><a href="https://nominatim.org/release-docs/latest/admin/Import/#choosing-the-data-to-import" id="LPlnk174293">https://nominatim.org/release-docs/latest/admin/Import/#choosing-the-data-to-import</a> &
<a href="https://nominatim.org/release-docs/latest/admin/Installation/#hardware" id="LPlnk840976">
https://nominatim.org/release-docs/latest/admin/Installation/#hardware</a>- Mention server requirements but is
<span>unclear if this server is running both the database and API</span></span></li><li><span><span><a href="https://nominatim.org/release-docs/latest/admin/Advanced-Installations/#using-an-external-postgresql-database" id="LPlnk363470">https://nominatim.org/release-docs/latest/admin/Advanced-Installations/#using-an-external-postgresql-database</a>
- Does not mention requirements for the external database</span></span></li></ul>
<div><span><span>I realize including explicit requirements in the documentation is tricky since it is largely dependent on the dataset imported and that I am using an alternate deployment not wholly documented/supported.<br>
<br>
I appreciate any insight you all can provide and am happy to answer any questions if anything I outlined was unclear or requires additional info.<br>
<br>
Cheers,<br>
<br>
Alexander<br>
</span></span></div>
</div>
</div>
</body>
</html>