Coder Social home page Coder Social logo

aks-egress-checker's People

Contributors

amargherio avatar

Watchers

 avatar

aks-egress-checker's Issues

Unwrap and clone usage

There's currently a lot of .unwrap() calls that would end up killing an execution of the checker - those need to be addressed and handled more appropriately.

Clone is also used quite a bit to handle passing data between async functions - maybe a mutex/Arc is the more appropriate way to handle this but I shouldn't be cloning large objects without some solid justification.

Profiling and performance optimization

This shouldn't require a ton of resources to run, but there needs to be a better understanding on resource utilization and performance. Specifically...

  • Network IO
  • CPU utilization
  • Any disk IO or space requirements
  • Memory utilization

Disk IO and space requirements should be minimal - in the containerized form, it's mostly log output.

Memory is a bit trickier since the parsed egress requirements are all stored in memory along with test results prior to generating output - this could be significant enough to account for.

CPU utilization - not sure what to expect here.

Replatform container images onto Mariner

Microsoft support for Mariner is huge and this should leverage that support.

The builder image may have to be customized to run Rust, but the deployable image's base is a pretty insignificant change.

Threading performance improvements

Based on the outcome and findings of #2 there's potential room for performance improvement. I'm not sure if adding explicit threads or running more egress group checks in parallel would improve execution times, but it's something to audit.

Improve test coverage

There's no test coverage and that needs to change. Tests are needed for at least the egress data parsing and the FQDN parsing/building logic to make sure that's all solid.

There's some tricky bits here around mocking IMDS responses and calls for region and VM data that's used for building some connection strings.

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.