frickle / ngx_zeromq Goto Github PK
View Code? Open in Web Editor NEWZeroMQ transport for nginx
License: BSD 2-Clause "Simplified" License
ZeroMQ transport for nginx
License: BSD 2-Clause "Simplified" License
When I post http call, it prompt
10 connect() failed (88: Socket operation on non-socket) while connecting to upstream, client: 127.0.0.1, server:
Hi,
I has one of our servers powered by nginx, uwsgi and Bottle WSGI framework for a while now. The deployment model is as follows:
request --> nginx + uwsgi plugin (port 80/HTTP protocol) ---> (forward) --> uwsgi web server (port 8080/uwsgi protocol)---> WSGI app
I learn from this project that this plugin can speak in uwsgi. What does it mean?
Thanks
Dinh
@PiotrSikora: great stuff. I see you're playing with the Push/Pull sockets also..
Q: Does nginx allow access to the incoming stream? For example, "parsed headers", "parsed body chunk", etc, or do you have to wait until the entire request completes before you have access to it?
I am running Nginx with the ngx_zeromq module, and I believe everything is built and running to some degree. I can get resources from my Nginx server, but when I attempt to hit the ZMQ proxy I get an error.
My configuration is identical to the example given in the readme,md:
http {
upstream blackhole {
zeromq_remote REQ tcp://127.0.0.1:5555;
}
server {
location / {
proxy_pass http://blackhole;
}
}
}
The error I am getting from the error.log is:
2014/05/28 11:06:08 [alert] 5836#0: *4 connect() failed (88: Socket operation on non-socket) while connecting to upstream, client: 10.xxx.154.yyy,
server: localhost, request: "GET /zmq HTTP/1.1", upstream: "http://tcp://127.0.0.1:5555/zmq", host: "dans-ubuntu-8375.lvs01.dev.xxx.com"
Any ideas why the two protocols on the upstream value? I tried changing the proxy_passs to tcp:// or leaving it off, and got config loading errors. Any remedies appreciated.
Thanks, Dan
I created this https://github.com/jamesmarlowe/ngx-zmq-sample so that I could test the functionality of this module. After following the README though, all I am able to get from curling localhost/ is:
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty/1.7.7.1</center>
</body>
</html>
If I am just using it incorrectly, I would love to hear as I would really like to use this module. Any help appreciated.
Good day.
First of all, excuse me for asking the question instead of reading sources.
With respect,
Yura
Hi. Can you post a tutorial about how to compile your extension?
Ivan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.