Re: [nginx-clojure] Getting started question

2014-07-13 Thread Xfeep Zhang
Hi Boris If there 's no port conflict, you can run multiple nginx instances without any problem. So if you do installation by binary you needn't remove the prior version. If you don't want to run multiple nginx instances , you can stop the old one and copy the configuration files to the new

[ANN] Nginx-Clojure v0.2.3 released

2014-07-05 Thread Xfeep Zhang
Nginx-Clojure https://github.com/nginx-clojure/nginx-clojure is a Nginx module for embedding Clojure or Java programs, typically those Ring based handlers. Release 0.2.3 contains four important updates 1. Fix issue - After invoking on coroutine based socket nginx worker will exit and

Re: [ANN] Nginx-Clojure v0.2.2 released

2014-06-03 Thread Xfeep Zhang
3. Remote Session Store such as Redis, MemCached etc. On Mon, Jun 2, 2014 at 5:22 PM, Toni Helenius ton...@gmail.com wrote: Out of interest, how do people use these multiprocess server thingies like nginx-clojure or vert.x with datomic? On Saturday, May 31, 2014 7:57:54 PM UTC+3, Xfeep

Re: [ANN] Nginx-Clojure v0.2.2 released

2014-06-03 Thread Xfeep Zhang
or LVS or haproxy as the front. On Tue, Jun 3, 2014 at 11:52 PM, Xfeep Zhang xfe...@gmail.com wrote: The multiprocess from nginx is quite different with some old server implementations. Within nginx one process can handle thousands of connections at the same time. But some old server

[ANN] Nginx-Clojure v0.2.1 released

2014-05-16 Thread Xfeep Zhang
Nginx-Clojure is a Nginx http://nginx.org/ module for embedding Clojure or Java programs, typically those Ringhttps://github.com/ring-clojure/ring/blob/master/SPEC based handlers. The release v0.2.1 has these new features: 1. Support to close coroutine based socket from non-main thread

Re: difference in behavior for :let modifiers in for vs. doseq

