onexsoft / onecache Goto Github PK
View Code? Open in Web Editor NEWAnother High Perofrmance Redis Proxy, Replacement of Twemproxy
License: Apache License 2.0
Another High Perofrmance Redis Proxy, Replacement of Twemproxy
License: Apache License 2.0
When we config a timeout value at Redis side, the OneCache will mark it down for every timeout period.
So please adjust the timeout value to 0 to disable it, because OneCache will keep a connection pool with Redis instance.
We will improve it soon.
Suggest to add a pid file.
在redisproxy.cpp 318行中
EventLoopThread* loopThread = m_eventLoopThreadPool->thread(m_threadPoolRefCount % threadCount);
++m_threadPoolRefCount;
m_threadPoolRefCount初始化为 unsigned int m_threadPoolRefCount; 如果大量的请求将会导致m_threadPoolRefCount超过unsigned int的最大值从而导致值异常程序崩溃
modify Makefile the next contents:
/usr/local/lib ------> /usr/lib/x86_64-linux-gnu
LIBS = $(SUBLIBS) /usr/lib/x86_64-linux-gnu/libevent.a /usr/lib/x86_64-linux-gnu/libevent_pthreads.a -lrt -pthread /usr/lib/x86_64-linux-gnu/libjemalloc
.a
A hot key cache can be implented to fasten the QPS greately, after we get top keys from statistics, we could ask OneCache to cache the values, then next access can be served from OneCache directly.
An extra null pointer check is not needed in functions like the following.
Can Onecache be configured to write to two or more masters? May be using pipepine to replicate on 2nd master.
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.