-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clustering #6
Comments
That particular configvalue was for when we were using I've been toying with some clustering as well and although I've gotten it to work a few times, it's very fragile. I want to take a look at using I'd really like it if used some of the standard tools and plugins - so that it was more compatible than it is currently. |
I'm going to be building an openstack as a home lab experiment. I definitely am going to experiment with a couple of these clustering jobs like: But I'm in total agreement about clustering setups being fragile. It takes a ton of work to get most things into a state where you can cluster it, and your work is not over once you get it there. I mean sure once all apps are built to: http://12factor.net/ specifications maybe this will be easier. But I digress. So one method, would be this config file method, given the config file then octo can branch off and do other things than the normal docker build and run. There could be specified multiple other octohosts that the repo would be shipped off to and build and ran in multiple datacenters. Or perhaps one of the aforementioned projects as another clustering provider. At first, this would be best suited for app replication, SQL and data storage would be left to other methods. However, I can envision methods of accomplishing that as well through automated methods. Another, kind of silly thought. How about we go about this inversely? In that you can run 'privileged' docker containers, has anyone run octohost inside a docker container yet? And if so, has anyone put octohost inside deis/flynn/etc? |
I've been working on this in my spare time over the last few days and it's working pretty well:
Now you have 3 octohost nodes and they're connected via Consul and Docker Swarm:
When you git push to the first node, it:
|
Small video of it in action: https://asciinema.org/a/19043 |
This is really good stuff! There needs to be a hollowed out volcano somewhere where we can show this technology off to people who can appreciate what awesome things are coming together here. Not saying that you HAVE to be a super villain to need/and/or appreciate what's going on here. I'm going to play around with this some more. Cheers! |
Ha yeah - it's still too complicated to pull off easily - will see if On Wed, Apr 22, 2015 at 9:35 AM Josh Cox [email protected] wrote:
|
I am thinking terraform would be the logical next step seeing as how we've already got consul in the mix, the other hashicorp products are an obvious fit. I don't like how Atlas is not open source though, there needs to be an alternative to it. |
Yes - as soon as I am back (next week) - I'm going to start on it with Terraform. This week I'm traveling and working on a presentation. |
grats on the presentation! Where and do you have the presentation in github somewhere? Love to see it. |
I'm presenting at Devopsdays NYC on Friday - it's titled "Scuba and Ops": http://www.devopsdays.org/events/2015-newyork/proposals/ScubaAndOps/ We'll see how it goes to see where it's posted - it's a short one - only 5 minutes - and it's a bit of a different type of talk than I've done in the past. |
Ok, after looking at the
/etc/default/octohost
file, I'm looking at this block:Can anyone elaborate on their clustering setup?
I'm still toying around with things like deis and flynn, and it would be really cool to have abilities for certain images to be HA clustered to kingdom come. However, the main reason I'm still using octo is a lot of services don't cluster so easily. So I've been thinking of how to handle fig and now docker-compose inside of octo. I think the answer to all questions might be some sort of octo-config file that could be included in a repo. This could provide a very robust alternative to the 'magic comments' hack. And provide us a way of specifying multiple docker files in a single git push, or a fig.yml docker-compose and even let us say have certain images be pushed elsewhere to other octohosts in parallel, or even other providers (e.g. deis, flynn, etc). And if the file is not present operate as normal, keeping backward compatibility.
The text was updated successfully, but these errors were encountered: