Comments (8)
I attempted to address this in #58
from skydock.
Just noticed the 'no-expire' branch and notes at skynetservices/skydns#84 which should just get rid of the whole issue of tweaking timers and error counters. As long as skydock is always running and catches all the notifications from the docker API then skydns should stay in sync.
from skydock.
Yes, skydns is also in the middle of a rewrite to use etcd as the backend so it should be more robust and I will not add any TTL with skydock so that should solve your issue. I just don't know if I should ship skydns, skydock, and etcd in 1 or 3 containers.
from skydock.
Thanks for the update. Multi-host will be exciting!
One idea would be to use a single image with all three binaries in it. Then you would instantiate three containers using different names and command line arguments for each entry point.
Pros for this would be:
- Logs kept separate and not interwoven
- No need for an inside container process manager watching and restarting on failures.
- The three binaries' versions could be tested together before vendored out in one package.
- Possible to use an existing general purpose etcd server possibly already running on the host.
Cons:
- You still have to start up and monitor 3 separate containers
- Potential difficulty linking up the first three containers before discovery services exist.
Kind of like how one jar/tar.gz vendors logstash, elasticsearch, and kibana functionality?
Just some thoughts.
from skydock.
I was tinkering around with how to do deployment like these, one idea
(based on shipyard) is to how a setup container that he install all the
seperate containers you need. - this would also remove any difficulty in
linking the initial containers.
You could take that idea one step further by generalizing with a webbased
ui for the configuration (eg an MSI for docker).
For the logs would it be possible to extend the concept to use a fourth
container mounted drive to hold all the logs of all the containers so that
one might use something like logstash-forwarder to go through the logs
https://denibertovic.com/post/docker-and-logstash-smarter-log-management-for-your-containers/
?
For the starting up/monitoring between shipyard, project atomic and perhaps
Flynn there are more and more options out there.
On Tuesday, May 6, 2014, ubergarm [email protected] wrote:
Thanks for the update. Multi-host will be exciting!
One idea would be to use a single image with all three binaries in it.
Then you would instantiate three containers using different names and
command line arguments for each entry point.Pros for this would be:
- Logs kept separate and not interwoven
- No need for an inside container process manager watching and restarting
on failures.- The three binaries' versions could be tested together before vendored
out in one package.- Possible to use an existing general purpose etcd server possibly
already running on the host.Cons:
- You still have to start up and monitor 3 separate containers
- Potential difficulty linking up the first three containers before
discovery services exist.Just some thoughts.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/57#issuecomment-42333387
.
from skydock.
I would prefer separate images, so you can use the images of skydns(2) and skydock in combination with CoreOS.
from skydock.
+1 for separate images.
from skydock.
Regardless of the images consideration, the solution to this original issue was taken care of in the skydock no-expire branch. I built a single image to vendor a solution which takes the form of two running containers (using whatever method you want to start them) here:
https://index.docker.io/u/ubergarm/skyservices/
Hopefully this is agnostic enough to be useful in general, but it works for me and my runit based production system.
I look forward to seeing the new skydns2 and skydock stuff when it is ready!
Thanks!
from skydock.
Related Issues (20)
- Skydock can't start anymore since Docker 1.11 HOT 7
- Error while building docker image
- Unable to get SkyDock (SkyDNS) running on Docker-For-Mac Beta Version 1.12.0-rc4-beta19 (build: 10258) HOT 2
- error restoring containers: json: cannot unmarshal string into Go value of type docker.State HOT 1
- It can not add record when image name like [REGISTRYHOST/][USERNAME/]NAME[:TAG]
- Docker Containers cannot access internet and each other with skydock HOT 1
- cannot find package "github.com/crosbymichael/log"
- Merge with registrator HOT 2
- sky dns register containers with image name?
- Is it possible to pass the SkyDNS/SkyDock hostnames as own hostnames into containers? HOT 1
- SkyDNS/SkyDock vs docker-compose HOT 8
- IPV6/AAAA support HOT 1
- Docker container domain name not accessible from application code
- SkyDock / containers unable to resolve under Centos 7.1 Docker 1.7.1 HOT 1
- docker unix socket not available in boot2docker, use tcp instead HOT 2
- Strange Service Issue
- skydock on Windows 7? HOT 1
- Is skydock still under-development? HOT 4
- Just won't work on my mac either with compose or as a one-off HOT 1
- error starting after docker update to 1.11.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skydock.