alibaba / apsaracache Goto Github PK
View Code? Open in Web Editor NEWarchived | ApsaraCache is a Redis branch originated from Alibaba Group.
License: BSD 3-Clause "New" or "Revised" License
archived | ApsaraCache is a Redis branch originated from Alibaba Group.
License: BSD 3-Clause "New" or "Revised" License
aofSplit>openAppendOnly
如果openAppendOnly失败,则appendonly被关闭;此时无法执行写命令,并且即使磁盘恢复正常server也无法自动恢复。
[root@master ~]# telnet 172.23.129.14 7003
Trying 172.23.129.14...
Connected to 172.23.129.14.
Escape character is '^]'.
set yang 1 1111 2 noreply
bb
get yang
get ya
get yang
get yang
RT
看描述是基于Redis的拓展和优化,在存在Redis的情况下,为什么要选择重新造一个轮子,而不是完善现有的Redis?
公司是出于什么方面的考量呢?
can't compile on OSX, cause there is no definition for memrchr.
file : src/memcached_parser.c
function: memcachedBinaryCompleteSaslAuth
passwd = memrchr(challenge + 1, '\0', vlen - 1);
and when run with memcache prococol, default port is still 6379, rather than 11211 as stated
如何热升级?
是否支持redis cluster集群模式的异地多活部署?或者是单实例的异地多活?
I haven't seen new release for long time, so would be great to know the plans with this.
Thanks
After upgrade jemalloc to the new version, build error in ubuntu 16.04LTS, next are the information:
cd src && make all
make[1]: Entering directory '/home/longweijin/github.com/ApsaraCache/src'
LINK redis-server
zmalloc.o: In function `zmalloc':
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:98: undefined reference to `je_malloc'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:102: undefined reference to `je_malloc_usable_size'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:102: undefined reference to `je_malloc_usable_size'
zmalloc.o: In function `zcalloc':
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:130: undefined reference to `je_calloc'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:134: undefined reference to `je_malloc_usable_size'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:134: undefined reference to `je_malloc_usable_size'
zmalloc.o: In function `zrealloc':
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:152: undefined reference to `je_malloc_usable_size'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:153: undefined reference to `je_realloc'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:157: undefined reference to `je_malloc_usable_size'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:157: undefined reference to `je_malloc_usable_size'
zmalloc.o: In function `zfree':
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:194: undefined reference to `je_malloc_usable_size'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:194: undefined reference to `je_malloc_usable_size'
/home/longweijin/github.com/ApsaraCache/src/zmalloc.c:195: undefined reference to `je_free'
networking.o: In function `sdsZmallocSize':
/home/longweijin/github.com/ApsaraCache/src/networking.c:43: undefined reference to `je_malloc_usable_size'
networking.o: In function `getStringObjectSdsUsedMemory':
/home/longweijin/github.com/ApsaraCache/src/networking.c:52: undefined reference to `je_malloc_usable_size'
networking.o: In function `sdsZmallocSize':
/home/longweijin/github.com/ApsaraCache/src/networking.c:43: undefined reference to `je_malloc_usable_size'
object.o: In function `objectComputeSize':
/home/longweijin/github.com/ApsaraCache/src/object.c:765: undefined reference to `je_malloc_usable_size'
object.o: In function `getMemoryOverheadData':
/home/longweijin/github.com/ApsaraCache/src/object.c:831: undefined reference to `je_malloc_usable_size'
object.o: In function `memoryCommand':
/home/longweijin/github.com/ApsaraCache/src/object.c:1158: undefined reference to `je_mallctl'
/home/longweijin/github.com/ApsaraCache/src/object.c:1160: undefined reference to `je_mallctl'
/home/longweijin/github.com/ApsaraCache/src/object.c:1145: undefined reference to `je_malloc_stats_print'
collect2: error: ld returned 1 exit status
Makefile:199: recipe for target 'redis-server' failed
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory '/home/longweijin/github.com/ApsaraCache/src'
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 2
如题,所以我应该使用哪个分支来build。另外我再问一下是否有相应的Dockerfile?
H
i,
因为公司不用钉钉, 自己也没有注册, 可否提供一个 QQ 群?
谢谢
[root@master git]# redis-cli -c -h 172.23.129.14 -p 7001
172.23.129.14:7001> cluster nodes
79728c53c851f48065f8454a6c6e509fba404b4d 172.23.129.14:7004@17004 slave 12eeec99bcadfab43980c2bb53035259a6a02424 0 1515415047662 3 connected
011c38512ce0a3efeb69253e972dcaec145fc9ee 172.23.129.14:7005@17005 master - 0 1515415044000 4 connected 10923-16383
177bc4491ea8cb90e00610bc973fb30f94acb6d2 172.23.129.14:7001@17001 myself,master - 0 1515415045000 1 connected 0-5461
fcf68e9ab709dd323df4e216752036d9f5e96f7d 172.23.129.14:7006@17006 slave 011c38512ce0a3efeb69253e972dcaec145fc9ee 0 1515415045000 4 connected
12eeec99bcadfab43980c2bb53035259a6a02424 172.23.129.14:7003@17003 master - 0 1515415046658 3 connected 5462-10922
5e2ff6ca84f25af69f8cb3b15f8933b7750588fb 172.23.129.14:7002@17002 slave 177bc4491ea8cb90e00610bc973fb30f94acb6d2 0 1515415045655 5 connected
172.23.129.14:7001>
172.23.129.14:7001>
172.23.129.14:7001>
172.23.129.14:7001> CLUSTER SETSLOT 3215 migrating 12eeec99bcadfab43980c2bb53035259a6a02424
OK
172.23.129.14:7001> cluster nodes
79728c53c851f48065f8454a6c6e509fba404b4d 172.23.129.14:7004@17004 slave 12eeec99bcadfab43980c2bb53035259a6a02424 0 1515415151893 3 connected
011c38512ce0a3efeb69253e972dcaec145fc9ee 172.23.129.14:7005@17005 master - 0 1515415149000 4 connected 10923-16383
177bc4491ea8cb90e00610bc973fb30f94acb6d2 172.23.129.14:7001@17001 myself,master - 0 1515415150000 1 connected 0-5461 [3215->-12eeec99bcadfab43980c2bb53035259a6a02424]
fcf68e9ab709dd323df4e216752036d9f5e96f7d 172.23.129.14:7006@17006 slave 011c38512ce0a3efeb69253e972dcaec145fc9ee 0 1515415153898 4 connected
12eeec99bcadfab43980c2bb53035259a6a02424 172.23.129.14:7003@17003 master - 0 1515415154901 3 connected 5462-10922
5e2ff6ca84f25af69f8cb3b15f8933b7750588fb 172.23.129.14:7002@17002 slave 177bc4491ea8cb90e00610bc973fb30f94acb6d2 0 1515415154000 5 connected
172.23.129.14:7001> quit
[root@master git]# redis-cli -c -h 172.23.129.14 -p 7003
172.23.129.14:7003> CLUSTER SETSLOT 3215 importing 177bc4491ea8cb90e00610bc973fb30f94acb6d2
OK
172.23.129.14:7003> cluster nodes
fcf68e9ab709dd323df4e216752036d9f5e96f7d 172.23.129.14:7006@17006 slave 011c38512ce0a3efeb69253e972dcaec145fc9ee 0 1515415224000 4 connected
5e2ff6ca84f25af69f8cb3b15f8933b7750588fb 172.23.129.14:7002@17002 slave 177bc4491ea8cb90e00610bc973fb30f94acb6d2 0 1515415225571 5 connected
011c38512ce0a3efeb69253e972dcaec145fc9ee 172.23.129.14:7005@17005 master - 0 1515415224567 4 connected 10923-16383
177bc4491ea8cb90e00610bc973fb30f94acb6d2 172.23.129.14:7001@17001 master - 0 1515415226000 1 connected 0-5461
79728c53c851f48065f8454a6c6e509fba404b4d 172.23.129.14:7004@17004 slave 12eeec99bcadfab43980c2bb53035259a6a02424 0 1515415226573 3 connected
12eeec99bcadfab43980c2bb53035259a6a02424 172.23.129.14:7003@17003 myself,master - 0 1515415225000 3 connected 5462-10922 [3215-<-177bc4491ea8cb90e00610bc973fb30f94acb6d2]
172.23.129.14:7003>
172.23.129.14:7003>
172.23.129.14:7003> cluster nodes
fcf68e9ab709dd323df4e216752036d9f5e96f7d 172.23.129.14:7006@17006 slave 011c38512ce0a3efeb69253e972dcaec145fc9ee 0 1515415260000 4 connected
5e2ff6ca84f25af69f8cb3b15f8933b7750588fb 172.23.129.14:7002@17002 slave 177bc4491ea8cb90e00610bc973fb30f94acb6d2 0 1515415260695 5 connected
011c38512ce0a3efeb69253e972dcaec145fc9ee 172.23.129.14:7005@17005 master - 0 1515415259000 4 connected 10923-16383
177bc4491ea8cb90e00610bc973fb30f94acb6d2 172.23.129.14:7001@17001 master - 0 1515415260000 1 connected 0-5461
79728c53c851f48065f8454a6c6e509fba404b4d 172.23.129.14:7004@17004 slave 12eeec99bcadfab43980c2bb53035259a6a02424 0 1515415260000 3 connected
12eeec99bcadfab43980c2bb53035259a6a02424 172.23.129.14:7003@17003 myself,master - 0 1515415259000 3 connected 5462-10922 [3215-<-177bc4491ea8cb90e00610bc973fb30f94acb6d2]
172.23.129.14:7003>
172.23.129.14:7003> quit
[root@master git]# redis-cli -c -h 172.23.129.14 -p 7001
172.23.129.14:7001> CLUSTER GETKEYSINSLOT 3215 20
如题,扫描二维码提示需要管理员拉人才行
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.