Cloudlinux cant limit file downloading request ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jasonsmit2008
    Junior Member
    Forum Explorer
    • Mar 2021
    • 12

    #1

    Cloudlinux cant limit file downloading request ?

    Hi,
    The Cloudlinux cant limit apache requests when start downloading files with file managers softwares from server sites, And Apache go to down !
    Please tell me how to correct this problem.
    Thanks
    Smit
  • iseletsk
    Senior Member
    • Dec 2017
    • 1199

    #2
    Jason,

    Could you be more specific, like what kind of files are being downloaded?
    Where are they downloaded from?

    Why apache went down due? It is not supposed to be done when someone downloads files...

    Comment

    • jasonsmit2008
      Junior Member
      Forum Explorer
      • Mar 2021
      • 12

      #3
      Thanks Igor ,
      All files such as mp3 , zip , ...
      When many request is sent to the server to download a file (mp3,zip, ... ) fr om a hosted site in my server, Apache fails over and sites is down, And CloudLinux does not lim it the file downloading large many request .

      Comment

      • iseletsk
        Senior Member
        • Dec 2017
        • 1199

        #4
        We don limit static files, only dynamic files (PHP, CGI, etc...).

        Comment

        • jasonsmit2008
          Junior Member
          Forum Explorer
          • Mar 2021
          • 12

          #5
          Can You offer to me any solution to fix this problem ?

          Comment

          • kg
            Junior Member
            • Mar 2021
            • 3

            #6
            @igor
            We are in the process of deciding if we will use CloudLinux on a number of our servers or not.
            When I read here that you say "We don limit static files, only dynamic files (PHP, CGI, etc...)." I get a bit worried.

            Fr om the documentation, I got the impression that it was possible to limit the traffic also when the traffic was for .jpg, .pdf .html etc and not only for dynamic files.

            Would appreciate if you could confirm that we can lim it also traffic generated by static files such as .jpg, .pdf, etc.

            // kjg

            Comment

            • iseletsk
              Senior Member
              • Dec 2017
              • 1199

              #7
              No, we don limit traffic. To be honest -- I don see the point limiting traffic this days. Most control panels have bandwith limits, and if your apache web server cannot handle the number of requests, there are so many options to solve it, like:
              apache MPM Worker/Event
              Nginx
              LiteSpeed

              Comment

              • jasonsmit2008
                Junior Member
                Forum Explorer
                • Mar 2021
                • 12

                #8
                Hi,
                Weve installed the apache MPM Worker, So Im looking, but it can not limit the static requests !

                And install and is perfect NginX is a dangerous risk on shared hosting servers!

                There are also inconsistencies in lots of LiteSpeed with Cloudlinux,
                I suggest that you give up (Develop) your CloudLinux to limit Static Request, In the near future (this is a best Solution ... )
                Good luck

                Comment

                • iseletsk
                  Senior Member
                  • Dec 2017
                  • 1199

                  #9
                  MPM Worker doesn have a way to limit traffic, but it can serve much more static pages without being overloaded.
                  Most control panels have a way to limit traffic

                  Comment

                  • miron
                    Junior Member
                    • Apr 2017
                    • 12

                    #10
                    Hello,

                    So, I/O limit set to eg. 512 Kb/s will work only for php files? Static files still can use all available I/O traffic and several such clients can take a whole server down by overusing disk I/O?

                    Am I right?

                    Bandwidth is not a problem, but high disk I/O it is.

                    Comment

                    • iseletsk
                      Senior Member
                      • Dec 2017
                      • 1199

                      #11
                      You can limit anything by setting AllowHandler in modhostinglimits.conf to a wildcard or hander you want to be limited.
                      Yet, imho -- it is not worth it.
                      I have seen PHP scripts killing the IO, and I have seen MySQL killing IO. I am yet to see static files killing the IO. They are cached in memory on first read, and customer would need to have gigabytes of data, read in non-duplicated manner to affect the IO.

                      Comment

                      • miron
                        Junior Member
                        • Apr 2017
                        • 12

                        #12
                        Tnx Igor, Im pointing to this: http://www.cloudlinux.com/blog/CLOUDLINUX/8.php

                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        What prevents a customer who would be best suited for a dedicated server fr om using shared hosting? Usually it is the terms of services that prevent this. Often they state that a user cannot use too much CPU, IO or any other system resources.

                        Why not charge for these resources instead? Or at the very least why not limit them? The answer is simple – there has never been a good way to limit or account for CPU and IO usage, nor there been a good way monitor it.

                        Until now.

                        The best solution for the “everything unlimited, all-you-can-eat” plan is CloudLinux.

                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~

                        I want to offer "everything unlimited" but need a good way to monitor and limit CPU/IO resource usage, and at end charge for it if client need more CPU resources or higher IO lim it...

                        Comment

                        • jasonsmit2008
                          Junior Member
                          Forum Explorer
                          • Mar 2021
                          • 12

                          #13
                          Hi,

                          We do not have too much bandwidth and traffic is no problem in terms of their,

                          The problem is : when recived many of static requests to Apache Web Server, cloudlinux cant limit they requests and the apache down !This is very bad...
                          No Control Panel or web server can limit static requests, shall only apply to the cache !

                          And controlling static requests should be managed by the Linux kernel or Cloudlinux plugins softwares.

                          I would recommend that you upgrade to CloudLinux to limit the static requests (This is the best solution to this problem).
                          Thanks

                          Comment

                          • ersite
                            Junior Member
                            • Sep 2017
                            • 8

                            #14
                            Actually, the mod_bandwidth can limit the port speed of each cPanel account. Its inconvenient when changing the speed via ssh. I wish the function can be integrated to cloudlinux. Just like I/O setting. Clear and friendly.

                            Comment

                            • jasonsmit2008
                              Junior Member
                              Forum Explorer
                              • Mar 2021
                              • 12

                              #15
                              @ Bruce Huang

                              it cant limit static requests ! because we have tested it before ... .

                              Comment

                              Working...