2012/3/12 Roberto De Ioris <[email protected]>:
>
>> This configuration causes loop
>> ;uWSGI instance configuration
>> [uwsgi]
>> xml = /usr/local/etc/hnova_uwsgi.xml
>> socket = /var/run/uwsgi_hypernova.sock
>> socket = 127.0.0.1:8080
>> listen = 1024
>> chmod-socket = 777
>> chown-socket = nobody
>> workers = 50
>> cheaper = 20
>> cheaper-algo = spare
>> pythonpath = /usr/local/lib/python2.7/site-packages
>> module = hypernova.app
>> pyargv = --modules-path=/usr/local/modules --mode=production
>> optimize = 2
>> logdate = 1
>> touch-logrotate = /var/run/hnova.pid
>> log-backupname = /spool/logs/hnova/uwsgi.log.last
>> need-app = 1
>> uid = nobody
>> gid = nobody
>> harakiri = 12
>> harakiri-verbose = 1
>> die-on-term = 1
>> ignore-sigpipe = 1
>> single-interpreter = 1
>> master = 1
>> vacuum = 1
>> show-config = 1
>> daemonize = /spool/logs/hnova/uwsgi.log
>> pidfile = /var/run/hnova.pid
>> ;end of configuration
>>
>
> Shoud be fixed (and improved) in latest tip.
>
> If you do an ipcs you should see your semaphores with the correct owner.
>
> Semaphores are destroyed on exit(), but if you want to avoid problems when
> uWSGI crashes (read: semaphores are not removed) you may want to assign a
> fixed key to them (in that way they will be overwritten at each startup)
> with the --ftok option (it takes a file as an argument, that file must
> exists and MUST BE UNIQUE for each uWSGI instance).

Thanks cool. Many thanks. :)

> Remember that FreeBSD has very low ipc limits, uWSGI uses only semaphores,
> but by default you can create only 10 semaphores per server/jail.
>
> You should raise this value with
>
> kern.ipc.semmni=100
>
> in /boot/loader.conf (remember to reboot)
>
> Obviously increase/decrease 100 to whatever you want.

Yes. FreeBSD limits are ridiculous. FreeBSD looks crappy and ancient
to me compared to linux. But historically we are on FreeBSD (sigh) :(
admins..

> I think you do not need to tune it if you use jails, as every jail has a
> different ipc namespace (maybe i am wrong, can you confirm that ?)

Don't know. We are not using jails: just a single application with
single interpreter.

> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi



-- 
--------------------------------------------
Турнаев Евгений Викторович
+7 906 875 09 43
--------------------------------------------
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to