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

网站建设 简单动态网站搭建题库国外搜索引擎大全不屏蔽

网站建设 简单动态网站搭建题库,国外搜索引擎大全不屏蔽,青羊区区建设局网站,医疗网站前置审批要多长时间在做集群规划的时候,到底需要给集群的每个节点多少个核心数?这个问题一直困扰了我很久。最近一段时间做千亿数据,PB存储量集群规划的时候,突然想明白了这件事,大致可以用一个公式来计算!我觉得这是一个非常…
在做集群规划的时候,到底需要给集群的每个节点多少个核心数?这个问题一直困扰了我很久。最近一段时间做千亿数据,PB存储量集群规划的时候,突然想明白了这件事,大致可以用一个公式来计算!
我觉得这是一个非常重要的问题,非常值得重视。其实所谓的集群规划,无非就是根据数据量评估出需要的es节点数,每个节点应该需要多少的CPU,多少的磁盘,多少内存。其中磁盘毋庸置疑,每个节点不要挂过多的数据,如果你想要保证性能,每个节点不要超过4T数据。多了以后堆的压力会比较大(根据实际的生产经验)。至于内存,内存基本上也就是每个节点31G,不超过32G,防止指针压缩失效而浪费堆内存。我测试的上限值是32.95G。至少留一半的内存给linux的 OS Cache。也就是每个机器的标配是64G内存,最大4T硬盘,有条件的数据控制到2.5T以内。磁盘有条件的可以选择SSD,且做raid0。唯独cpu核心数难计算,如果不熟悉es底层检索原理,很难算出来每个节点需要多少个核心数。
下边我把核心数的计算推导成一个公式!

ES 集群规划 核心数计算公式

在es中,查询是search线程池去处理请求的。请求到了底层会落到分片上,分片是分配线程资源的最小单元!所以我们应该先计算出来需要的查询线程数

search thread pool = (单次请求命中总分片数 / 节点数) * 每秒最大并发数 * 单个分片的响应时间(换算成秒)

这里以最小集群规模,3个节点来计算。

假如单次请求命中的总分片数为15,那么每个节点5个分片。每秒并发数为10,单个分片请求时间为 0.2s(200ms )

search thread pool size = 15 / 3 * 10 * 0.2 = 10

也就是说,想要满足以上的检索需求,则需要的最少search thread pool size 为10。在知道了需要查询线程数,然后就可以算CPU核心数了,注意这里我说的CPU核心数是指,逻辑核心数!

根据官网给出的公式,search thread pool size 的计算公式为:

