企业区,为企业而服务

网站推广 APP制作 网站制作 小程序制作 SEO 快手 抖音宣传 工业企业推广(推荐)

立即体验
听一下我们的服务
论坛资讯

Redis官网昨日宕机,错误提示为“无法连接Redis”

Redis 官网redis.io昨日罕见地宕机了一段时间。宕机原本不是什么新鲜事,但戏剧性的是网站的报错信息居然是连接不上 Redis。

Redis::CannotConnectError at / Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)

▲ 看到这,忍不住刷一句:禁止套娃!

Redis 作者 Antirez 很快修复了问题,并解释了宕机的原因。原来是因为他最近在运行redis.io的实例上安装了Try Redis(用于在线体验 Redis 数据库),可能是未能对 session key 进行良好的垃圾回收,从而导致内存累积,最终因为内存溢出(OOM)引发宕机。对此,Antirez 表示这种情况只是由于实例的内存不足而导致的。所以他的解决方案也十分直接,升级为 $20/月,4G 内存的实例。另外还为 allkeys-lru 策略配置了 1GB 内存的限制。

However lately I installedhttp://try.redis.iothere. And apparently it does not garbage collect the session keys well enough or something like that. So memory accumulated and the instance quit for OOM, but this probably only happened because the instance is very low on mem.

viahttps://twitter.com/antirez/status/1238132868137787392

TLDR, today I'm going to resize it to a 4GB instance for 20$/month. Looks like a good upgrade :-D Maybe the site will be faster too, even if it was quite fast actually, already. Lessons: if you use Redis as your store, you can do a lot with very little.

viahttps://twitter.com/antirez/status/1238132885762211841

我们也由此得知一个出乎大家意料的情况,Redis 官网居然运行在一台仅$5/月,内存 1G 的 DigitalOcean 虚拟主机(Droplet)上,这也是 DigitalOcean 提供的最低(标准)配置。

Todayhttp://Redis.iowent down for some time, sorry about this problem,http://Redis.iois running in a $5 / month droplet at@digitalocean. I was a bit too cheap on that :-) But since it uses Redis as its main store + a Ruby app, this was enough.

viahttps://twitter.com/antirez/status/1238132866682359813

Antirez 解释道,选择这么便宜的配置是因为这台主机使用了 Redis 作为持久存储,并且只跑了一个 Ruby 应用(点此查看源码),所以已经足够应对。

上一篇 微软 Chromium 版 Edge 82 开发版新增扩展同步 下一篇 谷歌 Chrome 新增开发者工具,帮助开发对色盲友好的页面
论坛资讯同步说明,本文同步自论坛:bbs.qiyequ.com,如您在论坛注册成为会员用户并且发帖,则默认论坛文章同步协议,协议内容请移步论坛查看!

企业区

扫码添加咨询
企业微信

添加客户

可开发票

仿站