Hi Rick,
“havent successfully manipulated harakiri”:
Does his mean you changed it but it had no effect
or didn’t you change it at all?
(no native speaker
Anyway: Glad to hear, that it does work out for you, now.
If you have any further questions, just ask.
Kind regards
CorneliusAm Freitag, den 11.12.2015, 12:54 -0800 schrieb RickP:
I believe you are right on this uwisgi worker killing its self off
after 60 seconds, I havent successfully manipulated the harakiri value
to affect change, but did build a new test frontend web instances with
apache2 today and keys return consistently in 1 second time after time
after time…
On Tuesday, December 8, 2015 at 2:13:25 PM UTC-5, Cornelius Kölbel wrote:
Hi Rick,
I can not reproduce 5 secs. But I have the impression, that
using nginx
produces a similar effect on my system. Well not 5 secs but
maybe
0.5secs delay. (But at the moment I am using it with a local
MySQL)...
OK, here is my suggestion. After 60 secs the uwsgi workers get
killed.
For what reason ever - probably because I am no nginx
expert ;-)
So please try to change the <harakiri> value in
/etc/uwsgi/apps-enabled/privacyidea.xml
to a higher value. Several minutes and restart uwsgi.
My theory is, that the uwsgi workers get killed. And when they
are
initialized again, they need to setup all the environment.
Including the
DB connection, which takes more time to your remote postgres
server.
At the moment I am to lazy to setup a postgres to confirm my
theory ;-)
Can you do so by changing the above mentioned config?
Kind regards
Cornelius
Am Dienstag, den 08.12.2015, 19:58 +0100 schrieb Cornelius
Kölbel:
> Hi Rick,
>
> to rule out the nginx/uwsgi you could run the server with
the runscript
> as user root:
>
> # pi-manage runserver -t 10.1.25.133 -p 1234
>
> And connect to this machine (if it is ok for you, to run it
unencrypted.
>
> Otherwise run it locallay and do an SSH port forwarding.
>
> # pi-manage runserver -z 127.0.0.1
>
> If the 5sec remain it is either due to PI code or due to the
database.
> If it is gone. We need to take a look at nginx/uwsgi.
>
> Kind regards
> Cornelius
>
> Am Dienstag, den 08.12.2015, 19:43 +0100 schrieb Cornelius
Kölbel:
> > Which postgres driver are you using?
> >
> > Have you restarted uwsgi after changing pi.cfg?
> >
> > Kind regards
> > Cornelius
> >
> > Am Dienstag, den 08.12.2015, 10:41 -0800 schrieb RickP:
> > > in a basic python script to connect to the DB we
effeminately see the
> > > delay if using hostname, and do not see the delay at all
if using IP,
> > > leads one to think something bad in dns, but nslookups
immediately
> > > return the hostname lookup, using IP inside the pi.cfg
did not change
> > > the behavior however, enabling debug logging to see what
pops there
> > >
> > >
> > > the test scripts were simply:
> > >
> > > conn_string = "host='wslpidpg098.inmar.com'
dbname='privacyidea'
> > > user='svcpidea' password='catonaroof'"
> > >
> > > vs
> > >
> > > conn_string = "host='10.1.25.131' dbname='privacyidea'
user='svcpidea'
> > > password='catonaroof'"
> > >
> > > --
> > > You received this message because you are subscribed to
the Google
> > > Groups "privacyidea" group.
> > > To unsubscribe from this group and stop receiving emails
from it, send
> > > an email to privacyidea...@googlegroups.com.
> > > To post to this group, send email to
priva...@googlegroups.com.
> > > To view this discussion on the web visit
> > >
https://groups.google.com/d/msgid/privacyidea/39c72a57-281e-4853-8422-95d31281ad23%40googlegroups.com.
> > > For more options, visit
https://groups.google.com/d/optout.
> >
> > --
> > Cornelius Kölbel
> > corneliu...@netknights.it
> > +49 151 2960 1417
> >
> > NetKnights GmbH
> > http://www.netknights.it
> > Landgraf-Karl-Str. 19, 34131 Kassel, Germany
> > Tel: +49 561 3166797, Fax: +49 561 3166798
> >
> > Amtsgericht Kassel, HRB 16405
> > Geschäftsführer: Cornelius Kölbel
> >
> >
>
> --
> Cornelius Kölbel
> corneliu...@netknights.it
> +49 151 2960 1417
>
> NetKnights GmbH
> http://www.netknights.it
> Landgraf-Karl-Str. 19, 34131 Kassel, Germany
> Tel: +49 561 3166797, Fax: +49 561 3166798
>
> Amtsgericht Kassel, HRB 16405
> Geschäftsführer: Cornelius Kölbel
>
>
--
Cornelius Kölbel
corneliu...@netknights.it
+49 151 2960 1417
NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel
–
You received this message because you are subscribed to the Google
Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/privacyidea/8ede3661-8129-4a54-9feb-08d606a2d032%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Cornelius Kölbel
@cornelinux
+49 151 2960 1417
NetKnights GmbH
http://www.netknights.it
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel
signature.asc (836 Bytes)