Circus -> supervisor made right


My name is Kamil Gałuszka S4F Team

(Happy anniversary!) Bielsko-Biała 27.11.2013

Problem

  • Detect flapping
  • Managing sockets and process
  • See stdout and stderr in realtime
  • webconsole
  • supervisord has only xml-rpc access
  • there is bunch of process that you want supervise
  1.  

Thanks to...
Tarek Ziadé and Mozilla


Classical Python stack


Circus - stack



Chaussette - 

may your socks  don't suck!! 



So maybe example?

[circus]
statsd = 1
httpd = 1

[socket:web]
host = 127.0.0.1 port = 9999
[watcher:webapp] cmd = bin/chaussette --fd $(circus.sockets.web) django.wsgi.application numprocesses = 3 use_sockets = True
[watcher:celery_app] working_dir = /home/ubuntu/app cmd = /usr/bin/python args = manage.py celery worker stdout_stream.class = StdoutStream stderr_stream.class = StdoutStream [env:webapp] PYTHONPATH = /home/ubuntu/app

DEMO Time


Do you love hackathons?



Do You love JavaScript?


Python community 

by community,

for community!


PLPUG is looking for You! :)


Thanks for Your Time


Circus

By Kamil Gałuszka

Circus

  • 1,107
Loading comments...

More from Kamil Gałuszka