GithubHelp home page GithubHelp logo

controller's Introduction

controller

Common controller lib. Provides components shared by application controllers.

Requires: Go 1.13+ and Go Modules


Logging

Logging can be configured using environment variables:

  • LOG_DEVELOPMENT: Development mode with human readable logs and (default) verbosity=4.
  • LOG_LEVEL: Set the verbosity.

Verbosity:

  • Info(3) used for Info logging.
  • Info(4) used for Debug logging.
  • Info(5) used for Debug+ high rate events.

Package:

  • filebacked:
    • Info(5): file create,delete
    • Info(6): file read,write.
  • inventory:
    • container:
      • Info(3): reconciler lifecycle.
      • Error(4): channel send failed.
    • model:
      • Info(3):
        • database: lifecycle.
        • journal: journal and watch lifecycle.
        • model: insert,update,delete.
      • Info(4):
        • client: (db) transaction lifecycle;model get,list.
        • journal: event staging.
        • watch: lifecycle.
      • Info(5):
        • watch: event sent,received.
        • table: SQL statements.
    • web:
      • Info(3):
        • watch: lifecycle.
      • Info(4):
        • watch: event sent,received.
    • ref:
      • Info(3): reference mapping added,deleted.
      • Info(4): reference lookup and reconcile events queued.

controller's People

Contributors

awels avatar dymurray avatar fabiendupont avatar jortel avatar mansam avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

controller's Issues

Consider making releases of common controller package

We need a way for dependencies to be expressed on the controller pkg from mig-controller and virt-controller.

Right now mig-controller is importing master of this repo referring to whatever the newest commit is at the time of dep resolution, but perhaps we should consider tags or versions in this repo when it comes time to cut releases in either of the depending controllers.

Fix "database is locked" error.

The sqlite DB is locked while any Rows (cursor) is open. While iterating a cursor, an insert(), update(), delete() or Tx.Commit() will fail. Thinking we need to change the dbMutex to a RW lock and have Client.List() methods dbMutex.RLock()/RUnlock() while the cursor is open.

"msg":"commit failed.","provider":"konveyor-forklift/boston-07","error":"database is locked"

Generate events for cascading delete.

Generate events for cascading delete.
When using foreign-key constraints (on delete cascade), rows will be deleted without generating events.
The transaction needs to build a graph (following FKs) of models that will be deleted (by cascade) and generate events.

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.