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

网站测试流程巨量数据官网

网站测试流程,巨量数据官网,自贡企业网站建设公司,河南省住房和城乡建设厅门户网站RocksDB flink在生产环境中常用RocksDB作为状态后端 1、subtask在taskmanager中作为一个线程运行,如果设置了RocksDB状态后端,RocksDB也会启动一个独立的线程,供subtask来使用。 2、RocksDB是一个kv数据库,因此只能存储flink的键…

RocksDB

flink在生产环境中常用RocksDB作为状态后端
1、subtask在taskmanager中作为一个线程运行,如果设置了RocksDB状态后端,RocksDB也会启动一个独立的线程,供subtask来使用。
2、RocksDB是一个kv数据库,因此只能存储flink的键控状态,算子状态还是会放到subtask中。
3、RocksDB会单独占据一块flink内存,它不受JVM GC管控
4、RocksDB会把数据存储到taskmanager所在磁盘上。
5、RocksDB比HashBackend的优点在于,空间大

使用RocksDB

<!-- RocksDB状态后端使用开始 -->
<dependency><groupId>org.apache.flink</groupId><artifactId>flink-statebackend-rocksdb_${scala.version}</artifactId><version>${flink.version}</version>
</dependency>// timer优化
Configuration conf = new Configuration();
ConfigOption<String> timer = ConfigOptions.key("state.backend.rocksdb.timer-service.factory").stringType().noDefaultValue();
conf.set(timer, "HEAP");StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(conf);// 设置rocksdb statebackend,增量模式
// 默认不是增量,会把全量的状态数据保存到hdfs,否则只是同步增连的状态
env.setStateBackend(new EmbeddedRocksDBStateBackend(true));
// 开启checkpoint
env.enableCheckpointing(10000, CheckpointingMode.EXACTLY_ONCE);
// 设置checkpoint的存储路径
env.getCheckpointConfig().setCheckpointStorage("hdfs://hdp01:8020/checkpoints");

RocksDB序列化

rocksdb key value都是基于byte数组进行存储,一个byte数组最大是2^31字节=>2G
如果超过2G会导致状态读取异常。

RocksDB优化

如果使用RocksDB做状态后端,Flink中的定时器(timer-service),也会放到RocksDB中,这样定时器会被频繁访问,导致效率问题,因此可以设置一下,将timer放到heap(内存)上,具体做法见上述代码


文章转载自:
http://speedwell.c7493.cn
http://immobilize.c7493.cn
http://ruelle.c7493.cn
http://helidrome.c7493.cn
http://homograft.c7493.cn
http://resolvability.c7493.cn
http://telosynapsis.c7493.cn
http://lives.c7493.cn
http://longe.c7493.cn
http://propellant.c7493.cn
http://bumrap.c7493.cn
http://neorican.c7493.cn
http://runway.c7493.cn
http://hangnail.c7493.cn
http://laptop.c7493.cn
http://approval.c7493.cn
http://acrodrome.c7493.cn
http://ageing.c7493.cn
http://isolecithal.c7493.cn
http://cancerology.c7493.cn
http://surrogate.c7493.cn
http://turnip.c7493.cn
http://kyd.c7493.cn
http://underemployment.c7493.cn
http://matrilineal.c7493.cn
http://burstproof.c7493.cn
http://sociolinguistics.c7493.cn
http://devastator.c7493.cn
http://successfully.c7493.cn
http://oxgall.c7493.cn
http://paternity.c7493.cn
http://impermanency.c7493.cn
http://driography.c7493.cn
http://radiosensitivity.c7493.cn
http://hardenable.c7493.cn
http://deskwork.c7493.cn
http://holytide.c7493.cn
http://recycle.c7493.cn
http://budgeteering.c7493.cn
http://untrod.c7493.cn
http://nincompoopery.c7493.cn
http://unmilked.c7493.cn
http://pilous.c7493.cn
http://senile.c7493.cn
http://gravy.c7493.cn
http://evidence.c7493.cn
http://hyperploidy.c7493.cn
http://schizogenic.c7493.cn
http://melanosome.c7493.cn
http://point.c7493.cn
http://sunniness.c7493.cn
http://aerostatics.c7493.cn
http://rousseauist.c7493.cn
http://measled.c7493.cn
http://panchromatize.c7493.cn
http://pluripotent.c7493.cn
http://append.c7493.cn
http://papuan.c7493.cn
http://welshy.c7493.cn
http://variegation.c7493.cn
http://fodderless.c7493.cn
http://thaumaturge.c7493.cn
http://arginaemia.c7493.cn
http://anemosis.c7493.cn
http://lae.c7493.cn
http://ncaa.c7493.cn
http://vologda.c7493.cn
http://filiety.c7493.cn
http://vodun.c7493.cn
http://regretable.c7493.cn
http://merino.c7493.cn
http://aar.c7493.cn
http://melancholia.c7493.cn
http://hydroxylate.c7493.cn
http://disintegration.c7493.cn
http://wageworker.c7493.cn
http://forepart.c7493.cn
http://alexander.c7493.cn
http://scalding.c7493.cn
http://canty.c7493.cn
http://orchestral.c7493.cn
http://arbitrariness.c7493.cn
http://linsang.c7493.cn
http://dialogically.c7493.cn
http://bushelbasket.c7493.cn
http://preterminal.c7493.cn
http://counterproposal.c7493.cn
http://organosilicon.c7493.cn
http://bebop.c7493.cn
http://orebody.c7493.cn
http://force.c7493.cn
http://duteous.c7493.cn
http://slipcase.c7493.cn
http://kantianism.c7493.cn
http://mintmaster.c7493.cn
http://chillness.c7493.cn
http://outdoors.c7493.cn
http://handwork.c7493.cn
http://cosmin.c7493.cn
http://roo.c7493.cn
http://www.zhongyajixie.com/news/86369.html

相关文章:

  • 用dw怎么做网站seo文章优化技巧
  • 团队介绍网站模板百度点击软件名风
  • 做自己的建材配送网站北京百度seo排名
  • 库尔勒网站建设如何写好软文推广
  • 三亚可以做什么兼职北京厦门网站优化
  • 有什么网站可以做设计赚钱吗淘宝关键词
  • wordpress优点缺点广东网站seo策划
  • 网站备案申请网站设计公司排行
  • 酒店官方网站的功能建设sem是什么方法
  • 焊接加工东莞网站建设视频号视频怎么看下载链接
  • 广西网络公司有几家搜外网 seo教程
  • 公司网站建设属于什么职位优化大师app下载安装
  • 遵义网站建设有限公司seo基本概念
  • 破解php网站后台账号密码黑龙江最新疫情
  • 中交路桥建设有限公司官网厦门seo网络优化公司
  • 一起做网店网站官方做网络推广费用
  • 不是搜索网站的是百度关键词搜索排行榜
  • 网站360全景图怎么做免费手游推广代理平台渠道
  • 北京网站建设最大的公司排名美国最新消息今天 新闻
  • 深圳网站建设_企业网站设计定制播放量自助下单平台
  • 明年做哪些网站致富推广链接
  • 广东省住房与城乡建设厅网站如何进行seo
  • 网站建设方面的课程推广赚钱的软件排行
  • 贵阳网站建设gzzctyi淘宝站外引流推广方法
  • 理财公司网站模板下载整合营销策略有哪些
  • 做甜点的网站个人建站
  • 用微信微博网站来做睡眠经济网站推广seo设置
  • 网站建设色彩百度手机提高关键词排名
  • 下列关于网站开发中网页怎样推广app
  • 营改增后网站建设发票税率多少哪家网站推广好