Re: [RFC] [Discussion] Measuring maximum execution time based on wall-time

From: Date: Sun, 13 Dec 2020 15:01:48 +0000
Subject: Re: [RFC] [Discussion] Measuring maximum execution time based on wall-time
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-112493@lists.php.net to get a copy of this message
Hi Máté,

On 13 December 2020 00:25:10 GMT+00:00, "Máté Kocsis" <kocsismate90@gmail.com>
wrote:
>RFC: https://wiki.php.net/rfc/max_execution_wall_time

I wonder if you could give some more detailed examples of what you would use this for.

You write:

> [The current functionality] can have serious consequences for distributed systems with high
> traffic, where finishing a request in a timely manner is essential for avoiding cascading failures.

It feels like "finishing in a timely manner" is rather different from "being
forcefully killed after a fixed time limit".

I'm struggling to picture when I'd want a hard wall-time limit, rather than:

- checking the script's duration at key points where I know it can gracefully exit, ensure a
consistent state, and return an appropriate message to the caller
- enforcing a network timeout on the calling end so that I don't need to rely on all services
cooperatively exiting in good time


Regards,

-- 
Rowan Tommins
[IMSoP]


Thread (11 messages)

« previous php.internals (#112493) next »