2014-05-03 Thread Xfeep Zhang
user (for [ b '(1 2 3) :let [a 1] ] (println a b)) is OK. On Thursday, May 1, 2014 12:39:22 PM UTC+8, Yuri Niyazov wrote: Hello everyone, In Clojure 1.6: user (doseq [:let [a 1] b '(1 2 3)] (println a b)) 1 1 1 2 1 3 nil user (for [:let [a 1] b '(1 2 3)] (println a b))

Re: [ANN] nginx-clojure v0.2.0 -- Let MySQL JDBC Driver Apache HttpClient Fly With Epoll/Kqueue on Nginx

2014-04-30 Thread Xfeep Zhang
upcoming web projects. On Friday, April 25, 2014 11:51:41 PM UTC-4, Xfeep Zhang wrote: nginx-clojure v0.2.0 includes new features: 1. non-blocking socket based on coroutine and compatible with largely existing java library such as apache http client, mysql jdbc drivers 2

[ANN] nginx-clojure v0.2.0 -- Let MySQL JDBC Driver Apache HttpClient Fly With Epoll/Kqueue on Nginx

2014-04-25 Thread Xfeep Zhang
nginx-clojure v0.2.0 includes new features: 1. non-blocking socket based on coroutine and compatible with largely existing java library such as apache http client, mysql jdbc drivers 2. asynchronous callback API of socket for some advanced usage 3. run initialization clojure code

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-21 Thread Xfeep Zhang
. By that time jvm_workers maybe no need to be 0 . On Wed, Jan 15, 2014 at 3:18 PM, Xfeep Zhang easy...@163.comjavascript: wrote: On Wednesday, January 15, 2014 12:39:57 PM UTC+8, Roberto De Ioris wrote: i strongly suggest you to avoid the performance as a selling point, your

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-15 Thread Xfeep Zhang
On Wednesday, January 15, 2014 12:39:57 PM UTC+8, Roberto De Ioris wrote: Hi Mingli, Thanks for your suggestion. Nginx-Clojure is quite different from uwsgi when supports JVM. Nginx-Clojure make JVM embed into Nginx worker process. JVM and Nginx worker have the same

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-15 Thread Xfeep Zhang
On Wednesday, January 15, 2014 12:39:57 PM UTC+8, Roberto De Ioris wrote: i strongly suggest you to avoid the performance as a selling point, your project is cool but not for performance (and you are using a pipe to transfer requests data from nginx to the jvm so there ipc in place too,

Re: Clojure web server benchmarks

2014-01-14 Thread Xfeep Zhang
I have committed some update. - org.clojure/clojure 1.4.0 -- 1.5.1 - compojure 1.1.4 -- 1.1.6 - ring 1.1.6 -- 1.2.1 - aleph 0.3.0-beta13 -- 0.3.0 - http-kit 1.3.0-alpha2 -- 2.1.16 - ring-netty-adapter 0.0.3 -- netty-ring-adapter 0.4.6 - remove testing about pure nginx which

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
-server-benchmarkshosted on Github. On Tuesday, January 14, 2014 10:31:03 AM UTC+8, Xfeep Zhang wrote: You're welcome. I think there are several difficult phases : (1) update the test program in clojure-web-server-benchmarkshttps://github.com/ptaoussanis/clojure-web-server-benchmarks

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
(correct me if I am wrong), does that mean, there will be many JVM process? On Tuesday, January 14, 2014 4:44:18 PM UTC+8, Xfeep Zhang wrote: I have done the first one. The result is HEREhttps://github.com/ptaoussanis/clojure-web-server-benchmarks( https://github.com/ptaoussanis/clojure-web

Re: Clojure web server benchmarks

2014-01-14 Thread Xfeep Zhang
You 're right! ab has many limitations. Maybe httpload , wrk, Weighttp or ABs ( several instances of AB) are better when test client and server do not run on the same computer. On Tuesday, January 14, 2014 5:52:59 PM UTC+8, Feng Shen wrote: Hi, nginx-clojure looks great! A small tip: ab

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
, Jan 14, 2014 at 9:12 PM, Xfeep Zhang easy...@163.comjavascript: wrote: You are welcome! Yes, you are right. One JVM instance is embed per Nginx Worker process. The number of Nginx Workers is generally the same with the number of CPU. If one Worker crashs the Nginx Master

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
not avoid IPC cost or socket cost ! So it will use more system handle (at least double ones) and more copy operataion between process and maybe more memory cost. So I think using uwsgi to integrate JVM maybe will not be so fast! On Wednesday, January 15, 2014 10:10:40 AM UTC+8, Xfeep Zhang

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-13 Thread Xfeep Zhang
in comparison to nginx + http-kit for some real world test that is not using heavy DB operations. On Mon, Jan 13, 2014 at 5:57 AM, Xfeep Zhang easy...@163.comjavascript: wrote: So far I have found why nginx-clojure is slower than http-kit when 1 concurrents. (when = 1000 concurrents

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-12 Thread Xfeep Zhang
:02 AM UTC+8, Julien wrote: Impressive! Did you run some benchmark? How does it compare to ring-jetty and http-kit? Julien Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écrit : [image: Alt text]https://github.com/xfeep/nginx-clojure/blob/master/logo.pngNginx-Clojure is a Nginx

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-12 Thread Xfeep Zhang
, January 10, 2014 8:23:02 AM UTC+8, Julien wrote: Impressive! Did you run some benchmark? How does it compare to ring-jetty and http-kit? Julien Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écrit : [image: Alt text]https://github.com/xfeep/nginx-clojure/blob/master/logo.pngNginx-Clojure

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-12 Thread Xfeep Zhang
PM UTC+8, Xfeep Zhang wrote: Sorry for my mistake! 1. In the static file test, the ring-jetty result is about 10 concurrents. NOT 1 concurrents (Concurrency Level: 10 in the ab report ). 2. In the small string test, All results about three server are about 10 concurrents

Re: Clojure web server benchmarks

2014-01-12 Thread Xfeep Zhang
If reduce worker_connections from 2 to 1024 or 128, I think nignx will be the fastest one in this test (the max concurrent level is only 96). On Saturday, January 5, 2013 11:52:57 PM UTC+8, Peter Taoussanis wrote: Hi all, Quick post to mention that I've put up some rough benchmarks

Re: Clojure web server benchmarks

2014-01-12 Thread Xfeep Zhang
] response) On Monday, January 13, 2014 12:10:40 PM UTC+8, Xfeep Zhang wrote: If reduce worker_connections from 2 to 1024 or 128, I think nignx will be the fastest one in this test (the max concurrent level is only 96). On Saturday, January 5, 2013 11:52:57 PM UTC+8, Peter Taoussanis wrote

Re: Clojure web server benchmarks

2014-01-12 Thread Xfeep Zhang
You are welcome. My Github user name is xfeep. I'm glad to join the repo. Thanks for your invitation! On Monday, January 13, 2014 2:42:44 PM UTC+8, Peter Taoussanis wrote: Hi Xfeep, Thank you, I could never understand what configuration (setting) was wrong. I do not have time to update

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-10 Thread Xfeep Zhang
wrote: Impressive! Did you run some benchmark? How does it compare to ring-jetty and http-kit? Julien Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écrit : [image: Alt text]https://github.com/xfeep/nginx-clojure/blob/master/logo.pngNginx-Clojure is a Nginx http://nginx.org

Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-09 Thread Xfeep Zhang
[image: Alt text]https://github.com/xfeep/nginx-clojure/blob/master/logo.pngNginx-Clojure is a Nginx http://nginx.org/ module for embedding Clojure or Java programs, typically those Ringhttps://github.com/ring-clojure/ring/blob/master/SPECbased handlers. There are some core features :