Hello, We are trying to build a feature that accepts numerous GET requests and logs them in a specific format for further processing. But I have very limited understanding of NGINX/UWSGI and any help in this regard will be greatly appreciated.
In the first layer we use NGINX that uses the Empty_GIF module<http://wiki.nginx.org/HttpEmptyGifModule>and forwards the request to UWSGI using *include uwsgi_params;* *uwsgi_pass 127.0.0.1:9090;* Now I am trying to integrate ZeroMQ<http://projects.unbit.it/uwsgi/wiki/ZeroMQLogging>with UWSGI. Here I am trying two approaches 1.* ./uwsgi --socket :9090 --logger zeromq:tcp:127.0.0.1:9091* but this gives the error zmq_connect(): Invalid argument [core/logging.c line 188] zmq_connect(): Invalid argument [core/logging.c line 188] 2. *./uwsgi --socket :9090 --logger file:file6.txt --wsgi-file ../../hello/zeromq.py* where zeromq.py has the content def application(environ, start_response): * import zmq* * context = zmq.Context()* * puller = context.socket(zmq.PULL)* * puller.bind('tcp://127.0.0.1:9091')* * while True:* * message = puller.recv()* * // Here we intend to format the log in a specific way and publish it to a file* * print message* but this gives the error *Traceback (most recent call last):* * File "../../hello/zeromq.py", line 4, in application* * puller = context.socket(zmq.PUSH)* * File "/usr/local/lib/python2.7/dist-packages/pyzmq-13.0.2-py2.7-linux-x86_64.egg/zmq/sugar/context.py", line 82, in socket* * s = self._socket_class(self, socket_type)* * File "socket.pyx", line 210, in zmq.core.socket.Socket.__cinit__ (zmq/core/socket.c:2144)* *zmq.error.ZMQError: Bad address* *[pid: 6503|app: 0|req: 1/1] 127.0.0.1 () {30 vars in 528 bytes} [Tue Apr 16 13:31:18 2013] GET /v1/ads/beacon.gif* * * Please let me know if I am missing something. Thanks in advance. -- Regards, Aadithya
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
