Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Multi-Cloud Stacks With Registered Servers

DZone's Guide to

Multi-Cloud Stacks With Registered Servers

Today we're announcing Registered Servers: a simple way to create a pool of servers on private and public cloud that can be used on any stack and configuration.

· Cloud Zone
Free Resource

Deploy and scale data-rich applications in minutes and with ease. Mesosphere DC/OS includes everything you need to elastically run containerized apps and data services in production.

alt

Cloud 66 is used by thousands of developers, deploying web applications, mobile backends and APIs across 79 global data centers using 9 major cloud providers.

Since the early days of Cloud 66, you've been able to deploy apps on your own servers that were not part of a public cloud. We called it BYOS, or Bring Your Own Server. However BYOS was somewhat limited in functionality. BYOS stacks didn't support load balancing, scaling and most importantly, you couldn't mix public cloud stacks with your own non-cloud stacks. Until now.

Today we're announcing Registered Servers: a simple way to create a pool of servers on private and public cloud that can be used on any stack and configuration.

Working with Registered Servers is very easy: run a simple script on your server (or put it in the startup script of your server image for full automation) and they'll be added to a pool of registered servers that can be used on any stack during build or scaling phases. Registered Servers can be used alongside your public cloud servers to enable hybrid setups, or multi-cloud stacks.

How does it work?

Clicking on the Registered Servers link on the right hand sidebar will lead you to this page:

Cloud 66 Registered Servers

Once you have the script running on your server, they'll show up in the New Servers section of the page. Here you can Approve or Ignore them. Approved servers will be moved to the Approved Servers tab.

Automating server registration

Since the URL for the script is the same for all Registered Servers in your account, you can put it as a startup script on your server image. This will ensure any newly started servers will be automatically registered. Note: remember that the script generated by the URL is not the same and is time sensitive, so you can't save the script itself on your server.

Bulk registration of servers

You can use the Cloud 66 Toolbelt to register servers as well. Here's an example:

 
 $ cx register-server --org="My Team" --file=~/servers.txt --user=root 

servers.txt is a file with the IP address of all servers you'd like to register (1 per line).

To register a single server, use the --server option:

 
 $ cx register-server --org="My Team" --server 107.170.46.80 --user=root 

cx uses a direct SSH connection from your terminal to the specified servers to simply run the registration script. This means your private SSH key is used as if you're doing SSH to the server. If you'd like to use a specific SSH private key, use the --key option.

Cloud 66 cx registration

Enjoy!   

Discover new technologies simplifying running containers and data services in production with this free eBook by O'Reilly. Courtesy of Mesosphere.

Topics:
cloud ,public cloud ,servers ,public ,data ,stacks

Published at DZone with permission of Khash Sajadi, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}