← Back to team overview

maas-devel team mailing list archive

Longpoll support

 

Hi all,

I've just added longpoll support to MaaS.

It's disabled by default on a dev instance because enabling it breaks
django's auto-reload feature and requires a multithreading dev server to
work properly.  To enable it :
- set LONGPOLL_URL = 'longpoll/' in src/maas/demo.py (don't forget to
set PSERV_URL = None if you don't want to talk to a real cobbler).
- start the longpoll server: make longpoll-start (that will become "make
txlongpoll-start" once Gavin's branch is landed)
- run the dev server with threading enabled: bin/maas runserver
0.0.0.0:8000 --settings=maas.demo --threading

I've included sample event listeners in index.html so you should see the
events being printed (Y.log) on the console when they are fired.

The only remaining task now is to create a proper apache production
configuration snippet that will make apache proxy requests to the
txlongpoll server (on a dev instance the maas server itself does that).

--
Raphaël


Follow ups