Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust state logic and prune implementation #894

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Nov 25, 2023

  1. Format files

    Seems we have quite outdated format for several files
    
    Signed-off-by: Petr Fedchenkov <[email protected]>
    giggsoff committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    e4058b8 View commit details
    Browse the repository at this point in the history
  2. Implement detachable state

    We try to calculate state of EdgeNode and objects inside of it.
    We construct the state based on info and metric messages from the
    controller. Info and metric messages are great for debugging, but in
    case of long time work we may hit the problem where state
    calculation consume more and more time.
    
    Let's slightly refactor the state logic to be able to store it locally
    and reuse.
    
    Signed-off-by: Petr Fedchenkov <[email protected]>
    giggsoff committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    8c81107 View commit details
    Browse the repository at this point in the history
  3. Implement prune command

    In case of state store and load functions implemented we may prune
    objects in Adam to keep the logic to be as fast as possible.
    
    Signed-off-by: Petr Fedchenkov <[email protected]>
    giggsoff committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    c343cb5 View commit details
    Browse the repository at this point in the history
  4. Check new state implementation

    We want to use check-new option to check options after transition, thus
     the next state after initial
    
    Signed-off-by: Petr Fedchenkov <[email protected]>
    giggsoff committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    4130e0a View commit details
    Browse the repository at this point in the history