26 Aug 2016
Quick post about docker.
What is docker?
Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment. (https://www.docker.com/what-docker)
Docker is gaining popularity and some clients are using it in production. As a method to package and deploy self-sufficient applications in primarily stateless Linux containers it allows a consistent platform that in itself is quite simple for Ops to look after, and we don't need to know the inner workings of the application we are deploying.
However when writing and building Docker images, my virtual machine (local Docker host) starts looking a bit littered with docker containers and images. So here are a few commands to tidy up.
Kill running containers:
docker kill $(docker ps -qa)
Delete all containers (and their associated volumes):
docker rm -v $(docker ps -qa)
Remove all images:
docker rmi $(docker images -q)
(Thanks to Mike O'Conner)
23 Aug 2016
Regular expressions can be a bit like marmite, some people love them and some hate them, and if you are like me, they just leave lots of room for confusion.
Fortunately there is a tool that will hopefully dispel some of the confusion.
21 Aug 2016
One of the single best features of using cloud servers, is the ability to add servers to a cluster on demand.
Here is a useful article about autoscaling and why you should consider in in your application design.
12 Aug 2016
AWS have announced Application (level 7 on the osi model) Load Balancing.
I've been using HA Proxy to achieve this for a while now.
What does this mean to us?
You can now load balance and direct traffic to a 'target group' of servers. This means you can use on ELB for a website whilst using multiple server groups for each microservice. For instance anything with /api in the url can get directed at a different group to those with /backend in the url. In current setups we are using subdomains to do this, api.webdomain.com and backend.webdomain.com.
Having Application Load Balancers will allow us to simplify and reduce the number of ELBs needed, thus saving money.
This and more features can be found on amazon's blog. https://aws.amazon.com/blogs/aws/new-aws-application-load-balancer/
09 Aug 2016
25 years ago, 1991, the WorldWideWeb was created.
The first website is still there. http://info.cern.ch/hypertext/WWW/TheProject.html
Back in the days when a NeXT was the best machine in the world. Thanks Steve.