
Today we offer all
Frodio listeners, and those who have not yet become familiar with the best broadcasting system on the Internet, plunge into the world of technical details and find out how, by whom, and what features are used by users of our platform.
To begin with, Frodio works entirely on the infrastructure of
Selectel . All servers are located on Selektel's virtual cloud machines, the price / quality ratio of which compares favorably with competitors' offers.
We use the following technologies: Nginx + Starman + Mojolicious + Perl + MySQL.
Broadcasting is done using
Icecast and
Liquidsoap .
')
The whole system is divided into several parts:
1.
Server system kernel and database2.
Broadcast Server3.
Server generation threadsWe will tell about each of them in more detail.
The system core server and the database on which the system engine is located, the Frodio.com website, as well as the DBMS.
Specifications: 2 GB of RAM, 8 CPU cores, 20 GB of space on the HDD.
Average daily expenses in the Selectle cloud:
Machine time 98,76 rub. / 98.760 hours
Memory consumption 24.41 rub. / 49.134 GB * hour
Disk: read requests 1.61 rub. / 0.483 mln. Pieces
Disk: write requests 5.81 rub. / 1.743 mln. Pieces.
Disk: read volume 1.03 rub. / 10.300 GB
Disk: recorded volume 2.56 rub. / 25.600 GB
Disk: storage 6.00 rub. / 1.201 TB * hour
Network: received 14.01 rubles. / 70.050 GB
Network: sent 24.31 rub. / 24.310 GB
Total 178,50 rub.The broadcast server broadcasts via Icecast.
Specifications: 2GB of RAM, 8 CPU cores, 1.5GB of space on the HDD.
Average daily expenses in the Selectle cloud:
Machine time 4,08 rubles. / 4.080 hours
Memory consumption 24,42 rub. / 49.154 GB * hour.
Disk: read requests 0.02 rub. 0.006 mln. Pieces
Disk: write requests 0.33 rub. / 0.099 mln. Pieces
Disk: read volume 0,00 rub. / 0.000 GB
Disk: recorded volume is 0.07 rubles. / 0.700 GB
Disk: storage 1.92 rub. / 0.384 TB * hour
Network: received 22.93 rubles. / 114.650 GB
Network: sent 397.71 rub. / 397.710 GB
Total 451.48 rubles.The stream generation server “Frodio Transmitter” performs the following functions: broadcasting stations (including mixing tracks, crossfading, amplify, normalize, preparing and broadcasting playlists, rotating tracks / jingles / commercials according to a given algorithm, generating streams in mp3 / aac + / ogg), relaying third-party streams (apmlify, normalize, transcoding to any format of mp3 / aac + / ogg stream, changing id3-tags, broadcasting backup streams), creating live-inclusions in broadcast and relay streams.
Specifications: 4GB of RAM, 8 CPU cores, 164GB of space on the HDD.
Average daily expenses in the Selectle cloud:
Machine time 104.33 rubles. / 104.330 hours
Memory consumption 48.84 rub. / 98.308 GB * hour.
Disk: read requests 1.45 rub. / 0.435 mln. Pieces
Disk: write requests 1.02 rub. / 0.306 mln. Pieces.
Disk: read volume 1.68 rub. / 16.800 GB
Disk: recorded volume of 0.35 rubles. / 3.500 GB
Disk: storage 32,39 rub. / 6.482 TB * hour
Network: received 13.84 rubles. / 69.200 GB
Network: sent 105.02 rub. / 105.020 GB
Total 308.92 rubles.As you can see, every day of the existence of Frodio costs us an average of 940 rubles, which, given today's prices for such an infrastructure, is quite modest. Of course, as the user base grows, our expenses increase, but the fact that we can easily scale (specifically, the streaming server) as the number of radio stations increases makes the cloud profitable for us and convenient for Frodio users.
Although
Selectle is a young company, we use this platform for our other projects. As you know, in any barrel of honey there is a fly in the ointment, and here are the points that I would like to see in a well-developed state (we are sure that company representatives will pay attention to this):
- Dynamic increase in the size of the file system from the control panel, without client intervention in the partitioning structure of the disk;
- There is no possibility to use a shared disk for several virtual machines (as implemented in Amazon EC2);
- Sometimes there are cases of selection of system resources in favor of more "voracious" customers;
- Not enough shared data storage similar to Amazon S3;
- There is no way to make copies of virtual servers from snapshots.
We want to believe that the company will cope with these temporary problems, and will provide an excellent competitive product at the global level.
Nevertheless, we will continue the discussion of the
Frodio platform, where there are still many interesting details. Several graphs show the total load on the platform:
1. The number of users online (more on this in more detail below)

