Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

fastcgi configuration for C/C++ language applications

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


vincenzo.romano at notorand

Jan 25, 2010, 8:56 AM

Post #1 of 4 (439 views)
Permalink
fastcgi configuration for C/C++ language applications

Hi all.
I've found some documentation () that seems to be valid for PHP only.
How can I set up the fastcgi environment for C/C++ (aka "native") applications?
I've found something in the cherokee-admin page for the virtual servers.
Is there something else, for example, to control the number of
children processes
and so on?

Thanks.

--
Vincenzo Romano
NotOrAnd Information Technologies
NON QVIETIS MARIBVS NAVTA PERITVS
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


alvaro at octality

Jan 25, 2010, 9:09 AM

Post #2 of 4 (410 views)
Permalink
Re: fastcgi configuration for C/C++ language applications [In reply to]

On 25/01/2010, at 17:56, Vincenzo Romano wrote:

> I've found some documentation () that seems to be valid for PHP only.
> How can I set up the fastcgi environment for C/C++ (aka "native") applications?

Here a library you might find handy:

http://www.fastcgi.com/dist/fcgi.tar.gz

> I've found something in the cherokee-admin page for the virtual servers.
> Is there something else, for example, to control the number of
> children processes and so on?

No. The web server can not command your FastCGI application. It's up to you how you'd like your application to behave, actually.

For instance, php-cgi. It launches a number of child processes based on the value of the PHP_FCGI_CHILDREN environment variable. Whether your application spawns one or a hundred worker processes (or threads) depends entirely on your needs.

Independently of all those details, the server will connect to the same socket (TCP or Unix) and rely the same requests on it. The dispatching, response time and scale capabilities of your FastCGI application will be greatly influenced by those technical decisions though.

Cheers,

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


vincenzo.romano at notorand

Jan 25, 2010, 9:18 AM

Post #3 of 4 (410 views)
Permalink
Re: fastcgi configuration for C/C++ language applications [In reply to]

2010/1/25 Alvaro Lopez Ortega <alvaro [at] octality>:
> On 25/01/2010, at 17:56, Vincenzo Romano wrote:
>
>> I've found some documentation () that seems to be valid for PHP only.
>> How can I set up the fastcgi environment for C/C++ (aka "native") applications?
>
> Here a library you might find handy:
>
>  http://www.fastcgi.com/dist/fcgi.tar.gz
>
>> I've found something in the cherokee-admin page for the virtual servers.
>> Is there something else, for example, to control the number of
>> children processes and so on?
>
> No. The web server can not command your FastCGI application. It's up to you how you'd like your application to behave, actually.
>
> For instance, php-cgi. It launches a number of child processes based on the value of the PHP_FCGI_CHILDREN environment variable. Whether your application spawns one or a hundred worker processes (or threads) depends entirely on your needs.
>
> Independently of all those details, the server will connect to the same socket (TCP or Unix) and rely the same requests on it. The dispatching, response time and scale capabilities of your FastCGI application will be greatly influenced by those technical decisions though.
>
> Cheers,

Thanks for the answer.
I already have my FastCGI applications coming from a previous Apache environment
and have never put the hands on PHP, so I have no idea about what you mention.
On the previous environment I could configure the fastcgi spawner with
a number of parameters.
How can I do the same in Cherokee?

--
Vincenzo Romano
NotOrAnd Information Technologies
NON QVIETIS MARIBVS NAVTA PERITVS
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


stefan at konink

Jan 25, 2010, 9:38 AM

Post #4 of 4 (412 views)
Permalink
Re: fastcgi configuration for C/C++ language applications [In reply to]

Op 25-01-10 18:18, Vincenzo Romano schreef:
> How can I do the same in Cherokee?

Configure the spawner, say where it binds to, unixsocket or ip/port.

Take this bind information into cherokee-admin, 'Information Sources',
then host based.

Configure a new information source, use this source in the balancer
configuration you get when you set up fastcgi.


Stefan
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.