Changing the server parameters #218
Replies: 7 comments
-
This issue would need more detail: hardware, size of the data/database, how many requests we're talking about, how many parallel requests, if the machine is CPU-bound, disc-bound, running out of memory. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I see. Big machine, lots of data. The bottleneck is probably not hardware but the webserver. The default Apache configuration won't start enough threads to serve all incoming requests. In your There's a couple of tutorials on how to scale Apache on bigger hardware to make sure of more CPU cores. https://www.liquidweb.com/kb/apache-performance-tuning-mpm-directives/ As a start increase The guides often also recommend to use php_fpm or other application servers. There's an example in https://github.com/osm-search/Nominatim/blob/master/vagrant/Install-on-Ubuntu-18-nginx.sh but based on the nginx webserver so that would require a lot more changes. |
Beta Was this translation helpful? Give feedback.
-
Hi @mtmail, Do you have any advice on how to switch from
The prefork mod seems to be missing the directives you mentioned. Is the idea to not enable Many thanks, |
Beta Was this translation helpful? Give feedback.
-
Hmm, maybe I mixed up the mpm_* module names, I'm using something different. If you get mpm_event enabled you can try these settings https://github.com/openstreetmap/chef/blob/master/roles/nominatim.rb#L15 as a start. |
Beta Was this translation helpful? Give feedback.
-
Hi @mtmail, Thank you for the suggestion. Actually increasing the values in the conf file for Many thanks again, |
Beta Was this translation helpful? Give feedback.
-
Dear @mtmail, I haven't had any luck trying to tweak the container to get mpm_event working. Would you please do lend me a teaching moment and point me in the direction of how to use that Chef file. I learned about Chef from your link, and to be honest I have no idea where to begin. If not, no worries. Best, |
Beta Was this translation helpful? Give feedback.
-
Is there a way to change the parameters of the server such that it can receive more HTTP requests in a short period of time? I keep getting timeout and bad request errors because I'm doing multiprocessing with a long list of addresses to geocode. I was hoping that by installing my own instance of Nominatim I could get rid of this issue.
Beta Was this translation helpful? Give feedback.
All reactions