Giter Site home page Giter Site logo

Comments (3)

aanm avatar aanm commented on May 21, 2024

Found the guilty. The restore functionality creates the endpoints by reading the header stored on the endpoint's directory. (1) At that time the endpoint program is regenerated to see if everything is alright. After that it allocates the endpoints IP and recompiles the program again (2). After the endpoints were restored, cilium syncs with the docker daemon to see which containers are still up and running.
While doing that check it reaches the line docker_watcher.go#L371:d.triggerPolicyUpdates([]policy.NumericIdentity{secCtxlabels.ID}) where, inside that function, the whole cache is invalidated (policy.go#L105:d.invalidateCache()) and triggers a policy update for every endpoint in the daemon in policy.go#L109:err := ep.TriggerPolicyUpdates(d).

The FIXME in policy.go#L104:// FIXME: Invalidate only cache that is affected needs to be addressed to solve this issue.

from cilium.

tgraf avatar tgraf commented on May 21, 2024

We can solve it by implementing partial policy resolution but I don't think it addresses the main issue. How about we ensure the restore functionality is run before we start accepting any external API calls and events and lock the daemon down. Individually restore the endpoints using an API which does not generate the endpoints. Then finally, trigger a full policy calculation followed by generation of all the programs.

from cilium.

aanm avatar aanm commented on May 21, 2024

The lock down already happens

Individually restore the endpoints using an API which does not generate the endpoints.

Yep, sounds good to me.

from cilium.

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.