Coder Social home page Coder Social logo

Limit of monitoring? about arewedown HOT 6 CLOSED

shukriadams avatar shukriadams commented on June 6, 2024
Limit of monitoring?

from arewedown.

Comments (6)

shukriadams avatar shukriadams commented on June 6, 2024 1

I added a feature to spread out tests, the amount of "spread" is user configurable, by default each test is offset 500ms from the previous test. This might not even be strictly necessary, but it seems like a good idea to not have every test fire at exactly the same time. d59700 should be in the next major release.

I also loaded up 200 tests at once on my beefy dev machine, and AWD? has no problem with these. I still haven't tested it on a Raspberry Pi 3, but on decent hardware I can't see why you couldn't run hundreds of tests simultaneously.

Note that AWD's send alerts per watcher, so the biggest risk with running hundreds of tests will likely be alert flooding if for some reason many test targets fail simultaneously. I should add a feature to bunch alerts together if they occur within a window.

from arewedown.

shukriadams avatar shukriadams commented on June 6, 2024

Interesting question. I'm pretty sure there is some sort of practical upper limit given that NodeJS is single-threaded and I don't think I went out of my way to avoid non-blocking calls, but that limit is probably hundreds if you're doing simple HTTP calls. Custom lookups, like those using SSH, would probably be more resource-demanding. How many could you think of trying?

from arewedown.

notflip avatar notflip commented on June 6, 2024

I would like to watch over 300 domains in total, Would spinning up 3 node processes with each a 100 items be a better solution then to try and run 300 items in a single node instance?

from arewedown.

shukriadams avatar shukriadams commented on June 6, 2024

Interesting. I never thought about scaling up to this level, but it seems like quite a feasible real-life scenario. I'm going to test and get back to you. AWD? like a lot of standard NodeJS apps is single threaded under the hood, so that's an obvious bottleneck, but multithreading doesn't help much anyway when you're hitting a network. That said, I can think of ways of better spreading out the call from each watcher so they don't collide unnecessarily. Good feature request, I'll try to get something into the next release.

from arewedown.

notflip avatar notflip commented on June 6, 2024

Thanks, that would be amazing!

from arewedown.

shukriadams avatar shukriadams commented on June 6, 2024

There's now a minor code tweak that spaces watchers out, so there's less chance they will dogpile finite resources like a net connection.

from arewedown.

Related Issues (15)

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.