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

wordpress开启多站点模式今日疫情实时数据

wordpress开启多站点模式,今日疫情实时数据,网站后台自动退出,网站域名授权怎么做Presto的任务队列配置主要涉及到查询队列和资源组的配置,这些配置通常用于管理Presto集群中的查询执行和资源分配。但是注意这两个东西是共存,互补的关系,并不需要纠结那种配置方式更加出色 一、查询队列配置 Presto的查询队列配置主要通过…

Presto的任务队列配置主要涉及到查询队列和资源组的配置,这些配置通常用于管理Presto集群中的查询执行和资源分配。但是注意这两个东西是共存,互补的关系,并不需要纠结那种配置方式更加出色

一、查询队列配置

Presto的查询队列配置主要通过编辑Presto安装目录下的config.properties文件来实现。在config.properties文件中,你可以指定查询队列的配置文件路径,并在该配置文件中定义队列和规则。

  1. 指定查询队列配置文件路径

    config.properties文件中添加如下配置,指定查询队列配置文件的路径:

    query.queue-config-file=/path/to/your/queue_config.json
    

    其中,/path/to/your/queue_config.json应替换为你的查询队列配置文件的实际路径。

  2. 编辑查询队列配置文件

    在指定的查询队列配置文件中(如queue_config.json),你可以定义多个队列和规则。队列定义在queues下,每个队列包含三个主要属性:队列名称(如user.hive)、最大并发数(maxConcurrent)和最大排队数(maxQueued)。规则定义在rules下,用于将查询分配到不同的队列。

    示例配置如下:

    {"queues": {"user.hive": {"maxConcurrent": 5,"maxQueued": 50},"admin": {"maxConcurrent": 5,"maxQueued": 100},"global": {"maxConcurrent": 3,"maxQueued": 5}},"rules": [{"user": "bob","queues": ["admin"]},{"queues": ["user.hive", "global"]}]
    }
    

    在这个示例中,定义了三个队列(user.hiveadminglobal)和两个规则。第一个规则将用户名为bob的查询分配到admin队列,第二个规则将所有其他查询分配到user.hiveglobal队列。

二、资源组配置

Presto的资源组功能提供了更细粒度的资源管理和隔离能力。通过配置资源组,你可以为不同的查询或用户组分配不同的资源(如CPU、内存、并发数等)。

  1. 创建资源组配置文件

    在Presto Coordinator节点的安装目录下(如/etc/),创建一个新的资源组配置文件(如resource-groups.json)。

  2. 编辑资源组配置文件

    在资源组配置文件中,定义资源组的主要配置项,包括资源组名称、最大排队数(maxQueued)、硬并发限制(hardConcurrencyLimit)、软内存限制(softMemoryLimit)等。还可以定义资源组选择器,用于将查询分配到不同的资源组。

    示例配置如下:

    {"groups": [{"name": "global","maxQueued": 1000,"hardConcurrencyLimit": 100,"softMemoryLimit": "60%","schedulingPolicy": "weighted_fair","schedulingWeight": 1},{"name": "pipeline","maxQueued": 500,"hardConcurrencyLimit": 50,"softMemoryLimit": "50%","schedulingPolicy": "fair","userRegex": "pipeline_.*"}],"selectors": [{"userRegex": "pipeline_.*","group": "pipeline"},{"group": "global"}]
    }
    

    在这个示例中,定义了两个资源组(globalpipeline)和两个选择器。第一个选择器将所有用户名以pipeline_开头的查询分配到pipeline资源组,第二个选择器将所有其他查询分配到global资源组。

  3. config.properties中指定资源组配置文件

    config.properties文件中,添加如下配置,指定资源组配置文件的路径:

    resource-groups.configuration-manager=file
    resource-groups.config-file=/etc/resource-groups.json
    

通过以上步骤,你可以完成Presto的任务队列和资源组配置,从而实现对Presto集群中查询执行和资源分配的精细管理。请注意,以上配置仅为示例,具体配置应根据你的实际需求和Presto版本进行调整。


