Comments (2)
Hi,
- The purpose of Binlog is for replication, the server will log every write to it and send it to a slave, the slave will replay the write operation. If you don't need master-slave replication, then you can set
binlog: no
in ssdb.conf. - The lock is necessary. For set operation, actually it is two writes: the key-value, and the binlog item, the two must be performed in one WriteBatch.
from ssdb-rocks.
Thanks, since I do not need replication for my use-case, I have eliminated the use of WriteBatch and made each Put and Get operation go directly to the rocksdb database, ie: db->Put() and db->Get(), instead of adding operations to a lock-protected WriteBatch and then calling db->Write().
However, I still see a 15 ms performance gap between average and 95th percentile latency. Have you observed this as well? I see a 15 ms performance gap between avg and p95 latency even when I only use 1 reader and 1 writer and I thread-pin them to separate cores to avoid interference from the linux scheduler. So I wonder if there is some rare event (that occurs ~5% of the time) that causes ssdb to sleep or delay execution of a request for ~15ms. I am currently going through the code in detail, but if you have any ideas for explaining the latency spikes that occur 5% of the time, that would be very helpful. Thank you!
from ssdb-rocks.
Related Issues (9)
- util compilation issue HOT 1
- compile with two flags error
- ssdb-rocks is up to date HOT 2
- ssdb-server and ssdb.conf HOT 1
- segmentation fault when adjusting variable under rocksdb dep/util/options.cc
- is ssdbrocksdb production ready? HOT 2
- benchmarked ssdb is slower than leveldb using sata hdds
- why use lua set value is much slower than php?
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 ssdb-rocks.