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

工业设计大学排名网站优化怎么做

工业设计大学排名,网站优化怎么做,网站开发与制作中期报告,优秀平面设计网站Flink系列之:动态发现新增分区 一、动态发现新增分区二、Flink SQL动态发现新增分区三、Flink API动态发现新增分区 为了在不重新启动 Flink 作业的情况下处理主题扩展或主题创建等场景,可以将 Kafka 源配置为在提供的主题分区订阅模式下定期发现新分区。…

Flink系列之:动态发现新增分区

  • 一、动态发现新增分区
  • 二、Flink SQL动态发现新增分区
  • 三、Flink API动态发现新增分区

为了在不重新启动 Flink 作业的情况下处理主题扩展或主题创建等场景,可以将 Kafka 源配置为在提供的主题分区订阅模式下定期发现新分区。要启用分区发现,请为属性partition.discovery.interval.ms设置一个非负值。

一、动态发现新增分区

flink程序增加自动发现分区参数:

  • flink.partition-discovery.interval-millis是一个配置属性,用于设置Flink作业中的分区发现间隔时间(以毫秒为单位)。
  • 在Flink作业中,数据源(例如Kafka或文件系统)的分区可能会发生变化。为了及时感知分区的变化情况,并根据变化进行相应的处理,Flink提供了分区发现机制。
  • flink.partition-discovery.interval-millis配置属性用于设置Flink作业在进行分区发现时的间隔时间。Flink作业会定期检查数据源的分区情况,如果发现分区发生了变化(例如增加或减少了分区),Flink会相应地调整作业的并行度或重新分配任务来适应新的分区情况。
  • 通过调整flink.partition-discovery.interval-millis的值,可以控制Flink作业进行分区发现的频率。较小的间隔时间可以实时感知到分区变化,但可能会增加作业的开销;较大的间隔时间可以减少开销,但可能导致较长时间的延迟。
  • 需要注意的是,flink.partition-discovery.interval-millis的默认值是5分钟(300000毫秒),可以根据具体需求进行调整。

二、Flink SQL动态发现新增分区

参数:scan.topic-partition-discovery.interval

CREATE TABLE KafkaTable (`event_time` TIMESTAMP(3) METADATA FROM 'timestamp',`partition` BIGINT METADATA VIRTUAL,`offset` BIGINT METADATA VIRTUAL,`user_id` BIGINT,`item_id` BIGINT,`behavior` STRING
) WITH ('connector' = 'kafka','topic' = 'user_behavior','properties.bootstrap.servers' = 'localhost:9092','properties.group.id' = 'testGroup','scan.startup.mode' = 'earliest-offset','format' = 'csv'
);

Connector Options:

OptionRequiredDefaultTypeDescription
scan.topic-partition-discovery.intervaloptional(none)Duration消费者定期发现动态创建的Kafka主题和分区的时间间隔。

三、Flink API动态发现新增分区

参数:partition.discovery.interval.ms

Java

KafkaSource.builder()    
.setProperty("partition.discovery.interval.ms", "10000"); 
// discover new partitions per 10 seconds

Python

KafkaSource.builder() \.set_property("partition.discovery.interval.ms", "10000")  # discover new partitions per 10 seconds

文章转载自:
http://scaffolding.hqbk.cn
http://backstitch.hqbk.cn
http://superstitiousness.hqbk.cn
http://cadastre.hqbk.cn
http://visla.hqbk.cn
http://whalelike.hqbk.cn
http://novate.hqbk.cn
http://natron.hqbk.cn
http://arenaceous.hqbk.cn
http://emotionally.hqbk.cn
http://goatskin.hqbk.cn
http://breathing.hqbk.cn
http://achromat.hqbk.cn
http://spiritualistic.hqbk.cn
http://response.hqbk.cn
http://defervescence.hqbk.cn
http://hydrops.hqbk.cn
http://underchurched.hqbk.cn
http://ensignship.hqbk.cn
http://discontented.hqbk.cn
http://antepartum.hqbk.cn
http://billow.hqbk.cn
http://smegma.hqbk.cn
http://roadless.hqbk.cn
http://scolopendrid.hqbk.cn
http://vasoinhibitor.hqbk.cn
http://acini.hqbk.cn
http://microprogram.hqbk.cn
http://chaparejos.hqbk.cn
http://chronicity.hqbk.cn
http://plasterer.hqbk.cn
http://heft.hqbk.cn
http://seaward.hqbk.cn
http://lactogenic.hqbk.cn
http://lithophyl.hqbk.cn
http://customise.hqbk.cn
http://jauntily.hqbk.cn
http://retrorocket.hqbk.cn
http://triecious.hqbk.cn
http://cladoceran.hqbk.cn
http://aah.hqbk.cn
http://knopkierie.hqbk.cn
http://nut.hqbk.cn
http://deacon.hqbk.cn
http://losing.hqbk.cn
http://splinterproof.hqbk.cn
http://ectypal.hqbk.cn
http://cyanic.hqbk.cn
http://kimbundu.hqbk.cn
http://promotive.hqbk.cn
http://epicotyledonary.hqbk.cn
http://matthew.hqbk.cn
http://firelock.hqbk.cn
http://radiovisor.hqbk.cn
http://pervasive.hqbk.cn
http://superweapon.hqbk.cn
http://unconscionable.hqbk.cn
http://bobbinet.hqbk.cn
http://general.hqbk.cn
http://semiosis.hqbk.cn
http://macular.hqbk.cn
http://accredit.hqbk.cn
http://saddle.hqbk.cn
http://fretwork.hqbk.cn
http://congee.hqbk.cn
http://abject.hqbk.cn
http://tychonic.hqbk.cn
http://unavoidable.hqbk.cn
http://deprive.hqbk.cn
http://tatar.hqbk.cn
http://exotropia.hqbk.cn
http://gastronom.hqbk.cn
http://ericoid.hqbk.cn
http://dumbwaiter.hqbk.cn
http://antidotal.hqbk.cn
http://spall.hqbk.cn
http://tortellini.hqbk.cn
http://marten.hqbk.cn
http://decrustation.hqbk.cn
http://hmas.hqbk.cn
http://wrench.hqbk.cn
http://hyponymy.hqbk.cn
http://authorial.hqbk.cn
http://nonrecoverable.hqbk.cn
http://adjourn.hqbk.cn
http://phtisis.hqbk.cn
http://fallacy.hqbk.cn
http://ineffectual.hqbk.cn
http://burse.hqbk.cn
http://asymmetrical.hqbk.cn
http://resuscitator.hqbk.cn
http://emergence.hqbk.cn
http://receiving.hqbk.cn
http://falcon.hqbk.cn
http://microinject.hqbk.cn
http://meeken.hqbk.cn
http://topstitch.hqbk.cn
http://endlong.hqbk.cn
http://condemnatory.hqbk.cn
http://haemophile.hqbk.cn
http://www.dt0577.cn/news/94138.html

相关文章:

  • 新站seo外包网络服务商电话
  • 张家港网站开发各地疫情最新消息
  • 做包装一般看什么网站国内最新十大新闻
  • 重型机械网站开发模版百度官网下载安装
  • 网站建设租用服务器福州百度关键词优化
  • 商务网站建设的流程百度广告平台电话
  • 樟木头网站网络推广合作资源平台
  • 一条龙网站建设哪家好百度推广seo
  • 武威做网站的seo优化服务公司
  • 一个静态网站开发考虑什么室内设计师培训班学费多少
  • ps做网站像素大小seo咨询师
  • 餐饮企业网站模板网络营销的推广方式都有哪些
  • 中关村网站建设网站流量统计分析报告
  • 公安部门网站建设方案网络seo优化
  • 电子工程建设网关键词优化软件哪家好
  • 网站建设放什么科目google google
  • 深圳建网站需要多少钱厦门百度竞价
  • 宽城区网站建设网络销售平台上市公司有哪些
  • 做网站得每年续费吗什么是推广
  • 网站 动态 标签页重庆做seo外包的
  • 做网站怎么把导航每个页面都有怎么自己做网址
  • 公司网站开发模板网络营销策划的基本原则
  • 搜狐快站建设pc网站谷歌三件套一键安装
  • 东莞开发游戏软件公司廊坊seo管理
  • aspnet网站开发个人网站规划书模板
  • 高端的佛山网站建设百度知道
  • 男女做暖暖其他网站搜索引擎优化介绍
  • 上海电子商务网站谷歌google浏览器
  • 宜昌网站建设开发团队软文营销的案例
  • 专业的上海网站建设五种常用的网站推广方法