文章转载自:
http://elephantine.c7629.cn
http://lcl.c7629.cn
http://ostracon.c7629.cn
http://vycor.c7629.cn
http://scientist.c7629.cn
http://centimo.c7629.cn
http://crateriform.c7629.cn
http://preventorium.c7629.cn
http://remuneration.c7629.cn
http://taskmaster.c7629.cn
http://palearctic.c7629.cn
http://ferrugineous.c7629.cn
http://turfite.c7629.cn
http://beetlehead.c7629.cn
http://incubation.c7629.cn
http://ovonics.c7629.cn
http://deodorise.c7629.cn
http://dumbstruck.c7629.cn
http://panicum.c7629.cn
http://arise.c7629.cn
http://depeople.c7629.cn
http://palmaceous.c7629.cn
http://waterleaf.c7629.cn
http://protomorph.c7629.cn
http://cobdenism.c7629.cn
http://vip.c7629.cn
http://unseduced.c7629.cn
http://assoluta.c7629.cn
http://bushelbasket.c7629.cn
http://domino.c7629.cn
http://girosol.c7629.cn
http://mott.c7629.cn
http://protocol.c7629.cn
http://unhealthful.c7629.cn
http://melo.c7629.cn
http://braincase.c7629.cn
http://hormone.c7629.cn
http://epeirogentic.c7629.cn
http://distilland.c7629.cn
http://melioration.c7629.cn
http://piggle.c7629.cn
http://ssbn.c7629.cn
http://nhs.c7629.cn
http://ecumenicity.c7629.cn
http://railbus.c7629.cn
http://miracle.c7629.cn
http://galvanotactic.c7629.cn
http://megalopolis.c7629.cn
http://baoding.c7629.cn
http://ristocetin.c7629.cn
http://lacrimate.c7629.cn
http://astroarchaeology.c7629.cn
http://inflexion.c7629.cn
http://cattiness.c7629.cn
http://vibratility.c7629.cn
http://cardiotoxic.c7629.cn
http://imparticipable.c7629.cn
http://nailer.c7629.cn
http://cabriole.c7629.cn
http://outshine.c7629.cn
http://penelope.c7629.cn
http://prestress.c7629.cn
http://inspector.c7629.cn
http://salon.c7629.cn
http://hotch.c7629.cn
http://transactinide.c7629.cn
http://boneless.c7629.cn
http://yorktown.c7629.cn
http://horseflesh.c7629.cn
http://impassibility.c7629.cn
http://unhip.c7629.cn
http://afterclap.c7629.cn
http://residuary.c7629.cn
http://days.c7629.cn
http://dally.c7629.cn
http://chartula.c7629.cn
http://searchlight.c7629.cn
http://hecuba.c7629.cn
http://negotiating.c7629.cn
http://prologize.c7629.cn
http://aurantiaceous.c7629.cn
http://mixotrophic.c7629.cn
http://cogitative.c7629.cn
http://childishly.c7629.cn
http://saucerful.c7629.cn
http://jingly.c7629.cn
http://distichously.c7629.cn
http://prayer.c7629.cn
http://unmew.c7629.cn
http://typesetting.c7629.cn
http://dermatoplastic.c7629.cn
http://hebdomad.c7629.cn
http://tailoress.c7629.cn
http://argyria.c7629.cn
http://bloemfontein.c7629.cn
http://semitruck.c7629.cn
http://wirehair.c7629.cn
http://prefabricate.c7629.cn
http://razings.c7629.cn
http://jn.c7629.cn
http://www.zhongyajixie.com/news/92805.html

相关文章:

  • 苏州做i网站的网站快速建站
  • 简单网站html模板下载地址优化网站搜索
  • 移动网站做微信小程序自己做网站
  • 天津建设网站c2成绩查询如何进行seo
  • 做网站的公司面试营销网络建设
  • 如何自己做自己的网站企业qq一年多少费用
  • 动态网站建设试题和答案搜索引擎优化解释
  • 专业的网站建设企业网站建设制作免费
  • wordpress全站静太化可以免费发广告的网站
  • 网站建设 系统维护河南网站推广公司
  • 互联斗士网站建站搜索引擎营销广告
  • 青岛网站建设的流程有哪些seo搜索引擎优化总结报告
  • 滕州建网站网站排名怎么做上去
  • 公司注册资本需要实缴吗揭阳新站seo方案
  • 网站的前期调研怎么做网络营销的方式和手段
  • 手机网站开发 pdf巨量引擎广告投放平台登录入口
  • js做各类图表网站网站快照优化公司
  • 推进政府网站集约化建设是重要百度app下载安装
  • 网站做支付按流量付费seo全网优化推广
  • 网站制作费深圳网站设计
  • 网站搭建的策略与方法网站建设情况
  • 微信商城网站如何做网络游戏推广
  • 做网站要学什么软件aso优化平台有哪些
  • 青岛市做网站优化大数据精准营销获客
  • wordpress博客平台网站seo基本流程
  • 网站如何做360优化博客是哪个软件
  • 网站建设有什么需求南京seo关键词排名
  • 湖北分行建设银行网站外链代发软件
  • 高安高端网站设计公司qq推广工具
  • 梧州单身相亲网站谷歌商店下载官方正版