I can't get it to work using http://projects.unbit.it/uwsgi/wiki/HTTPserver


1. router node
uwsgi -M --http 172.16.200.53:9080 --http-subscription-server
172.16.200.53:3333 --http-ss :1230


2. backend node
uwsgi -M --socket 172.16.200.55:12345 --plugins-dir /usr/lib/uwsgi/plugins
--plugins 0:dummy --check-static . --subscribe-to 172.16.200.53:3333:
domain.com --process 16


*** Starting uWSGI 1.4.1 (64bit) on [Tue Nov 13 10:28:28 2012] ***
compiled with version: 4.4.3 on 13 November 2012 09:26:57
os: Linux-3.0.0-23-virtual #39~lucid1-Ubuntu SMP Fri Jul 20 19:37:29 UTC
2012
nodename: sudoku-dev-lb1
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /root
detected binary path: /usr/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
uWSGI http bound on 172.16.200.53:9080 fd 3
uWSGI http subscription server bound on 172.16.200.53:3333 fd 4
mapped 72392 bytes (70 KB) for 0 cores
*** Operational MODE: no-workers ***
spawned uWSGI master process (pid: 6361)
spawned uWSGI http 1 (pid: 6362)
*** http stats server enabled on :1230 fd: 9 ***
[uwsgi-subscription for pid 6362] new pool: domain.com (hash key: 28909)
[uwsgi-subscription for pid 6362] domain.com => new node:
172.16.200.55:12345


curl -v domain.com:9080
* Empty reply from server
* Connection #0 to host domain.com left intact
curl: (52) Empty reply from server
* Closing connection #0

It seems that my http socket works as a http server, not router.

-- 
Łukasz Mierzwa
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to