Giter Site home page Giter Site logo

Comments (9)

jimaek avatar jimaek commented on July 4, 2024 1

Only ready, the probe should be active and process measurements to get credits

from globalping.

jimaek avatar jimaek commented on July 4, 2024

Once per day makes sense, with some logic where it has to stay up at least 20 hours during that day to be counted.

from globalping.

alexey-yarmosh avatar alexey-yarmosh commented on July 4, 2024

I am thinking about having a cron to call /probes every 10 mins with a 5 min deviation. If probe was found in the response increment new onlineTimes field by 1. If at the end of a day onlineTimes > 20 * 6, assign credits. Then set onlineTimes to 0. Time intervals are configurable.

from globalping.

MartinKolarik avatar MartinKolarik commented on July 4, 2024

Seems reasonable.

from globalping.

jimaek avatar jimaek commented on July 4, 2024

Btw we will need to add anti abuse logic at some point, but I'm guessing it won't impact the current implemention and we can come back to it later?

from globalping.

alexey-yarmosh avatar alexey-yarmosh commented on July 4, 2024

What abuse scenario do you mean?

from globalping.

jimaek avatar jimaek commented on July 4, 2024

Credits farming, e.g. starting 500 probes with some super cheap hosting provider.

I would add rules like limiting the number of probes from the same ASN and same ASN+same city.

Maybe also a global probe limit per account

from globalping.

alexey-yarmosh avatar alexey-yarmosh commented on July 4, 2024

Ok, current logic is extensible enough to support that in future.

from globalping.

alexey-yarmosh avatar alexey-yarmosh commented on July 4, 2024

@jimaek should we assign credits for probes in any status or only in "ready"?

from globalping.

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.