[Photon] Timeouts for dummy text instead of an address

Wojciech Łaguna w.laguna at getsent.io
Tue Feb 15 07:10:35 UTC 2022


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
```

We haven't noticed any errors in logs.

Please let me know if there is anything we can change in our set up.

I appreciate your help.

Wojtek Laguna

pon., 14 lut 2022 o 20:08 Sarah Hoffmann via Photon <
photon at openstreetmap.org> napisał(a):

> On Sat, Feb 12, 2022 at 10:51:35AM +0100, Wojciech Łaguna wrote:
> > Hi Sarah,
> >
> > When we use your instance we have an immediate response
> > https://photon.komoot.io/api/?q=Lorem+Ipsum+is+simply+dummy+text
> > but in our instance it takes over a minute
> > http://130.162.47.136:2322/api/?q=Lorem+Ipsum+is+simply+dummy+text
> >
> > Please let me know if there are any logs we may collect that will help
> you
> > with this.
>
> Must be some problem with your specific setup then. Can you describe
> how exactly your setup works (data, photon version etc). Also, have you
> checked your system logs for any error messages?
>
> Sarah
>
> >
> > I appreciate your help.
> >
> > Thank you
> >
> > Wojtek
> >
> > pt., 11 lut 2022 o 10:51 Sarah Hoffmann via Photon <
> photon at openstreetmap.org>
> > napisał(a):
> >
> > > Hi,
> > >
> > > On Thu, Feb 10, 2022 at 06:49:45PM +0100, Wojciech Łaguna wrote:
> > > > We set up our own instance of photon. It covers Europe. When we ask
> API
> > > for
> > > > an existing address we get a response within a couple of seconds, but
> > > when
> > > > we send, for test purposes, a dummy text such as "Lorem Ipsum is
> simply
> > > > dummy text" the response takes over a minute. Our photon instance has
> > > 64GB
> > > > RAM. Is it a RAM related issue or are there any options I can use
> while
> > > > setting our own instance of photon?
> > >
> > > I have never seen such behaviour. If you send exactly the same query to
> > > https://photon.komoot.io, do you see the same long response time? Can
> > > you give an example URL that goes wrong?
> > >
> > > Sarah
> > >
> > > _______________________________________________
> > > Photon mailing list
> > > Photon at openstreetmap.org
> > > https://lists.openstreetmap.org/listinfo/photon
> > >
>
> > _______________________________________________
> > Photon mailing list
> > Photon at openstreetmap.org
> > https://lists.openstreetmap.org/listinfo/photon
>
>
> _______________________________________________
> Photon mailing list
> Photon at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/photon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/photon/attachments/20220215/7eea41d4/attachment.htm>


More information about the Photon mailing list