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.
Join the DZone community and get the full member experience.Join For Free
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:
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
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
$ cx register-server --org="my team" --server 184.108.40.206 --user=root
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
Published at DZone with permission of Khash Sajadi, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.