Plan Your Website So it is 100% Scalable – Think Growth!
Planning a site to be scalable (and can grow properly) is definitely not the easiest of things to do but then it is not impossible if you know where to start. The first question that you need to ask yourself is: How will you plan r what will you include in your plan so that your system is scalable enough for you to reach certain predictable milestones? Well! there are several different plans that can be incorporated but here is one of the best that is available and it is known as the anonymous scaling plan.
The Anonymous scaling plan is quite simple to understand: It states that you will develop a website from scratch and use only a single server and then gradually scale out horizontally once the need arises. There are different phases in the Anonymous scaling plan and they are:
Phase 1
• You incorporate a Dual Quad-Core 2.66 single server with 8GB RAM and 500GB Disk Raid 10
• The OS is most certainly going to be Fedora 8. Although you can use almost any version of Linux but Fedora 8 is considered as the best for servers.
• Web Server: The best web server you can use is Lighttpd, which is easier to configure and faster than Apache 2.
• Proxy Cache: Use Varnish as it is considered to be quite faster than Squid.
• Object Cache: Something very scalable like Memcached
• Language: Of course, there are no two ways about it: it has to be PHP 5 as it doesn’t have any bloated frameworks.
• PHP Cache: The easiest to configure is APC
• Database: The recommended database is MySQL 5 although you can even consider Postgres. The good thing about MySQL 5 is that there are quite a lot of tools available
Phase 2
In the Phase 2 of the Anonymous scaling plan, you can increase the RAM to 64 GB and cache everything
Phase 3
The Phase 3 of the Anonymous scaling plan will require you to:
• Use an original server like that of the MySQL database server
• Buy a load balancer apart from 2 more servers especially for the front end Memcached/ Varnish/Lighttpd
Phase 4
In the phase 4 of the Anonymous scaling plan, you need to focus on the usage patterns and overall load. Depending on these two factors, you will be able to scale the database horizontally
using an additional server. This will ensure that your database doesn’t become a bottleneck for your website as it will store only the metadata info. You can also alternatively separate Memcached / Varnish / Lighttpd into different tiers if the requirement arises. But whatever you do, it is important to evaluate the entire situation carefully before scaling out any further.
Phase 5
In the Phase 5 of the Anonymous scaling plan, you can increase the RAM for all servers to 64GB, cache and cache
Phase 6
If you have reached the phase 6 of the Anonymous scaling plan then you probably are well versed with most of the important aspects of server scalability.
comments
Leave a Reply

