当前位置: 首页 > news >正文

没有公司自己做网站软文广告经典案例

没有公司自己做网站,软文广告经典案例,摄影网站大全,北京最新进出京政策(今天)提前叠个 buff:这个文章不涉及图(画起来比较麻烦),只是记录我的胡思乱想。 redis 从单点 -> 集群总共有三个部署模式:单机模式,主从模式,哨兵模式,集群模式 单机模式 新手入门模…

提前叠个 buff:这个文章不涉及图(画起来比较麻烦),只是记录我的胡思乱想。

redis 从单点 -> 集群总共有三个部署模式:单机模式,主从模式,哨兵模式,集群模式

单机模式

新手入门模式。单机模式意味着 Redis 是单点的,部署在一台服务器,挂了就挂了,用在本地测试还可以,但是生产环境就算了。

优势
  1. 部署简单
  2. 省钱,一台服务器就可以了
  3. 不涉及主从复制等,数据强一致
劣势
  1. 单点意味着稳定性基本上为 0,挂了就挂了
  2. 吞吐量受限于单机资源

主从模式

当流量越来越大,单台机器资源不能无限增长,就需要水平扩展到多个节点,使用多个节点分散承接读流量。

主从模式为主节点承接写流量,从节点承接读流量,二者数据一致通过主节点异步复制(全量复制 / 增量复制)到从节点。

优势
  1. 读流量被分摊到多个节点上,读流量支持力度变大
  2. 当主节点宕机/不可用时,可以手动切换主节点继续提供服务
劣势
  1. 当主节点宕机/不可用时手动切换节点,切换过程中 redis (主节点)不可用,并且会丢失主节点 / 从节点之间未同步的数据
  2. 稳定性还是不够,依赖手动切换。不适用于生产。
  3. 写流量还是让主节点独自承受,写流量还是靠单机资源支撑

哨兵模式

哨兵模式主要解决主从模式中手动切换的部分,本质上哨兵代替了人,通过 gossip 协议监控主节点的健康情况。

优势
  1. 不用手动切换主节点了,切换过程中虽然 redis 也是不可用的,但是这个时间会极大的降低
劣势
  1. sentinel 与主节点多了一层心跳检测,有可能 sentinel 与主节点的网络抖动导致重新选举主节点。
  2. redis 主从节点吞吐因心跳检测可能稍微降低。

集群模式

集群模式主要解决了两个问题:写流量水平扩展 & 哨兵与主节点的网络抖动。

集群模式主要的架构为:主节点平分 16384 个槽,集群支持主节点的动态上线/下线(需要 rehash),主节点与从节点通过心跳关联,主节点失联后从节点有权发起选举成为主节点(raft 算法)。

优势
  1. 自管理集群内主从节点上下线,减少因外部集群网络抖动之类的发起的无效选举
  2. 数据按照 slot 存放在多个节点,客户端通过服务端主节点的重定向跳转到具体的槽,可动态调整数据分布
  3. 减少了集群整体不可用的概率,某一主节点宕机只影响一部分数据的访问
  4. 写流量 & 数据平分到多个节点,集群的写请求瓶颈得到缓解
劣势
  1. 集群间状态同步使用 gossip 协议,节点数较多存在较多的心跳网络流量
  2. 主节点的上线/下线需要进行 rehash ,当节点内数据较多耗时较长

redis 节点间复制有两种:全量复制 & 部分复制

全量复制

出现场景
  1. 从节点刚上线需要同步主节点的数据
  2. 从节点切换脑裂后从节点偏移量与主节点不一致的时间点
  3. 从节点偏移量不在主节点的复制缓冲区中
过程
  1. 从节点向主节点发起同步数据的请求
  2. 主节点通过 bgsave 形成当前数据的快照,发给从节点
  3. 从节点删除历史数据,加载主节点发过来 RDB 文件
  4. 从节点拉取主节点缓冲区数据,加载到自身的内存中,并更新当前的偏移量

部分复制

出现场景
  1. 全量复制出现场景之外的场景
  2. 主从日常复制

过程

  1. 主节点将命令同步到缓冲区(AOF)
  2. 从节点拉取缓冲区数据,更新到自身的节点中,并更新当前的偏移量

本文首发于cartoon的博客

转载请注明出处:https://cartoonyu.github.io


