DIRACGrid / WebAppDIRAC

DIRAC Web front-end application
GNU General Public License v3.0
8 stars 40 forks source link

Allow to disable temporarily a handler #395

Closed chaen closed 3 months ago

chaen commented 4 years ago

When we perform an intervention on some services, the web portal tries connecting to these services, hangs, exhausts its threads, and then users complain because nothing works anymore. It would be nice if we could have a given handler return a 503 page for a while.

TaykYoku commented 4 years ago

You could describe it more specifically for a clearer understanding. What exactly are the interventions on services? maybe you have a specific example.. If the service does not respond, the portal returns [Errno 111] Connection refused:..

fstagni commented 4 years ago

Suppose that the JobMonitoring service is taken down (on purpose, e.g. because there's a database update). In that case, the "Job Monitor" handler of the Web Portal would become unusable. Instead of having (dozens) of users getting an (for them) obscure message, we would prefer to let them see a "503" message.

TaykYoku commented 4 years ago

Here are just a few thoughts on this issue:

I will do the PR taking into account the above.

chaen commented 4 years ago

thanks for looking into it. We considered removing the application from the list, but there are two issues with that:

As for ECONNECT, I will comment in the appropriate PR and we will discuss it there, but I do not think that re-inventing error code for connection error is a good idea.

I still would like, as an admin, to be able to click somewhere (even if it is editing the CS), to say "show a maintenance page for this handler".

fstagni commented 3 months ago

Won't solve.