[Photon] Timeouts for dummy text instead of an address

Wojciech Łaguna w.laguna at getsent.io
Tue Mar 1 12:16:36 UTC 2022


Hi Sarah.

I'm sorry for the delay in response,

Reduction in the number of languages indeed helped. Now we use: en, pl, sr

There is one thing that still concerns us. When we use geopy and ask for
100 Polish addresses we have a response in 0.05 s per request whereas for
100 Serbian addresses we have a response around 1s per request.

It is no blocker for now. We will supply more detailed info once it starts
to be troublesome.

I really appreciate your help.

Thank you

Wojtek Laguna





wt., 15 lut 2022 o 09:04 Sarah Hoffmann <lonvia at denofr.de> napisał(a):

> Hi,
>
> On Tue, Feb 15, 2022 at 08:10:35AM +0100, Wojciech Łaguna wrote:
> > Hi Sarah.
> >
> > We set up photon as a docker container:
> > ```
> > ROM adoptopenjdk:11-jre-hotspot WORKDIR /photon RUN mkdir
> > /photon/photon_data RUN curl
> >
> https://github.com/komoot/photon/releases/download/0.3.5/photon-0.3.5.jar
> > -o /photon/photon.jar -Ls COPY start.sh /photon/start.sh RUN chmod 777
> > /photon/start.sh EXPOSE 2322 ENTRYPOINT /photon/start.sh ```
> >
> > We start instance with `start.sh`:
> > ```
> > java -Xms$PHOTON_MEMORY -Xmx$PHOTON_MEMORY -jar photon.jar \ -host
> > $NOMINATIM_PG_HOST \ -port $NOMINATIM_PG_PORT \ -database
> $NOMINATIM_PG_DB
> > \ -user $NOMINATIM_PG_USER \ -password $NOMINATIM_PG_PASSWORD \
> -languages
> > $NOMINATIM_PG_LANGS ```
> >
> > The option we added is:
> > ```
> >
> NOMINATIM_PG_LANGS=en,fr,de,it,es,pl,bs,bg,ca,hr,cs,da,nl,et,fi,gl,ka,el,hu,ga,is,kk,lb,li,lt,lv,mk,mt,no,pt,rm,ro,ru,sc,sr,sk,sl,sv,tr,uk,cy
> > ```
>
> That's a lot of languages and might be the source of your problem. Can
> you try with just the first four languages and see if that solves the
> issue? You don't need to rerun the export of the database. Just run the
> Photon server with less languages.
>
> Many languages are known to cause issues. See the disucssion in
> https://github.com/komoot/photon/pull/615
>
> Sarah
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/photon/attachments/20220301/a5841481/attachment.htm>


More information about the Photon mailing list