GithubHelp home page GithubHelp logo

Comments (4)

tcollinsworth avatar tcollinsworth commented on August 18, 2024 1

I set it based on typical needs of the many dozens of microservices I've worked with recently. They typically only communicate with a dozen or so services. It is configurable so if you need more, you can change it.

As for an eviction event, that seems like a reasonable request. Do you want to create a PR?

from axios-cached-dns-resolve.

ozyman42 avatar ozyman42 commented on August 18, 2024

I'm bringing up this issue because I am seeing a weird error where the refresh metric is always zero. Somehow refresh is never happening and I'm trying to determine if it's due to the cache having over 100 entries or maybe somehow the entry get evicted before the refresh code runs.

from axios-cached-dns-resolve.

ozyman42 avatar ozyman42 commented on August 18, 2024

Yes I'll send a PR within the week

from axios-cached-dns-resolve.

ozyman42 avatar ozyman42 commented on August 18, 2024

So I came to an unfortunate conclusion behind why they refresh metric was 0.
When I set process.env.AXIOS_DNS_CACHE_TTL_MS then this code doesn't run.
So instead of a PR for adding cache eviction events I'll instead be looking for where this bug is
For context, I set it to 30 seconds (process.env.AXIOS_DNS_CACHE_TTL_MS = 30 * 1000;)

from axios-cached-dns-resolve.

Related Issues (18)

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.