Giter Club home page Giter Club logo

Comments (8)

aderouineau avatar aderouineau commented on June 14, 2024

My test host is an AWS EC2 instance m5.2xlarge with 8 vCPUs, 32.0 GiB RAM, and EBS SSD storage.

from rqlite.

otoolep avatar otoolep commented on June 14, 2024

@aderouineau -- when a Snapshot is transferred to a node, in your mental model how many copies of the SQLite database are made on the receiving node?

from rqlite.

otoolep avatar otoolep commented on June 14, 2024

On the receiving node two copies are made of the received snapshot -- one to that copies the snapshot to its internal store, the other which then takes that copy, and makes the working SQLite copy that rqlite uses to serve queries.

But I see you're saying the network transfer speed itself is slower than you expect. One other thing to be aware is that rqlite gzip-compresses the snapshot on the sending side, and decompresses it on the receiving side. It does this to reduce network bandwidth.

In your testing are you streaming the data over the local network, in addition to running your dd test? It doesn't look like it. If you want to simulate closely with two rqlite nodes are doing, it's like this.

  • node1 is reading from disk
  • node1 is compressing
  • node1 is sending over the network
  • node 2 is receiving on the network
  • node 2 is decompressing
  • node 2 is writing to disk

from rqlite.

aderouineau avatar aderouineau commented on June 14, 2024

Both nodes are running on the same machine and using localhost

from rqlite.

otoolep avatar otoolep commented on June 14, 2024

Both nodes are running on the same machine and using localhost

I understand, I'm just pointing that the dd test you are running is not fully simulating what is actually happening when one node transfers a snapshot to another node (assuming I'm not missing anything).

from rqlite.

aderouineau avatar aderouineau commented on June 14, 2024

I'll look into a better benchmark and see if this is still a problem.

from rqlite.

otoolep avatar otoolep commented on June 14, 2024

Maybe run a test using netcat. I think if you put gzip and netcat between the dd invocations that could be a good test.

dd -> gzip -> nc -> nc -> gunzip -> dd

from rqlite.

otoolep avatar otoolep commented on June 14, 2024

Correct comment above.

from rqlite.

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.