Giter Club home page Giter Club logo

Comments (4)

cf-gitbot avatar cf-gitbot commented on July 21, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/156751366

The labels on this github issue will be updated when the story is started.

from garden-runc-release.

teddyking avatar teddyking commented on July 21, 2024

Hey @abh1kg, garden doesn't currently support checkpoint and restore for containers right now, so there's no need for us to package up criu with the release. We do occasionally get asked about this though. Out of interest what are you looking to with checkpoint/restore?

from garden-runc-release.

abh1kg avatar abh1kg commented on July 21, 2024

@teddyking One of the reasons I wanted to use criu was to be able to migrate in-flight TCP connections to another up-and-coming Garden container as part of a blue-green deployment workflow. Such TCP connections include stuff like SSH connections/Websocket connections etc.
Out of curiosity, why doesn't Garden support checkpoint and restore though? Since it is runc-compliant and runc supports criu operations out of the box, I was assuming it to be also available for Garden containers. I can understand the entire workflow and support not being there directly from Cloud Foundry but wouldn't one be able to log on to a diego cell and run the checkpoint operations manually?

from garden-runc-release.

julz avatar julz commented on July 21, 2024

Hi @abh1kg, there's no reason you couldn't manually run criu (as you say it's all just runc under the covers!), but it's not something we support or that Diego/cloud foundry exposes to users. The reason for that is the CF model is to have stateless apps so we can automatically patch and manage the cluster easily. You can do a blue/green deployment by deploying the new version of your application in CC and then swapping the route over using cf map-route without needing checkpoint/restore. Also, when hosts are upgraded, Diego first ensures there's enough new instances of your apps on other cells before shutting down a cell to upgrade. Since all the instances should be equivalent and stateless there's generally no need in CF to worry about a serialising the memory of one particular container of an app, and it introduces a lot of complexity to the scheduling and container lifecycle if we have to deal with rescheduling running containers instead of treating them as immutable, stateless and replaceable.

Having said that if you want to experiment with criu on a garden cell there's no obvious reason it won't work (you'll have to install the binary yourself, perhaps in your own bosh release), and feel free to drop by the #garden channel on cf slack if we can help!

from garden-runc-release.

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.