12 Oct 2016
Ahead of Tuesday's £150M+ Lottery draw, an email was sent to thousands of users of the UK National Lottery website.
"This is a service message to let you know that we expect to see high volumes of visitors to The National Lottery website and app in the hours leading up to the close of ticket sales for the EuroMillions draw, at 7.30pm, on Tuesday 11th October.
If you plan to buy a ticket for any of our games this week and you need to add funds to your account to play, we would recommend that you do this as early as possible in order to avoid disappointment. "
We suspect that something in the infrastructure doesn't scale automatically. No doubt the web or front end servers scale, however they are expecting a performance bottle neck somewhere. This is where performance testing of the whole infrastructure is important, to identify and work on those bottle necks. Once identified, automation of the service can be planned and provided. Often it is the database layer, but these too can be scaled with read replicas or sharded, allowing for greater number of active connections.
For more information or a quick chat, contact us.
11 Oct 2016
Once you know what your servers should be doing every day, and when, you are in a position to automate the processes that manage and build the servers.
There are three levels to consider when building servers automatically.
- What does the infrastructure look like? Network, firewalls, load balancers, subnets etc
- What is the role of the server? Software to be installed, configuration etc
- Scheduling and code deployments.
The phrase infrastructure as code is used to describe the process of creating, storing (including version control) and running of code that builds the environment in which the server(s) live. Of course you don't have to automate everything at once and when you are ready there are tools to help setup the infrastructure for you.
Terraform (from the same people that brought you vagrant) and cloudformation to name but two. These tools allow you to define exactly what you want your servers and the associated environments to look like, so you can build in a completely predictable way, every time you choose to run the code. These tools allow you to modify the code and then rerun to apply the code. Keeping everything self documenting (if you can read the code) too.
Regardless of how your infrastructure is deployed (manually or automated) you can define the server build process as code too. This is the code the server will process to build itself from the moment it is switched on. Again there are a few tools to assist us; In Linux/Unix land - Puppet, Chef, Ansible and more specific to Microsoft is System Center Configuration Manager and Landesk. All of these tools allow you to define how you want your server too look, either by following a series of scripts or by defining the end configuration result, allowing your team to provide a known good result, every time they build a new server.
Now that our servers are built and working in an environment just for them, things change. Most clients we work with are developing software, so that does change a lot. Deployments of new code can also be automated. Either as part of the initial server build process, a) updated software code, b) rebuild server(s) or as a specific pipeline. The next set of tools available are often referred to as Continuous Integration/Continuous Delivery (CICD) or build tools. These allow a sequence of events to be defined, that the tool will process to build, test and deploy the new code. This can be as simple as building a server, or as complex as building a complete software package bundle. The most common tools are; Jenkins, TeamCity, Travis CI and Team Foundation Server. These work in conjunction with Source control repositories like Git, SVN.
Should you want any assistance with automation or just want to discuss your options, contact us.
10 Oct 2016
Following on from my article about pets vs cattle, we shall go into more detail about what it means have an elastic and scalable application or service.
Is my application scalable?
The first test to answer this question is, does it run on more than one server - and work. This is not a trivial question. One of our clients has a website sitting on two servers behind a load balancer ( a network server that shares the load between servers based on a set of rules). The load balancer was set to a 'sticky' configuration. This means that the customer visiting the website would always be served by the server they originally talked to. However, in this case, should that server not function, die, develop a fault or otherwise become out of service, the customer would find themselves directed to the other server (fail over). Sounds good, until we tried it. When the fail over happened, the server didn't 'know' the customer and asked them to log in again. Not very seamless!
We worked with the developer team to alter the code of the website so that the servers would play nice together. In this case it was a case of making sure shared session data ( who the customer logged in as) was available to both (or all) servers delivering this application. After making the necessary changes and testing, our customer was ready to deploy to production with the side benefit of being able to switch off 'sticky sessions'. These servers however were fixed. There was always two and you could say they were pets.
Is my application elastic?
Elastic applications go one step further. Imagine the marketing manager has just told you they are running an advert for this application on TV tomorrow. With so little warning, there isn't much that can be done but hope that two servers will be enough to cope with demand. If they are virtual servers, you could arrange for them to be upgraded with more cpu and memory (Vertical Scaling).
With some automation however the answer is very different. Another of our clients automate the build of their servers (with our help). This means that on demand or a schedule, a new server is created and built from scratch by a computer following a set of instructions. This means the application can be elastic and autoscale. With the same information above, everyone can rest easy knowing that should the monitoring detect a higher demand, more servers (usually one at a time) will be built and added to the load balancer automatically or it hits a predetermined limit (so the internet doesn't put a hole in your budget). The monitoring also checks when a server has been idle for a programmed time limit and will remove and destroy a server (virtual servers don't feel a thing), until the configured minimum number of servers is reached.
I hope this article helps show the benefits of having your applications elastic and scalable. Please contact us should you want to learn more.
06 Oct 2016
You've got a great application and users are finding it useful. Word is spreading, you need to scale to expand to keep up with demand.
I wrote about this choice in the article Scale UP or Scale OUT?
A metaphor attributed to Randy@Microsoft (link below) known as Cattle vs Pets, helps clarify the choice.
When you name your server like troy, stella, kryten, etc.
They are unique, loved and cared for.
When they become ill, they are nursed back to health and you hope they will stay well for a long time.
You couldn't possibly imagine getting rid of or decommissioning the server.
A numbered cow
They are name more like a number - S02343. They are pretty much identical to the others, when they get ill, you just get another one.
As the server is so easily replace, you wouldn't think twice about removing any you don't need, at night for instance.
Our solution is to give you a way of creating servers, automatically and on demand. How ever many you need. With the confidence of being able to create a server whenever you want, it's easy to decommission they when not needed. This allows your business to follow the demand curve with the supply of servers meeting that demand. This allows you to pay for the servers, when they are needed, and save money when they are not. In the example below, traditionally 2 servers would be on all day. Imagine the cost savings if you have one server on all day, and only pay for the extra server during the peak working hours. Saving 2/3 cost of a server, every single day.
[caption id="" align="aligncenter" width="638"] Elastic Capacity meets demand[/caption]
For an informal chat with one of our cloud specialists, contact us.
05 Oct 2016
Cloud computing is a metaphor to describe the way shared services are accessed over the internet.
From the user perspective, the specifics of each component of a service are not visible as if obscured by a cloud.
[caption id="" align="alignright" width="588"] cloud computing metaphor[/caption]
The term however has origins in the 1960s where the server you performed work on would be remote from your terminal and you shared the resources and time with other users. The first multi user systems.
A leap to the 1990s, when computer owners were used to storing their information on their own computer, starting on floppy disks and then later hard drives.
By the time we get to 2000s, the internet has become the network to link all the things, which gives global choices to share central resources again. Amazon launched EC2 (Elastic Compute Cloud) in 2006 which allowed access to powerful hardware to anyone with a credit card.
Gartner defines cloud computing as a style of computing in which scalable and elastic IT-enabled capabilities are delivered as a service using Internet technologies.
Wikipedia breaks this down into the following capabilities:
- Agile - provide user flexibility with re-provisioning, adding or expanding infrastructure resources
- Cost - public cloud model converts capital expenditure (on off and up front) to operational expenditure. This lowers barrier to entry as well as allowing an on-demand billing model.
- Device and location independence - As the infrastructure is off-site and access via the Internet, users can connect to it from anywhere.
- Maintenance - Cloud computing applications are centrally maintained.
- Multitenancy - Enables sharing of resources among multiple clients, further sharing costs.
- Performance - monitoring by IT experts and using the model of loosely coupled architecture can improve workload balance and performance to the user.
- Reliability - Multiple redundant sites give the choice without the cost, suitable for business continuity and disaster recovery.
- Scalability and elasticity - on demand workloads without needing to order parts and waiting for engineers to fit them.
- Security - can improve due to centralisation of data, but concerns can persist about loss of control over sensitive data. Private clouds can overcome this.
In the cloud computing space, 5 service models have appeared.
- Infrastructure as a Service (IaaS) - providing virtual machines and the infrastructure required such as disk-image libraries, block storage, firewalls, load balancers and networks.
- Platform as a Service (PaaS) - These provide further abstraction from the servers themselves and often allow deployment of specific applications, allowing you to focus on application delivery without the maintenance of servers and other infrastructure.
- Software as a Service (SaaS) - Top level of abstraction where as a user you gain access to an application. SaaS is sometime referred to as "on-demand software" and is usually priced on a pay-per-use basis.
- Mobile "backend" as a service (MBaaS) - Specific services and platforms useful for mobile application developers. Provides application programming interfaces (APIs) where services include user management, push notifications and integration with social network services.
- Serverless computing or Function as a Service - an execution only model for code. This despite the name, does have servers, however the provider looks after the maintenance, starting and stopping to enable requests to be served. Billing is usually based on number and time for each request.
Many enterprise organisations are adopting public cloud services, however due to migration and/or security are running a 'hybrid' cloud, where some of the services are hosting publicly and some are hosted On premise, Internal or even Private Cloud.
What is right for your business depends very much on where you are and what you want to achieve. Should you want to discuss further, please contact us and one of our cloud specialists will be happy to help you.