My generall question is as follows (and I will describe my situation in more detail later)"

I am trying to figure out if it is possible to configure Apache2 in a way that will allow for me to programatically control the order of which children recieve requests. For example:

  • I have 10 idle children
  • I have 10 separate requests come in, separated each by one second (for arguments sake)
  • I want to *ensure* the order of the requests is handled by child 1, then 2, 3, ... 10 in that specific order.

    From my current understanding, this isn't really possible. Being that each of the children sit on sockets in a queue, it will most likely be up to the OS' Kernel (in a Linux/prefork environment) to determine who gets what when. However, I wanted to see if any of you wise'ns might be able to tell me differently.

    Essentailly, I don't like children getting over used. I am observing that a child will be granted the request, generally speaking, if it is idle. Therefore, given quick response times, the first child in a FIFO queue would get way more traffic than the (in my example) 10th child. I was hoping I could get around that.

    Any thoughts?

    Thanks in advance for any comments/posts!!

    2006-03-24 Retitled by planetscape, as per Monastery guidelines
    Original title: 'Configuring Apache child distribution'


    In reply to (OT) Configuring Apache child distribution by Anonymous Monk

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.