D
D
Dmitry Krymtsev2020-10-06 16:20:37
PHP
Dmitry Krymtsev, 2020-10-06 16:20:37

Can a site crash due to screwed audio broadcasts?

Hey! The other day I screwed several buttons from online radio to one html page.
The site is closed, the number of visitors there is no more than 70 devices. From bots everything is also closed. This page is the only public one.

The site crashes due to hosting limits being reached. At first I thought it was about hosting and moved the site to another place.
There is the same problem. I got to the statistics and in the logs I see this.

As the working day begins, everyone listens to the radio and the site crashes.

5f7c6e85acbd7053204312.png

<div class="player-sources col-sm-12">
          <ul id="sourceList">
            <!-- Lounge -->
            <li class="audiosource" data-src="https://gene-wr05.ice.infomaniak.ch/gene-wr05.mp3" >Lounge</li>
            <!-- Soundpark Deep -->
            <li class="audiosource" data-src="https://r163-172-186-238.relay.radiotoolkit.com:30003" >Deep</li>
            <!-- Indie Discotheque -->
            <li class="audiosource" data-src="http://stream.indiediscotheque.com:8000/stream" >Indie</li>
            <!-- Disko and Funk -->
            <li class="audiosource" data-src="https://air.radiorecord.ru:8102/discofunk_320" >Disko & Funk</li>
            <!-- Rap Classic -->
            <li class="audiosource" data-src="https://air.radiorecord.ru:8102/rapclassics_320" >Rap Classic</li>
            <!-- СВОБОДНО -->
            <li class="audiosource" data-src="">МЕСТО<br>СВОБОДНО</li>
          </ul>
        </div>


$(".audiosource").bind('click', function() {
        $("#sourceList .audiosource").removeClass("selected");
        $(this).addClass("selected");
        $("#audioElement").attr("src", $(this).data("src")).get(0).play();
      });
      $("#playButton").bind('click', function() {
        $("#audioElement").get(0).play();
        
        $("#sourceList .audiosource.selected").removeClass('paused');
      });
      $("#pauseButton").bind('click', function() {
        $("#audioElement").get(0).pause();
        $("#sourceList .audiosource.selected").addClass('paused');
      });
      $("#stopButton").bind('click', function() {
        $("#audioElement").get(0).pause();
        $("#audioElement").get(0).src = "";
        $("#sourceList .audiosource").removeClass("selected").removeClass('paused');
      });

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Krymtsev, 2020-10-06
@krimtsev

In general, no effect. The load was created by one plugin that was updated with a bug.
Already wrote a bug report to the developer.

G
ggrachdev, 2020-10-06
@ggrachdev

If the audio broadcasts are not on your server, then the load should not cause at all (since the request is sent to someone else's server), if on yours, then yes, the load should increase. Perhaps you should change the hosting to a dedicated server, since the hosting is hosted on a server on which there may be several sites, including not yours. It seems to me that the loads are connected with something else and definitely not with the radio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question