Replies: 3 comments 2 replies
-
It looks like Postgres is slow to retrieve the data. If you look at the
This is when Postgres loads the rows from the items found matching in the index to recheck that they really match. In that case it takes almost a second to load the 84 matching rows from the disk. I suspect that your external SSD simply doesn't have the throughput required. You can offset slow disk with more RAM up to a certain point. |
Beta Was this translation helpful? Give feedback.
-
I try to debug and find a reason why my queries still are randmoly slow :
and 2 minutes later :
And if I try this query, (below) whenever I try it it gives me about 25sec of exec time :
While my IOPS are very good :
but maybe it is the delay between my docker container data (internal disk) read/write data onto the postgre data (external disk) ? Is there a way to run a container docker entirely on a specific disk @lonvia ? |
Beta Was this translation helpful? Give feedback.
-
I've setup a
And for now it fixed this issue. |
Beta Was this translation helpful? Give feedback.
-
I've setup a full-planet
admin
styled planet (Nominatim 4.2 with docker). I've got a 32GB RAM + 2vCPU (https://pcr.cloud-mercato.com/providers/ovh/flavors/R2-30) and installed my data in an SSD external disk.My queries through search.php are randomly slow (sometimes >5sec instead of 200ms for randomly new query terms).
I recently been waiting for 30 seconds so I repeatly tried
SELECT pid, query, backend_start FROM pg_stat_activity;
while it was stuck, to find some pending queries, and I found different ones, but this one for example :which gave me:
Have you got any idea about what would be the cause of these slow queries?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions