Comments (6)
Status should update immediately when node2
is stopped (master does get that status from websocket connection close). I'm interested about that node list
output, are you really running kontena on coreos or is that just example output?
Service migration/balancing on node add/remove is coming soon. At first it will only support stateless containers because we don't have any means to migrate data from offline nodes.
from kontena.
Tried this again. Again, I started two coreos machines and both show up on kontena node list
. Then, I terminated one of the virtual machines. The websocket close does not seem to get detected.
Service migration: Good to hear you going to add this.
Core OS: yes, this was tested on coreos and rackspace. For my own reference, I wrote down the commands I used to set things up. I'll add them here:
master (on node1)
------------------
wget https://github.com/kontena/kontena/archive/master.zip
unzip master.zip
mv kontena-master kontena
cd kontena/server
mv Dockerfile.alpine Dockerfile
curl -L https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
./docker-compose up
create grid (on local machine)
----------------------------
gem install kontena-cli
kontena register
kontena login http://NODE1-IP:4040
kontena node list
kontena grid list
kontena grid create first-grid --initial-size=1
kontena grid current
agent (on node1 and node2)
-----------------------------
wget https://github.com/kontena/kontena/archive/master.zip
unzip master.zip
mv kontena-master kontena
cd kontena/agent/
mv Dockerfile.alpine Dockerfile
mv .env.example .env
vi .env
-> set ip in KONTENA_URI
-> set kontena token to token from `kontena grid show first-grid`
curl -L https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
./docker-compose up
create service (on local machine)
-------------------------------
kontena service create ghost-blog ghost:0.5 --stateful -p 8181:2368
kontena service deploy ghost-blog
from kontena.
It seems that terminated websocket is detected but it takes a while until master notices this (maybe when next ping happens). If agent is shutdown gracefully then master notices it right away.We can't really do much about this because we don't get any event from socket when agent terminates it forcefully.
from kontena.
@digitalism, coreos is now officially supported platform. See installation docs for more details.
from kontena.
Let's reopen this, there must be something we can do to detect this situation.
from kontena.
#167 may be a duplicate of this. I re-reported it since I had a slightly different circumstance and this one was closed.
from kontena.
Related Issues (20)
- Renew LE certs automatically sooner than 7 days before expiration
- Node update does not take multiple nodes as params
- CLI specs fail because of a broken dependency HOT 1
- Support Letsencrypt wildcard certificates HOT 2
- Ruby 2.2 EOL
- bind-mounts of existing files on stateful containers fail: cannot mount volume over existing file, file exists
- kontena node rm can be used to remove connected Kontena Cloud nodes without terminating them
- CLI: warning: already initialized constant TTY::Screen::VERSION HOT 1
- E2e: Login timeout HOT 5
- CLI: kontena stack validate prompts can't be exited using ctrl-c
- Graceful shutdown e2e spec almost always fails HOT 1
- Env missing for setting global haproxy options HOT 3
- Kontena master insecure SSL configuration
- CLI omnibus debian builds broken with ftp://xmlsoft.org => 425 Security: Bad IP connecting HOT 3
- [CLI] Command autocompletion is out of date for some entries
- Gem.gunzip deprecation notice from unicode-display_width
- Can't login to newly created DigitalOcean kontena master. HOT 3
- Volume added to stack file does not get added to service on stack upgrade HOT 4
- Tag in fluentd forwarded logs is invalid if the node name contains dots
- Kontena site is down HOT 1
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 kontena.