Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63536 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57868 invoked from network); 18 Oct 2012 21:40:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2012 21:40:06 -0000 Authentication-Results: pb1.pair.com header.from=david@davidstrauss.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=david@davidstrauss.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain davidstrauss.net from 209.85.220.170 cause and error) X-PHP-List-Original-Sender: david@davidstrauss.net X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:38292] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/D1-47215-43770805 for ; Thu, 18 Oct 2012 17:40:05 -0400 Received: by mail-vc0-f170.google.com with SMTP id fo14so10822952vcb.29 for ; Thu, 18 Oct 2012 14:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidstrauss.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lLQdrEv4ZGU/2HYnGTztRsb0JYjlG/YIppbPHRlqBzQ=; b=Jx9eKqU5EySYGnttN2+vorWpcQLxcKmnZGGAXiUTVyafqY40DMqa9J6vLDuyILTsZv HRNRJ8vjtttiyG6NgcwHsJZVn1kqjieyg/dEd1YVhOHqn0HjGyJat8ww4zolcl1L5mUg LnsS99RKvVJUnvZ3DfIwA5kozlhJv3QbK9aAw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=lLQdrEv4ZGU/2HYnGTztRsb0JYjlG/YIppbPHRlqBzQ=; b=p5idNTkRNvhmmCxbgW4tBveknl+ghvj0sMDYhkIAMG4tilRBAJt/4X7EaWRUdYXrZ6 YHF0lcDsQUnJpOKvmrswQm6tt97WEtn095/uTQxweuZqUrcFYD6rkdJ4K9Fg3IUlj761 tf6Rkv+DAZtNk3plY6QBIfa/WcRwJNtwmrklmGaIIOnAXLT2t8+dlau/63xBidx+YlTG TDOhyXWRRwDqBGr+RcR6YWb5t1VmYP+QlcAsPGh7LyPhRIt4y5vHNCaNNM7gGizptMXb L/iH9uVYVkVIQ79Dc/aF+xKVpgVFsOf+s3oW/TilcqHQDrwuFdwvWzLsbjDJlbgWUZ/x I2TQ== Received: by 10.220.157.65 with SMTP id a1mr7468240vcx.39.1350596401474; Thu, 18 Oct 2012 14:40:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.151.229 with HTTP; Thu, 18 Oct 2012 14:39:41 -0700 (PDT) In-Reply-To: <54B83C4EC8BE40D3AEC09651B26E779F@NeiRoze> References: <54B83C4EC8BE40D3AEC09651B26E779F@NeiRoze> Date: Thu, 18 Oct 2012 14:39:41 -0700 Message-ID: To: Reinis Rozitis Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQn4OEDVm4FM6rjKmx/dAGyV8bumBc5KVc+pBiylAREJ3LcxARWrvfm63oC2Y+ruxn0qxQwP Subject: Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM From: david@davidstrauss.net (David Strauss) On Thu, Oct 18, 2012 at 2:03 PM, Reinis Rozitis wrote: > What would be the advantage on using systemd instead of using FPMs native > 'ondemand' process manager? The ondemand process manager still keeps considerable memory allocated, and PHP-FPM currently has some idle CPU load (<1% per service, but it adds up when you manage 500+ pools on a box) when not processing requests. The ondemand process manager doesn't solve the dependency issue mentioned in the RFC (a web server requiring PHP-FPM to be ready) or allow privileges to be dropped before PHP-FPM gets invoked at all. The latter is useful for platform providers that let users configure PHP-FPM for their individual use cases but want to provide assigned "listening" sockets. Socket activation also supports replacing the entire binary (as with a PHP-FPM security update) without interrupting listening on the socket. PHP-FPM supports reloading to a limited degree, but I don't think it's possible to fully replace the executable. There is also work underway to have socket activation on the base system spawn or start full containers (like LXC) on-demand. Since PHP-FPM will, itself, be in the container, something else needs to listen on its behalf. Finally, it's a platform consistency issue. As more services move to socket activation in Fedora and Red Hat, socket units will become a sort of "common currency" for configuring which services listen where. -- David Strauss | david@davidstrauss.net