BT

Your opinion matters! Please fill in the InfoQ Survey!

Joyent’s Container Name Service Eases Service Discovery

| by Hrishikesh Barua Follow 4 Followers on Mar 17, 2016. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

Joyent announced the availability of their DNS service called Triton Container Name Service (CNS). It makes it easier for application clients and users to locate services as the servers hosting those services keep changing.

The servers in question here are Triton-controlled compute instances, which can be Docker containers, infrastructure containers (which function like bare metal VMs) and virtual machines. Triton CNS works by utilizing names and tags for Triton instances. A group of containers that provides a specific service share a tag and a CNS address record. This record is directly reachable over the internet.

Many modern applications have adopted the immutable infrastructure model, where updates to the application are pushed to brand new provisioned servers (or containers), which are brought online and the old ones are discarded. In most cases, the location of the newly deployed service changes and client applications have to locate it via the new addresses involving a manual configuration change. If DNS is used for service discovery then the DNS entry has to be updated first. This is cumbersome in environments where releases happen often.

Most applications will have their own domains hosted by a third party DNS service. In such cases, the custom domain can be mapped to the CNS record. A lookup would return one of the active containers that host that service. The CNS is aware of which containers are active since it’s tightly integrated with the Triton Container Service. As containers are added and removed, Triton’s CNS keeps track of them and returns only the active containers.

Immutable servers can also be achieved in other cloud providers albeit by other means. E.g. in AWS, an “elastic IP” is an IP address that can be assigned to any instance (AWS parlance for a virtual machine). When a new instance is ready, the elastic IP can be assigned to the new instance and no changes to service registries or DNS is required. A similar concept called "floating IPs" makes the same thing possible in OpenStack cloud deployments.

The CNS was proposed as a Request for Discussion (RFD) last year. Triton, the container management infrastructure, was also launched last year.

 

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT