Code Monkey home page Code Monkey logo

cobalt's People

Contributors

krodyrobi avatar t-ionut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cobalt's Issues

Python import side effects

  • Python nu are require_once equivalent, daca ai ceva in global scope si dai import poti schimba referinte din alte module ce depind de tine, daca is incarcate de mai multe ori.
  • Importuri circulare - cum sa scapi / bad smell?
  • __init__.py +__all__

Failures

Each possible failure must have all these points covered

  • General concept + Detailed explanation
  • Affected components + risks
  • Solutions / preventions
  • Steps to reproduce (time slices /order of events)

Fallacies of Distributed Computing

API stop deletes when clones exist

{
"name": "test",
"state": "cloning",
"meta": {
"test": 1
},
"requested": {
"reserved_size": 2,
"constraints": ["test2"]
},
"control": {
"parent_id": 234567
}
}

Api-> scheduling -> pending -> cloning (attach node) -> pending without parent_id -> requested = like the parent -> ready

When deleting from the api it should check if the volume has clones pending.

Machine name persistent between restarts

Each btrfs root mount should have a marker as a file that dictates the machine name. Each agent should pick that up at boot, otherwise registered volumes risk getting orphaned.

Define environment

  • What components
  • How are they linked
  • What needs to be managed by cobalt
  • what is out of its scope

Engine leader swap what index to follow?

For instance if the current leader dies off, the others are waiting in a perpetual loop,
after another one becomes the leader it will not know what index to start from it will start from the beginning of time / etcd raft index batch thingy.

perform an initial GET and capture X-Etcd-Index
for the first watch, use that as the waitIndex
for subsequent watches, use the previous response's modifiedIndex as the waitIndex

Have a watch timeout and then restart the process -> health check cronish

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.