Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: Errors uncaught by CGI::Carp

by hippo (Bishop)
on Oct 14, 2021 at 21:42 UTC ( [id://11137552]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Errors uncaught by CGI::Carp
in thread Errors uncaught by CGI::Carp

Not all resource limits are global. At $WORK we impose per-user limits (effectively per-site limits) on our shared hosting customers precisely so that one poorly-written or heavily-hit site doesn't adversely impact upon the rest. I would expect every other shared hoster to implement something similar. This would explain why you only see it in production - that site will (hopefully) receive orders of magnitude more traffic than your test/demo site.


🦛

Replies are listed 'Best First'.
Re^4: Errors uncaught by CGI::Carp
by Bod (Parson) on Oct 14, 2021 at 22:01 UTC

    I am sure there are per-user resource limits. In fact I know there are because the host documents then. But I'd assumed they would cover all my sites within the same account. I have a hosting account with add-on domains. Both the production and test sites are add-on domains and there are others. One of the others gets much more traffic than the one that is generating errors - sometimes up to 50 times more traffic when we have some ad campaigns running and they don't give an error.

    I've checked the bandwidth logs and we never go above 15% of the allowance.

Re^4: Errors uncaught by CGI::Carp
by Bod (Parson) on Oct 14, 2021 at 22:38 UTC
    Not all resource limits are global. At $WORK we impose per-user limits

    At $work do you throw a 500 error if a user exceeds their resources or do you send something more informative to the browser?

      Depends which resource is being exceeded. Certainly if they try to exceed their RAM or CPU limits then the process will just die because there is no other action which could be taken and that will result in a 500, but what gets to the browser depends on what they've already sent by that stage. Exceeding other limits mostly just results in that action failing (eg. if they try to open a file past that limit then the file will not open so their code should test for that (as it always should anyway)).


      🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137552]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found