Skip to main content

Plan your hosting options - CIR or Monthly transfer?

This blog provides an insight to plan your hosting options.

Calculating CIR
What is CIR? In simple terms, it is the quantity of bandwidth measured as Committed Information Rate in megabits. CIR allows you to channel as much web traffic as possible within a given bandwidth. CIR calculation will help you to model your deployment option, whether to avail hosted model, or host the application in one's own dedicated server, or avail hosting provider service for monthly transfer or avail hosting provider service in pro-rata basis.

What are the important parameters one needs to consider?
One important parameter is, total number of simultaneous sessions that your web application is expecting. With this value, we can derive certain other parameters that would help us in arriving at CIR. Do not mean that simultaneous sessions imply simultaneous connections. This only means that, if we assume each session represents one user, we have that many users using the application at any given point in time.

Next, determine how much time each user likely to spend on each page. This can be a wise guess or some one from business analyst/user testing team will be able to provide. Let's assume, 60 seconds per page.
Now, determine how much time each page will take to load, again it can be a wise guess. Can we say, 10 seconds to load?. If we put the pieces put together, each user during his session, will have the pattern, 10 second page load, 60 second on the page with no traffic, again 10 second page load and so on ...
This means that each session will be engaged in 15% of total (10*100/70 = approx. 15%) time in data transfer per connection/request. If there are such 100 simultaneous sessions, then the application should accomodate 150 simultaneous connections.

Among your target users, 30% (45 of 150)of simultaneous connections have 2 Mbps line (assuming download speed is 1200 Kbps), and the rest 70% (105 of 150) have 512 Kbps DSL line (assuming download speed is 430 Kbps), then it works out be 54000 + 45150 = 99150 (rounding off 100000 Kbps = 97 Mbps). That means to say, You would need arround 100 Mbit CIR.

Apply normal distribution to determine simultaneous sessions
NOTE: For simultaneous sessions to be 1000, the web application in focus will be a huge one. In most of the normal circumstances, consider regular user base and the average session time each user will spend with the system. For example, if we assume, 5000 as regualr user base and each user spends around 20 minutes a day. Now, apply number of users on Y axis and time on X axis (at equal intervals of average session time) and apply normal distribution centered arount peak time, and derive simultaneous sessions. In our case, let's assume this to be 2% of regular user base, which works out to be 100 simultaneous session, finally results in 10 Mbit CIR.


Calculate your monthly transfer
Let's assume that each session contains 10 requests. If each request results in 50 K of datatransfer, then each session results in 10 * 50 KB = 500 KB or 0.5 MB of data transfer. If there are 5000 regular users, then we can imply 5000 sessions in a day, then it results in 5000 * 0.5 MB = 2500 MB approx. 2.5 GB of data transfer. If we assume the system will have this pattern all the 30 days in a month, then it results in 75 GB of datatransfer.

Now, you can decide whether 10 Mbit CIR is worth opting or 75 GB/month of data transfer. Even, plan your hosting enviroment!

Comments

Popular posts from this blog

Key to adopt open source product

Friends, I am working on business solution implementation on open source product called Kaltura. Kaltura is a media management solution and has loads of features that compel any business to take a peek into it. More-over this is the only complete end-to-end open source software available to handle digital assets. But it comes with its own head ache. Considering its open source, its understandable. I feel, handling these would ensure you the success in your open source product implementation. 1. In my opinion, before adopting any open source software, build the capability to deal with the inconsistency bundled in the open source software. 2. I would avoid involving external consultants for 2 reasons.      a. I am not sure, they would bring necessary expertise on to table      b. I fear that there would be little ownership, they will not see big picture of my business (neither I am interested to share it all) 3. Alternative to that is to build the tea...

Media distribution platform

Media distribution platforms focus on effective distribution of the media content, predominantly videos. With the increasing demand on enabling the web presence with dynamic video content, the platform adds immense value paving ways for generating revenue. It is not unusual to see the popular content management organizations will expand to provide media distribution services. In simple words, media distribution involves content ingestion, content processing, content categorization, content management, content protection, content distribution, content delivery targeted specifically to content consumption layer. Content ingestion is a process of gathering content from various sources. When acquired from various sources, they need to converted in uniform format to manage it efficiently. For example, news clip recorded on the field can be in raw digital format, or user generated home video uploaded to the system, or Warner brothers new movie made available in the system. Before making the...

GCP_QuickRef01

1. Signed URL is a method of granting temporary access to cloud storage/object via a link 2. How long all non-admin activity logs are kept - 7 days (Basic tier), 30 days (Premium tier) 3. What kind of access is preferred on GCS buckets - IAM Roles, to control access at the object level ACL permissions would come handy 4. VPN routing options - Dynamic BGP based, Route based, Policy based 5. If the object versioning is enabled, when the object is deleted, the deleted object is archived 6. What are the available file formats for exporting billing info to cloud storage - csv,json 7. Service accounts are the non-human IAM account, used for programmatic and application access on GCP resources 8. Environments that Stackdriver can natively monitor are - GCP and AWS 9. Persistent disks (Standard and SSD) and Local SSD 10. Method for automatically applying conditions on cloud storage buckets for deletion and changing storage class is Lifecycle management 11. Organization owner is a ro...