> Hi,
>
>  am very new to uWSGI and I am having a terrible time trying to get
> anything to work.  Here is how I installed uwsgi  UWSGI_PROFILE=gevent
> pip install http://projects.unbit.it/downloads/uwsgi-lts.tar.gz



The worst thing you can do when learning new technologies is starting from
complex setup :) (signals, gevent, extreme number of file descriptors..)

I will answer to your point below

>
>
>
> 1) Why does it say that the max file descriptor number: 1024
> I have a sysctl file optimized for very high traffic.  ulimit is
> unlimited.

sysctl set the upper limits, it does nothing on processes by default.

ulimit without arguments, implies -f that has nothing to do with open file
limits.

Use ulimit -a to get useful values (you will see 1024 is your limit).

You can raise the limit from uWSGI itself with --max-fd <n>


>
> 2) Per the below code that is supposed to be executed every 15
> seconds....this is the output I get.  I used the example
>
> from uwsgidecorators import *
>     import uwsgi
>     @timer(15, target='spooler')
>     def hello_world(signum):
>         r_main_writes.set('foo','bar')
>
> could not deliver signal 0 to the spooler
> uwsgi_signal_send(): Bad file descriptor [signal.c line 412]
> could not deliver signal 0 to the spooler
> uwsgi_signal_send(): Bad file descriptor [signal.c line 412]
> could not deliver signal 0 to the spooler
> uwsgi_signal_send(): Bad file descriptor [signal.c line 412]
> could not deliver signal 0 to the spooler
> uwsgi_signal_send(): Bad file descriptor [signal.c line 412]
> could not deliver signal 0 to the spooler


i see no reason for sending signals to a non-existent process :P
You have set the decorator to send signals to the spooler, but you have no
spoolers configured (and i do not think you need one).

Remove the target directive in the decorator, in that way signals wll be
delivered to workers.

>
>
> 3) I am using bottle.py.  Just trying to do a simple write does not
> work but yet works outside of uwsgi.
>

same problem as 2, you are sending a signal to the spooler, instead of
owrkers (the default behaviour). Remove the target directive.
-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to