jacketwoo / jacketwoo.github.io Goto Github PK
View Code? Open in Web Editor NEWhskingbird's home
License: MIT License
hskingbird's home
License: MIT License
我们之前用的phpredis的php7分支,平时并发不大的时候倒也没发现有什么异常,上周我们搞了一个活动,在高并发大流量下phpredis表现非常差劲,各种报错,且redis cluster负载非常不均衡(使用的是FAILOVER_DISTRIBUTE的读取策略)。
后有幸拜读到博主的《phpredis的RedisCluster客户端使用总结》博文,醍醐灌顶。
后切换至phpredis的develop分支,使用FAILOVER_DISTRIBUTE_SLAVES的读取策略 + 随机连接不同的redis节点,redis cluster的负载稍微平均了一点,但是整体还是相当不稳定,经常会出现connect timeout的错误。
解决无果,实在没有办法的情况下,最后只能把高并发的接口迁移至GO来实现,此后方可扛住高并发的压力。然而此次高并发是属于业务比较简单的,如果出现业务比较复杂的大流量,短期内无法迁移至像GO这种高性能的语言上,PHP应该怎么样才能保证连接redis的稳定性呢?
希望博主不吝赐答,谢谢~
我看了您的三篇文章,正是我当前遇到的问题,向您这样的先驱者致敬,希望可以联系到你交个朋友,并希望获得您的帮助
您的邮箱太高级,我无法发送邮件给您
我的qq:8877236 您可以叫我:佳恒
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.