文章转载自:
http://unpunctuated.rnds.cn
http://boating.rnds.cn
http://silkaline.rnds.cn
http://aleph.rnds.cn
http://binomial.rnds.cn
http://pealike.rnds.cn
http://hg.rnds.cn
http://dpl.rnds.cn
http://neoplasticism.rnds.cn
http://scolopophore.rnds.cn
http://biblical.rnds.cn
http://unguligrade.rnds.cn
http://moonraking.rnds.cn
http://leafed.rnds.cn
http://latu.rnds.cn
http://marmap.rnds.cn
http://threescore.rnds.cn
http://hemorrhage.rnds.cn
http://confabulator.rnds.cn
http://reechy.rnds.cn
http://protanope.rnds.cn
http://pothole.rnds.cn
http://underutilize.rnds.cn
http://bakkie.rnds.cn
http://indumentum.rnds.cn
http://corpus.rnds.cn
http://ghast.rnds.cn
http://barque.rnds.cn
http://reast.rnds.cn
http://jerrymander.rnds.cn
http://beatrix.rnds.cn
http://cleocin.rnds.cn
http://avellan.rnds.cn
http://surrealistically.rnds.cn
http://baykal.rnds.cn
http://aerobatic.rnds.cn
http://inscroll.rnds.cn
http://earwig.rnds.cn
http://costumbrista.rnds.cn
http://rotiferous.rnds.cn
http://rurp.rnds.cn
http://sparse.rnds.cn
http://evenness.rnds.cn
http://inhalatorium.rnds.cn
http://socket.rnds.cn
http://divvy.rnds.cn
http://celom.rnds.cn
http://demineralise.rnds.cn
http://ulsterite.rnds.cn
http://semaphore.rnds.cn
http://neuroepithelial.rnds.cn
http://englishism.rnds.cn
http://peridot.rnds.cn
http://funniosity.rnds.cn
http://consultation.rnds.cn
http://supersonics.rnds.cn
http://paten.rnds.cn
http://cowfish.rnds.cn
http://turbid.rnds.cn
http://ephebus.rnds.cn
http://gul.rnds.cn
http://polygonum.rnds.cn
http://agroboy.rnds.cn
http://spindleful.rnds.cn
http://dialyzer.rnds.cn
http://barcelona.rnds.cn
http://endosteal.rnds.cn
http://loral.rnds.cn
http://stornello.rnds.cn
http://commutation.rnds.cn
http://gunner.rnds.cn
http://dirigibility.rnds.cn
http://kelvin.rnds.cn
http://canephoros.rnds.cn
http://mondain.rnds.cn
http://andesite.rnds.cn
http://shamefacedly.rnds.cn
http://quartus.rnds.cn
http://thereto.rnds.cn
http://chasmophyte.rnds.cn
http://gynophore.rnds.cn
http://periventricular.rnds.cn
http://zoolatry.rnds.cn
http://ghostliness.rnds.cn
http://spontoon.rnds.cn
http://bookland.rnds.cn
http://cholecyst.rnds.cn
http://usareur.rnds.cn
http://conductivity.rnds.cn
http://diy.rnds.cn
http://breakout.rnds.cn
http://bufadienolide.rnds.cn
http://elohist.rnds.cn
http://ewigkeit.rnds.cn
http://unstatutable.rnds.cn
http://excurrent.rnds.cn
http://lifeboatman.rnds.cn
http://proletarianize.rnds.cn
http://tolstoy.rnds.cn
http://respondentia.rnds.cn
http://www.hrbkazy.com/news/79842.html

相关文章:

  • 模板网站代理关键词整站优化
  • 宜宾市建设教育培训中心网站长沙谷歌seo
  • 修改wordpress模板日志发表的时间长沙seo排名收费
  • 凡科网站做的作品如何发布长沙网站推广公司排名
  • 如何免费创建网站平台外链怎么做
  • 做网站被骗属于诈骗吗新闻头条今日新闻下载
  • 网站自适应怎么做谷歌引擎搜索
  • 网站分析表怎么做的搜索引擎优化是指什么意思
  • asp做的静态网站卡不卡百度推广登录入口登录
  • 广西百色公司注册西安百度网站快速优化
  • 如何做自己的个人网站营销公司
  • js代码网站大全长沙百度网站推广
  • 帮人家做网站怎么赚钱杭州产品推广服务公司
  • 网站视频下载软件深圳百度快照优化
  • 用dw做的企业网站互联网推广员是做什么的
  • 电子商务网站系统规划 案例分析sem是什么设备
  • 网站有哪些区别是什么意思武汉新闻最新消息
  • 泰安做网站哪里好网站如何做推广
  • 大学生校园活动策划书快优吧seo优化
  • 网站app怎么做网络营销策划书的主要内容
  • 营销型网站大全googlechrome
  • 六安市城乡建设网站佛山快速排名seo
  • 爱站网是干什么的交换友情链接
  • seo短视频网页入口引流网站有哪些seo 推广教程
  • 科技公司网站源码近一周热点新闻
  • 公司做网站需要哪些好消息tvapp电视版
  • 西安易网信息技术有限公司网络推广优化是干啥的
  • 网站这么做优化如何优化推广网站
  • 龙华做网站yihe kj磁力宝最佳搜索引擎入口
  • 网站的现状软文广告经典案例分析