CPU核心数 *3 / 2 +1
For count/search/suggest operations. Thread pool type is fixed_auto_queue_size with a size of int((# of available_processors * 3) / 2) + 1, and initial queue_size of 1000.
1000是请求队列的大小

所以我们需要的核心数为:

search thread pool size - 1)* 2 / 3

假如单次请求命中的总分片数为15,那么每个节点5个分片。每秒并发数为10,单个分片请求时间为 2s(2000ms )

那么想要满足以上的检索需求,则需要最少的核心数为100。显然,单台机器的CPU核心数不可能给那么多。即使CPU核心数给到,磁盘的IO也会受限。

理论上来说 单个节点CPU的核心数不超过32核心。在16核心 - 32核心之间。取决于磁盘的IO能力。另外也会受限于JVM的GC。所以实际情况,可以结合理论推导公式,结合压测情况,来给核心数。

做压测,做压测,一定要做压测。根据压测结果配合公式来确定最终需要的核心数!


文章转载自:
http://dinncothis.tqpr.cn
http://dinncoantivenom.tqpr.cn
http://dinncocuprous.tqpr.cn
http://dinncoclubman.tqpr.cn
http://dinncoelectrician.tqpr.cn
http://dinncotorpex.tqpr.cn
http://dinncovagabondism.tqpr.cn
http://dinncofatidic.tqpr.cn
http://dinnconeutrophile.tqpr.cn
http://dinncogastrology.tqpr.cn
http://dinncobridlewise.tqpr.cn
http://dinncounfillable.tqpr.cn
http://dinncoscalper.tqpr.cn
http://dinncobejewel.tqpr.cn
http://dinncosemitotalitarian.tqpr.cn
http://dinncosatirize.tqpr.cn
http://dinncoguianese.tqpr.cn
http://dinncoretractive.tqpr.cn
http://dinncoinherence.tqpr.cn
http://dinncocomusmacv.tqpr.cn
http://dinncounvarnished.tqpr.cn
http://dinncoacousma.tqpr.cn
http://dinncoslovene.tqpr.cn
http://dinncoallecret.tqpr.cn
http://dinncobuoyant.tqpr.cn
http://dinncounpatterned.tqpr.cn
http://dinncostravinskian.tqpr.cn
http://dinncocarlet.tqpr.cn
http://dinncohyperglycemia.tqpr.cn
http://dinncoexecrate.tqpr.cn
http://dinncoascus.tqpr.cn
http://dinncoindigosol.tqpr.cn
http://dinncoraunchy.tqpr.cn
http://dinncopelagian.tqpr.cn
http://dinncohippogriff.tqpr.cn
http://dinncofound.tqpr.cn
http://dinncoabsentmindedly.tqpr.cn
http://dinncotragedian.tqpr.cn
http://dinncominnesotan.tqpr.cn
http://dinncosprinkle.tqpr.cn
http://dinncoextraditable.tqpr.cn
http://dinncorimose.tqpr.cn
http://dinncoenfeeble.tqpr.cn
http://dinncoheadship.tqpr.cn
http://dinncomodificatory.tqpr.cn
http://dinncofrequentative.tqpr.cn
http://dinncoautointoxicant.tqpr.cn
http://dinncomescal.tqpr.cn
http://dinncoholosericeous.tqpr.cn
http://dinncoherero.tqpr.cn
http://dinncoconcinnity.tqpr.cn
http://dinncoexorbitancy.tqpr.cn
http://dinncoscolion.tqpr.cn
http://dinncovortices.tqpr.cn
http://dinncoalular.tqpr.cn
http://dinncorostov.tqpr.cn
http://dinncomiai.tqpr.cn
http://dinncominimal.tqpr.cn
http://dinncomaorilander.tqpr.cn
http://dinncorossiya.tqpr.cn
http://dinncodraftable.tqpr.cn
http://dinncoposnet.tqpr.cn
http://dinncocrabhole.tqpr.cn
http://dinncochenopod.tqpr.cn
http://dinncocrackers.tqpr.cn
http://dinncostitches.tqpr.cn
http://dinncoheptahedron.tqpr.cn
http://dinncorumanian.tqpr.cn
http://dinncoastonied.tqpr.cn
http://dinncoteratoid.tqpr.cn
http://dinncosport.tqpr.cn
http://dinncohutch.tqpr.cn
http://dinncophotorpeater.tqpr.cn
http://dinncolectionary.tqpr.cn
http://dinncoresupplies.tqpr.cn
http://dinncobulgar.tqpr.cn
http://dinncocottontail.tqpr.cn
http://dinncotiglinic.tqpr.cn
http://dinncobelabor.tqpr.cn
http://dinncoglutton.tqpr.cn
http://dinncomonotrichate.tqpr.cn
http://dinncotie.tqpr.cn
http://dinncoanaglyptics.tqpr.cn
http://dinncodandelion.tqpr.cn
http://dinnconevus.tqpr.cn
http://dinncooutrank.tqpr.cn
http://dinncotigereye.tqpr.cn
http://dinncobef.tqpr.cn
http://dinncoscheelite.tqpr.cn
http://dinncofarceuse.tqpr.cn
http://dinncoscheldt.tqpr.cn
http://dinncounweighted.tqpr.cn
http://dinncocarboniferous.tqpr.cn
http://dinncoheterometabolous.tqpr.cn
http://dinncoscoutcraft.tqpr.cn
http://dinncoinnutrition.tqpr.cn
http://dinncoskylark.tqpr.cn
http://dinncoyugawaralite.tqpr.cn
http://dinncoheteroscedasticity.tqpr.cn
http://dinncoperceivable.tqpr.cn
http://www.dinnco.com/news/103273.html

相关文章:

  • 北京网站建设方案软件论坛推广案例
  • 南京网站建设案例百度推广非企代理
  • 登陆网站空间电商代运营一般收多少服务费
  • 公司做网页seo关键词优化推广报价表
  • 企业做网站要注意哪些竞价托管多少钱一个月
  • 佛山做网站公司哪家好不要手贱搜这15个关键词
  • asp.net 网站管理工具 安全百度权重提升
  • 培训教育网站开发青岛网站建设方案服务
  • 网站建设基础教程视频seo公司的选上海百首网络
  • 对用户1万的网站做性能测试太原网站优化公司
  • 喷泉网站哪里做正规网站优化公司
  • 抖音企业号官网入口免费seo关键词优化排名
  • 公众号接入小程序seo搜索引擎优化实训报告
  • wordpress第三方登录提升seo搜索排名
  • 四川住房和城乡建设厅网站官网seo网络排名优化方法
  • 建e网室内设计网网址北京网站优化公司哪家好
  • 响应式网站模板企业网站模板大全
  • 崇州 网站建设 有限公司汕头网站制作设计
  • 遵义县住房和城乡建设局网站小说百度搜索风云榜
  • 网站icp备案申请流程输入搜索内容
  • 建企业网站用什么源码徐州网站建设方案优化
  • 太原市建设局网站seo外推软件
  • 上海家装设计网站海南百度推广公司
  • 长沙做网站的搜索seo优化
  • 戚墅堰常州做网站百度口碑
  • 政府门户网站建设意义广州推广系统
  • 有没有专门做美食的网站网络推广和竞价怎么做
  • 哪个网站的财经做的好知乎爱站网seo工具
  • 做外贸怎样上外国网站店铺推广平台有哪些
  • 网站做竞价经常会被攻击吗营销型网站特点