2. The number of queries to the MySQL database

Actually, let us consider in detail the audience of Frodio - respected listeners, which are becoming more every day.

Currently, the average number of listeners is 427 per day, of which 130 use the
Frodio.com web interface for this. Peak performance: 450 students per day, 165 of them from the site.
In total, almost 5,000 users from 49 countries of the world are registered with Frodio. Russia and Ukraine are leading, but also abroad, in the USA, Great Britain and Europe, they also listen to interactive radio.

We had two main periods of new registrations: at the end of October last year, more than 500 people came, which was associated with the opening of the beta version, and another 500 people at the end of last month, when we first told about Frodio in Habrahabr.
Nearly 1100 people installed
Frodio's iOS app and logged into their account, becoming regular listeners at our radio stations.
Over the entire existence of the Frodio platform, 15,710 likes of unique tracks have been made (there are more than 60,000 likes in total), and more than 3,000 unique tracks have received user comments (more than 10,000 comments in the system).
Social networks that connect Frodio users with an account, in order of popularity:
Facebook - 1134
Vkontakte - 1000
Twitter - 778Last.fm - 554 (which is interesting, if before scrobbling was carried out in 324 accounts, now there are only 10 of them - it is obvious that Last.fm has lost popularity)
Soundcloud - 188
Google Buzz - 95
LinkedIn - 50From Frodio, about 35,000 likes and statuses were posted to social networks:
Last.fm - 14 214
Twitter - 9261
Facebook - 6854
Google Buzz - 4109This is Frodio’s user statistics in numbers, and here’s in charts:



But besides the users, we have another Frodio litmus test, namely the radio station.
We now have 47 stations, of which 6 are broadcast by Frodio (Station 2.0, HHFM, Bukvario, Ethnogenesis, Z, Courage Bambey), and the rest are retransmitted. Another 9 stations are in test mode.
What is the statistics of the most popular radio stations:
Station 2.0 (peak - 310, now - 167)
Z (peak - 76, now - 21)
Courage Bamba (peak - 67, now 8)
HHFM (peak - 55, now 31)
Revoice (peak - 55, now 10)
NCRadio (peak 34, now 6)
LoungeProject (peak 33, now 9)
K-Rock (peak 31, now 5)
DnBHeaven (peak 31, now 14)
Kiss FM (peak 28, now 18)
EL Station (peak 24)
Ethnogenesis (peak 22)
Alter Radio (Peak 22)
Bukvario (peak 20)
16bit (peak 19)As for the various performers, during the existence of Frodio, our listeners heard: 48,153 different performers who performed 167,934 tracks. All in all, at all stations, we have more than 2,069,011 track rotations.
At this point, the data on the internal work of Frodio, almost come to an end. But this does not mean that we have nothing more to tell, go to Frodio.com - turn on the radio station and enjoy!
Separately, we would like to mention our link shortener frd.io, which is actively used and during his life more than 20,000 different links were reduced - mostly internal links from Frodio.com
462 people wrote us a feedback, for which we say separately "Thank you!" To each of them. We are just beginning to evolve, and to bring the area of ​​interactive broadcasting to the kind that we imagine, so every opinion plays an important role for us.
And finally, a large piece of infographics, so beloved by usernames, which clearly shows how Frodio works. Those who want to learn more details from the first mouth, we can offer
to listen to the podcast with one of our developers on Habrahabr.

More than a radio, better than a radio -
only Frodio .