Giter VIP home page Giter VIP logo

Comments (6)

jakolehm avatar jakolehm commented on September 26, 2024

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.

digitalism avatar digitalism commented on September 26, 2024

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.

jakolehm avatar jakolehm commented on September 26, 2024

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.

jakolehm avatar jakolehm commented on September 26, 2024

@digitalism, coreos is now officially supported platform. See installation docs for more details.

from kontena.

jakolehm avatar jakolehm commented on September 26, 2024

Let's reopen this, there must be something we can do to detect this situation.

from kontena.

four43 avatar four43 commented on September 26, 2024

#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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.