Excited about etcd
There’s been a lot of buzz about Docker over the past few weeks, so I was intrigued when I read about CoreOS, which amongst other things is designed to be a minimal substrate for Docker. When Alex Polvi left a comment that they might be giving away t-shirts to people signing up for the Alpha that was enough to get me interested. Alex reached out shortly after I signed up, and we had a chat last week.
Not Just Yet Another Just Enough Operating System.
The OS bit of CoreOS is pretty much what I expected – yet another Just Enough Operating System (JEOS). To a certain extent it’s even more minimal than JEOSes that have come before, which is facilitated by the fact that Docker containers drag along their dependencies with them which means that the JEOS doesn’t have to be tailor made to the application (or applications) running on it – it really can be a bare minimum, and it can also be a static target (or at least a pretty slow moving one).
Welcome to the world of matryoshka virtualisation.
If CoreOS was just yet another JEOS distribution then it would be pretty uninteresting, but there’s more…
A part of the CoreOS project (probably the most important part) is etcd.
A highly-available key value store for shared configuration and service discovery.
At the most basic level etcd is a place to put configuration metadata, which is a pretty mundane thing. What makes it interesting is that it’s a distributed implementation, which allows for scale and resilience. What makes it very interesting is that it supports atomic test and set. Doing atomic actions in a distributed system is hard, and etcd employs the raft consensus algorithm to do the heavy lifting.
How will it get used?
There are lots of places where LDAP (or its proprietary sibling Active Directory) could be used (or should be used) for managing configuration metadata but isn’t because it’s too much work to get things set up. The low bar to entry for using etcd should make it more accessible. I can even imagine a world where somebody might build a multi master LDAP implementation over the top of etcd.
Most clouds have some kind of instance metadata service (many mimic the AWS implementation). These are generally fine for getting configuration into an individual instance, but fall short when it comes to managing a topology of connected instances. The exception here is Google Compute Engine (GCE), which offers a key/value store that works beautifully across all instances in a given project. Anybody who’s taken advantage of the GCE approach and who then wants to do the same thing in another cloud will be reaching for etcd.
The cool kids will of course use etcd as a way of wiring their Docker containers together.
How would I use it?
For the last few years CohesiveFT has had a product called Context3 (now rebranded ‘Server3 automation’), which is a distributed topology manager. It works along the lines of init, but across an array of machines rather than an individual machine. If we ever get the chance to do a rewrite then etcd would be an ideal thing to build on.
Security and the chicken and egg problem
etcd supports SSL Client certificates for authentication, which presents something of a chicken and egg problem when it comes to the question of how did the client get its certificate in the first place (in a world where all configuration metadata is served up by etcd)? etcd is potentially very helpful with key management, whilst at the same time etcd needs some help with key management. I imagine people will end up using schemes along the lines of Chef, where an account key is used to retrieve unique instance/node keys.
There’s no sign yet of an authorization scheme, but I’m sure that will have to come (hopefully by integration to a well understood standards based service mechanism and not just some clumsy system of ACLs).
etcd is going to be very helpful for managing configuration metadata in distributed environments (e.g. clouds), and the need for such management will only increase as applications use additional layers of virtualization (e.g. Linux containers). The system already offers useful functionality, but its applicable scope is presently constrained by a lack of sophisticated security controls (e.g. a limited administrative domain has to be used because there’s no authorization). I’m sure that will be fixed in time, and I’ll certainly be watching the project with interest.
PS It’s implemented in Go, which is both cool and the new hotness, but definitely not luke warm.
 I should probably write up my impressions on Docker some other time.
 This discussion gets me perilously close to my rant about ‘the next Enterprise Java Bean that I see will be my first one’. Calling them Enterprise Java Beans (EJBs) implied a level of service discovery and availability that has never achieved in practice because the place that EJBs were registered was always stranded on an individual application server (or cluster) rather than being a true enterprise service; and don’t get me started about the lack of COM+ registration in AD either.
Filed under: architecture, cloud, CohesiveFT, security, software | Leave a Comment
Tags: AD, configuration, CoreOS, distributed, Docker, etcd, GCE, Go, golang, JEOS, key-value, ldap, LXC, metadata, virtualisation, vitualization
Raspberry Pi Downloads
- Making an image file from an SD card on Windows
- Asus Tinker Board - First Impressions
- Three doesn't feel at home on 4G networks
- AirPlay on Raspberry Pi the easy way
- Raspberry Pi GPIO Joystick
- Howto - Factory Reset iLO 4 on HP Microserver Gen8
- Forwarding DNS queries to AWS VPC resolvers
- Raspberry Pi TV/PVR
- Howto stunnel from HTTPS to HTTPS
- Raspberry Pi sous vide water bath
The Politics of Data… on The Politics of Data Hello DXC – Ne… on Goodbye CSC, Hello DXC Te… kevinphilp on Goodbye CSC, Hello DXC Te… Lisa Braun on A day in the life of a CT… Steve Williams on Asus Tinker Board – Firs…
- US government tells Supremes it could strip citizenship from virtually all naturalized Americans if it wanted to
- An open letter on DRM to the inventor of the web, from the inventor of net neutrality
- UBS has officially ditched its massive trading floor
- Solar system scale in perspective
- Watch cool 84-year-old granny who is said to be world’s oldest female sharpshooter
- Dangerous Drinks and How To Spot Them - Imbibe Magazine
- Introducing Cloudflare Orbit: A Private Network for IoT Devices
- FCC chair is looking to end #netneutrality.
- Why numbers are sometimes better than words. What people think you say “almost certainly", “probably", or “highly unlikely”
- Things I Wish I Knew Before Using Jenkins Pipelines
- RT @drphilhammond: The gravest warning about what the Conservatives have in store for the NHS was given by their ex-prime minister. https:/… 8 hours ago
- RT @webmink: Next up: An Espionage Act with no public interest exception so journalists can be shut down & locked up. https://t.co/47nej809… 9 hours ago
- RT @webmink: This is Britain's future under May's regime. No, really, her censorship enablement act just got royal assent. https://t.co/rbv… 9 hours ago
- RT @parkparadigm: The next financial crisis will arise from the - slow at first, then all at once - impairment of USD trillions of fossi… 9 hours ago
- RT @swardley: Oh ... charges would have to be made before GE but due to election rules CPS may be unable to make public -https://t.co/lN0rK… 17 hours ago