Giter Site home page Giter Site logo

dns-cache's Introduction

DNS Lookup 에러 재현

Getting Started

node test-dns-lookup.js

./requests.sh

timeout 에러가 재현됨. 그러므로 axios timeout 에러의 원인은 dns lookup 실패로 보여짐. (c.f 로그에 요청이 찍히지 않는 이유)

에러

Possible Solutions

  1. UV_THREADPOOL_SIZE 사이즈를 늘린다.

    기본 쓰레드풀 사이즈는 4인데, 이걸 늘린다고 해서 api 서버에 코어수 여러개 달린 머신을 돌릴게 아니기 때문에

    쓰레들풀 사이즈 늘렸다가 오히려 스위칭 때문에 부하가 더 늘어날 수 있음.

  2. dns cache 사용

    cacheable-lookup 라이브러리 사용.

  3. http keep-alive agent 사용

dns-cache's People

Contributors

leejh3224 avatar

Watchers

 avatar  avatar

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.