Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121499 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26111 invoked from network); 28 Oct 2023 17:54:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 28 Oct 2023 17:54:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 467EC1804BC for ; Sat, 28 Oct 2023 10:54:27 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,BODY_8BITS, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-vk1-f179.google.com (mail-vk1-f179.google.com [209.85.221.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 28 Oct 2023 10:54:26 -0700 (PDT) Received: by mail-vk1-f179.google.com with SMTP id 71dfb90a1353d-4a8158e8613so1353690e0c.3 for ; Sat, 28 Oct 2023 10:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698515666; x=1699120466; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vKxlKJUlMuy0FJbgQN4BuW6Noy8wS97DILIZnLDFVQQ=; b=lQv3BpnAbuj/M2dzx8F4n4TFD9m1iQNlc7qBlbiSQNPZjvhoOxOl00Dskq94Fnxg9S aItTIsFwQ5zLyTuxGYC1Mh8tBAn4S6zreuQFzc2RAI+YI8H9ymvsjdYm3iMswXxnNS+1 ljo0WYnNTBpaPk+VvvtapRyWYW5qEtIw4WawK35OhejR0hcFr8X68sH2mA7aoIY6Pw3B s5lFGTfnwRXdeOUPk8fZqLHJHBV5lAE3Q8TmkoXJkwkoMTB0/yTDN4ySuskkdW4YuU1Z 2LR/D9rVhAAkovyUuMZgX7rb0jPfPH0u2ihh1xVb9VQzYWwF2Dabh2O0JEqjLdthRdmW 5hjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698515666; x=1699120466; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vKxlKJUlMuy0FJbgQN4BuW6Noy8wS97DILIZnLDFVQQ=; b=i/fzJve3U7nPp4Td4Hinb1/nh68P+aCGQn++TMZkISiFLNfJ79avdT04Hub221IbpA k84SRyZVhPahIHroIYBZff7w9bNozViBah0miC2cTx7SL1YPekkAG2ZkeURwi6Go1Ow4 zioSw/ycad5avG20B2+Qjhf1KypIJlrXDAtCA4zHrstN1pH5m1yPgJ6pMUmCK4Yzbffl ES2I2O8sW3WKuwDRpwBKK1DPpoI0dOuy0z3EXdKzKQM5n8YcOL7zNLo+lAx72a6DwVbJ bv5VTAHulU0H39QO4P7MrjJvtUdfY9NbnM14aZmkcUFp4g9B/88YzRN3LpUMuRY+gJCA 8D1g== X-Gm-Message-State: AOJu0Yzl318CYtT6nLQ5Rl6Gc0Ub6zNUaTJGOdM0MCAhZp2PSN82/16l tm56GiMMnu+mhFPrkzWLOPDBjwAwUb7elN6Lovw= X-Google-Smtp-Source: AGHT+IH5s53fVTsaOWXA1fYn6CUW7HxFQzFdXfVrtI8YEE7DobekqbmRncNAKtfTL2kJhxzu9mtI2jA6RwK7bduC3yQ= X-Received: by 2002:a1f:1f11:0:b0:49d:efe:520c with SMTP id f17-20020a1f1f11000000b0049d0efe520cmr5603873vkf.12.1698515666105; Sat, 28 Oct 2023 10:54:26 -0700 (PDT) MIME-Version: 1.0 References: <1698415135.52648521@f511.i.mail.ru> In-Reply-To: <1698415135.52648521@f511.i.mail.ru> Date: Sat, 28 Oct 2023 14:54:15 -0300 Message-ID: To: Kirill Nesmeyanov Cc: internals Content-Type: multipart/alternative; boundary="000000000000ec7d7b0608ca7e08" Subject: Re: [PHP-DEV] Discussion - PHP with distributed programming features. From: dev.juan.morales@gmail.com (juan carlos morales) --000000000000ec7d7b0608ca7e08 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El El vie, 27 de oct. de 2023 a la(s) 10:59, Kirill Nesmeyanov < nesk@xakep.ru> escribi=C3=B3: > > >=D0=9F=D1=8F=D1=82=D0=BD=D0=B8=D1=86=D0=B0, 27 =D0=BE=D0=BA=D1=82=D1=8F= =D0=B1=D1=80=D1=8F 2023, 14:38 +03:00 =D0=BE=D1=82 juan carlos morales < > dev.juan.morales@gmail.com>: > > > >Imagine a request comes to NgInx, then we process the request in PHP > >.... suddenly while execution of PHP is running, we dont have more > >resources in the server , so we need to process that PHP code on other > >server with more resources. > > > >How can we "move" the complete PHP process to another server with more > >resources and then send back the result ? > > > >this is like having a distributed php infrastructure, behaving in a > dynamic way. > > > >how can we achieve something like this? > > > >or maybe one piece of code needs to run in another server because of > >resources or something like that, like a function for example, only > >running one function in a different host and then come back to the > >mother one. > > > >My question is .... what do we need to provide PHP some functionality > >like the distributed programming languages? > > > >It could be achieve with long running PHP instances and using MPI for > >example (I imagine) but ... ideas on this ? Maybe I am crazy > > > >-- > >PHP Internals - PHP Runtime Development Mailing List > >To unsubscribe, visit: https://www.php.net/unsub.php > > Hello! > > nginx connects to fpm using the fcgi protocol via sockets. All you need t= o > do is create a socket with roundrobin (or like that), which will delegate > the request to a specific fpm socket. > > Or don=E2=80=99t reinvent the wheel, since nginx itself copes with this (= with > balancing) perfectly in reverse proxy mode =3D)) > > -- > Kirill Nesmeyanov > What I mean is more about =E2=80=A6 migrating a running php instance to ano= ther node or another php instance, in fact your php code is running, suddenly we Need to move to another node, how to do it? --000000000000ec7d7b0608ca7e08--