Coder Social home page Coder Social logo

Comments (7)

aratz-lasa avatar aratz-lasa commented on June 11, 2024 1

Okay @lthibault , I will start right away!

from casm.

aratz-lasa avatar aratz-lasa commented on June 11, 2024

Testing plan

How fast does PeX converge on a uniform distribution of records?

Check whether follows uniform distribution using Kolmogorov-Smirnov Test

How resilient is the overlay to partial failure without partitions?

Disconnect nodes until there is a partition

How long does a partition "remember" records from another partition?

Force partition by being unreachable at Network level + check how long nodes from other partition stay in the local views

How does increasing the fanout during each gossip round affect the convergence rate?

Increase fanout and check convergence speed (Kolmogorov-Smirnov Test)

How does a pure-rand strategy affect the convergence rate relative to the current (hybrid) strategy?

Use pure rand strategy and check convergence speed (Kolmogorov-Smirnov Test)

Questions

  • What is the easiest way to check for partitions or distribution characteristics? There are two main approaches:
  1. Run offline tests, where topological changes are stored in a (influxDB-like) database, and results are later extracted from it.
  2. Run online tests, where results are constantly being analyzed on every X event/time-unit.
  • Do Matrix or Testground facilitate for online tests?

from casm.

lthibault avatar lthibault commented on June 11, 2024

@aratz-lasa Looks good and sensible. Carry on! 👍

Regarding your questions, I think offline analysis is probably a better idea. It's going to help separate test logic from analysis, and it will also help us share datasets, which is going to be helpful when debugging protocol issues.

Matrix works well for quick-and-dirty tests, but (1) I have yet to implement any traffic-shaping facilities and (2) data-collection is out-of-scope, I think. I think Testground might be a better fit here, despite its annoyances. It stores data in an output directory in JSON format, so we can just load that up into a python script or something. You'll need to use the docker backend in order to do traffic shaping.

However, let's keep the Testground code and the analyses in a separate repo from CASM/Wetware.

from casm.

lthibault avatar lthibault commented on June 11, 2024

Re:

How fast does PeX converge on a uniform distribution of records?

We want to quantify the convergence time for a PeX cluster as a function of the number of nodes in a cluster.

Output of this should be:

  • should be a graph of number of nodes x convergence time
  • a rough Big-O formula for time complexity (e.g. O(n))

Operationalization of convergence:

  • let t = threshold [0 1] (n.b.: assumes normalized y axis)
  • let ymin = min(y...)
    Convergence C_t = ymin > t

TODO:

  • Convergence time with t=.95
  • Convergence time with t=.99 (n.b. may never converge for small n)

from casm.

aratz-lasa avatar aratz-lasa commented on June 11, 2024

Convergence test parameters:

  • Nodes: 3-64 (every 2 steps)
  • Ticks: 40
  • Convergence threshold: 0.99, 0.95, 0.8
  • Repetitions: 2-4

from casm.

aratz-lasa avatar aratz-lasa commented on June 11, 2024

Convergence results:

Network average records
Network average node degree
Network average shortest path length
Network clustering coefficient

from casm.

lthibault avatar lthibault commented on June 11, 2024

Re:

How does increasing the fanout during each gossip round affect the convergence rate?

It occurs to me that this is exactly the same as increasing the frequency of gossip rounds, so I'm considering this question to be answered.

from casm.

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.