ledisdb / ledisdb Goto Github PK
View Code? Open in Web Editor NEWA high performance NoSQL Database Server powered by Go
Home Page: https://ledisdb.io
License: MIT License
A high performance NoSQL Database Server powered by Go
Home Page: https://ledisdb.io
License: MIT License
Hi all!
Is it possible to add support for boltdb to ledis?
BoltDB is quite similar to goleveldb and attempts to gain some momentum (690 stars).
Many thanks for ledisdb, it's a great project!
https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide
add correspond option function to set
use toml instead of json
patch binlog to database
我仿照首页的指示写了个小程序,但遇到一个错误:
github.com/szferi/gomdb(.text): undefined: strdup
var cache *ledis.DB
var err error
if cache, err = func() (*ledis.DB, error) {
cfg := config.NewConfigDefault()
l, err := ledis.Open(cfg)
if err != nil {
return nil, err
}
return l.Select(0)
}(); err != nil {
log.Fatal(err)
}
这个可能不是ledisdb的问题,但我没搜到什么办法跳过这个步骤,只查到说strdup本身不是一个标准的C方法。另外我用默认的goleveldb,能不依赖gomdb这个库么?
我的环境是windows8,git shell,装了mingw-w64,Go1.3
leveldb*
support compact function to reduce db size
I don't know whether boltdb and lmdb support, google
It would be nice to have at least redis-like transactions.
My first time playing with ledis-server, just wanted to offer some feedback. The "-config" file must exist or the server can't be started. Rather it makes more sense to either require config or db_name to start since the config file doesnt have anything in it besides the db_name.
Also, perhaps instead of a json config file you could use https://github.com/BurntSushi/toml ? .. doesnt really matter I guess, but even if you call it /etc/ledis.conf using a toml format, it will feel good and unixy, and just a better format for this kind of thing IMHO.
Perhaps instead of bootstrap.sh where you go get a bunch of libraries, instead of Goop (https://github.com/nitrous-io/goop) or Godeps (https://github.com/tools/godep) .. these are two popular ways of managing dependencies in a Go project. 👍
To achieve atomicity with more sophisticated record manipulation, redis has a scripting support. http://redis.io/commands/eval
Lua scripting is very easy to embed and is super fast (especially luajit)
It would be great to add have something similar in ledisdb.
Only appears once and not reappears anymore.
Record here to pay attention to.
@silentsai @wenyekui @holys @tiaotiaoyly
I think we should begin to support cluster, qpush
now uses 2 ledis-server, maybe more later.
I think it is very complicated for redis3.0 cluster solution, (if someone want to learn it and can promise that has the power to do it, very welcome!!!) .
I want to use a proxy solution, like https://github.com/siddontang/mixer or https://github.com/twitter/twemproxy
Some features:
db
+ key
any suggestion?
using scan, hscan ... to delete safely
It seems scan is unsupported after reading the docs and redis-cli test. I think scan is a unreplacable and useful feature.
I like pure Go project.
Hi guys!
Is there a way to use LedisDB on Node.js?
Thanks
use bootstrap?
support multi disks ?
redis-benchmark -n 50000 -t set,incr,get,lpush,lpop,lrange,mset -q
Redis: only cache, no file save
SSDB
LedisDB + LevelDB
LedisDB + goleveldb
LedisDB + RocksDB
LedisDB + LMDB
Before every bench, remove all old data first
Set result in wiki
tokuft https://github.com/Tokutek/ft-index
go-tokuft https://github.com/siddontang/go-tokuft
refer mdb or boltdb, tokuft supports transaction
use https://github.com/stevedonovan/luar or other?
but must support transaction first
see redis dump and restore
I want to clone the repository to a folder not contain path src/github.com/siddontang/ledisdb
but when I follow the README do source dev.sh
the shell crashed.
It seems that I must clone the project into src/github.com/siddontang/ledisdb
, I think it is not necessary.
Now I am using Redis
in a game server. But it may use too much memory, can I use this project in the game server? Thanks!
add snapshot interface, all backend dbs must support
just issued cannot find lib snappy.
in dev.sh, fix as follow:
# check snappy
if [ -f $SNAPPY_DIR/include/snappy.h ]; then
CGO_CFLAGS="$CGO_CFLAGS -I$SNAPPY_DIR/include"
CGO_CXXFLAGS="$CGO_CXXFLAGS -I$SNAPPY_DIR/include"
CGO_LDFLAGS="$CGO_LDFLAGS -L$SNAPPY_DIR/lib -lsnappy"
LD_LIBRARY_PATH=$(add_path $LD_LIBRARY_PATH $SNAPPY_DIR/lib)
DYLD_LIBRARY_PATH=$(add_path $DYLD_LIBRARY_PATH $SNAPPY_DIR/lib)
fi
move
hmove
lmove
zmove
bmove
i thought. if all servers have [ip1, ip2, ip3] synced list from master[ip1]. and if i request eg. "set" operation on ip2 and if ip1 alive -> just proxy it. (maybe keep set operation on local "tmp" table)
any new "slave-of" registers to master and all slaves can became master. becouse any slave knows where too route "write" request.
if master timeout - write to second ip :)
when server "wake ups" -> check several "masters" to get servers list.
i think you got idea ;)
a little bit from google groupcache - if client requests me ID and i dont have/or have in tmp table ant user request me and i check master i can commit "write" ? :) and "cache local" :)
what we can do with "tmp uncommited writes" then master goes down? commit them on second "master" ?
see redis migrate command migrate
遇到这个问题请问怎么解决?
[root@ledisdb]# ledis-server ./etc/ledis.json
ledis-server: error while loading shared libraries: libleveldb.so.1: cannot open shared object file: No such file or directory
leveldb已经编译,并且库文件已经ln -s 到/usr/local/lib
lrwxrwxrwx 1 root root 35 7月 18 19:09 libleveldb.a -> /usr/local/leveldb/lib/libleveldb.a
lrwxrwxrwx 1 root root 36 7月 18 19:09 libleveldb.so -> /usr/local/leveldb/lib/libleveldb.so
lrwxrwxrwx 1 root root 38 7月 18 19:09 libleveldb.so.1 -> /usr/local/leveldb/lib/libleveldb.so.1
lrwxrwxrwx 1 root root 41 7月 18 19:09 libleveldb.so.1.17 -> /usr/local/leveldb/lib/libleveldb.so.1.17
scan kv
hscan hash
db supports begin commit rollback
refer mysql, maybe refactor
Maybe I will implement another better replication merchanism
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.