Comments (3)
@Steamgjk
It does batching.
NuRaft/include/libnuraft/raft_params.hxx
Lines 389 to 393 in b1f7c07
from nuraft.
@greensky00
The default value is 100.
If I only submit 1 request, will the request be sent immeidately, or will it wait for a timeout, or until it has accumulated 100 requests (I think it is not this case)? I mean, there are expected to be at least two conditions that can trigger an RPC. The first one is to reach the batch size, and the second one is to reach a timeout. So what is the timeout length?
from nuraft.
@Steamgjk
If the connection to a follower is idle, the request is sent immediately. If the previous request is in flight, the next requests are sent as soon as it gets a response to the previous request. In that case, the next batch size will be min(number of pending requests, max_append_size_)
. There is no such threshold on timing or size.
from nuraft.
Related Issues (20)
- About decay_target_priority HOT 3
- Obtaining benchmark results HOT 1
- Benchmarking and crashed node HOT 1
- client-service model quesiton HOT 3
- Avoid simultaneously snapshot. HOT 1
- brew install nuraft HOT 2
- Async operation for writing append record HOT 1
- append_entries handling of multiple log records as batch HOT 8
- ssl_test() fails when build with -DDISABLE_SSL=1
- rpc port binding HOT 2
- integer overflow ? HOT 3
- buffer overflow vulnerability HOT 2
- Whether we should add consistency test. HOT 2
- bug: runtests.sh calls missing buffer_test script HOT 2
- RPC should set connection timeout. HOT 3
- OpenSSF Security Scorecard improvements
- Wrong "src" and "dst" when cs_new<req_msg> HOT 2
- deadblock HOT 1
- Clean up CMakeLists HOT 2
- nuraft 2.0.0 cannot work on centos7 + centos8 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuraft.