Nginx as a single process

Hi,

Can anyone please help me to run nginx as a single process model
(threads
instead of processes). I am interested on this as I am more incline to
run
this with a usermode TCP like netmap-rumptcpip.

Anyone has done this or investigating on this ?

Thanks, Santos

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249686,249686#msg-249686

I tried to compile 1.6.0 with --with-threads. But, looks like this is no
longer supported.

    #--with-threads=*)                USE_THREADS="$value"       ;;
    #--with-threads)                   USE_THREADS="pthreads"    ;;

Can anyone please comment on this.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249686,249688#msg-249688

Hello!

On Mon, Apr 28, 2014 at 08:35:40AM -0400, nginxsantos wrote:

I tried to compile 1.6.0 with --with-threads. But, looks like this is no
longer supported.

    #--with-threads=*)                USE_THREADS="$value"       ;;
    #--with-threads)                   USE_THREADS="pthreads"    ;;

Can anyone please comment on this.

It’s a long-dead code, a leftover from previous experiments with
threads. It doesn’t work and shouldn’t be used.


Maxim D.
http://nginx.org/

Hi Maxim,

Thanks for the response.

Are you saying if I convert the processes to threads may be through
pthread
or rfork, it is not going to work? The thread model is not supported at
all?

Thanks, Santos

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,249686,249694#msg-249694

Hello!

On Mon, Apr 28, 2014 at 09:07:37AM -0400, nginxsantos wrote:

Hi Maxim,

Thanks for the response.

Are you saying if I convert the processes to threads may be through pthread
or rfork, it is not going to work? The thread model is not supported at
all?

Currently most of thread-related code is broken. It’s not
expected to work.


Maxim D.
http://nginx.org/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs