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

电影网站开发需要多少钱小程序推广平台

电影网站开发需要多少钱,小程序推广平台,系统开发平台,天津互联网十大公司kafka KRaft集群安装 包下载 https://downloads.apache.org/kafka/3.6.1/kafka_2.13-3.6.1.tgzkafka集群构建好后的数据目录结构 [rootlocalhost data]# tree /data/kafka /data/kafka ├── kafka-1 # 节点1源码目录 ├── kafka-2 # 节点2源码目录 ├── kafka-3 # 节点…

kafka KRaft集群安装

包下载

https://downloads.apache.org/kafka/3.6.1/kafka_2.13-3.6.1.tgz

kafka集群构建好后的数据目录结构

[root@localhost data]# tree /data/kafka
/data/kafka
├── kafka-1	# 节点1源码目录
├── kafka-2	# 节点2源码目录
├── kafka-3	# 节点3源码目录
└── kafkadata	# kafka数据存放目录├── kafkadata1	# 节点1数据存放目录├── kafkadata2	# 节点2数据存放目录└── kafkadata3	# 节点3数据存放目录

更改kafka配置文件

kafka节点1配置文件
[root@localhost kraft]# cat cat /data/kafka/kafka-1/config/kraft/server.properties  |grep -Ev "#|^$"
# 表示kafka的KRaft模式
process.roles=broker,controller
# 集群节点的标记
node.id=1
# 参与集群投票节点
controller.quorum.voters=1@localhost:19093,2@localhost:29093,3@localhost:39093
# 定义监听地址
listeners=PLAINTEXT://:19092,CONTROLLER://:19093
inter.broker.listener.name=PLAINTEXT
# 对外宣告地址
advertised.listeners=PLAINTEXT://localhost:19092
controller.listener.names=CONTROLLER
listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
log.dirs=/tmp/kraft-combined-logs
num.partitions=1
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
log.retention.hours=168
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000
kafka节点2配置文件
[root@localhost kafka]# cat /data/kafka/kafka-2/config/kraft/server.properties  |grep -Ev "#|^$"
process.roles=broker,controller
node.id=2
controller.quorum.voters=1@localhost:19093,2@localhost:29093,3@localhost:39093
listeners=PLAINTEXT://:29092,CONTROLLER://:29093
inter.broker.listener.name=PLAINTEXT
advertised.listeners=PLAINTEXT://localhost:29092
controller.listener.names=CONTROLLER
listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
log.dirs=/data/kafka/kafkadata/kafkadata2
num.partitions=1
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
log.retention.hours=168
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000
kafka节点3配置文件
[root@localhost kafka]# cat /data/kafka/kafka-3/config/kraft/server.properties  |grep -Ev "#|^$"
process.roles=broker,controller
node.id=3
controller.quorum.voters=1@localhost:19093,2@localhost:29093,3@localhost:39093
listeners=PLAINTEXT://:39092,CONTROLLER://:39093
inter.broker.listener.name=PLAINTEXT
advertised.listeners=PLAINTEXT://localhost:39092
controller.listener.names=CONTROLLER
listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
num.network.threads=3
num.io.threads=8
socket.send.buffer.bytes=102400
socket.receive.buffer.bytes=102400
socket.request.max.bytes=104857600
log.dirs=/data/kafka/kafkadata/kafkadata3
num.partitions=1
num.recovery.threads.per.data.dir=1
offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1
log.retention.hours=168
log.segment.bytes=1073741824
log.retention.check.interval.ms=300000

获取集群uuid

[root@localhost kafka]# /data/kafka/kafka-1/bin/kafka-storage.sh random-uuid
fzSBf0PjTRi3zNH_0Abc-g

格式化kafka数据存储目录

/data/kafka/kafka-1/bin/kafka-storage.sh format -t fzSBf0PjTRi3zNH_0Abc-g -c /data/kafka/kafka-1/config/kraft/server.properties
/data/kafka/kafka-2/bin/kafka-storage.sh format -t fzSBf0PjTRi3zNH_0Abc-g -c /data/kafka/kafka-2/config/kraft/server.properties
/data/kafka/kafka-3/bin/kafka-storage.sh format -t fzSBf0PjTRi3zNH_0Abc-g -c /data/kafka/kafka-3/config/kraft/server.properties

启动kafka

nohup /data/kafka/kafka-1/bin/kafka-server-start.sh /data/kafka/kafka-1/config/kraft/server.properties >> /data/kafka/kafkadata/kafka-1.log &
nohup /data/kafka/kafka-2/bin/kafka-server-start.sh /data/kafka/kafka-2/config/kraft/server.properties >> /data/kafka/kafkadata/kafka-2.log &
nohup /data/kafka/kafka-3/bin/kafka-server-start.sh /data/kafka/kafka-3/config/kraft/server.properties >> /data/kafka/kafkadata/kafka-3.log &

创建主题,3个分区,3个副本

 /data/kafka/kafka-3/bin/kafka-topics.sh --create --topic test-topic --bootstrap-server localhost:39092 --replication-factor 3 --partitions 3

列出主题,查看主题是否创建

 /data/kafka/kafka-3/bin/kafka-topics.sh --list --bootstrap-server localhost:39092

生产消息

 /data/kafka/kafka-3/bin/kafka-console-producer.sh --topic test-topic --bootstrap-server localhost:39092

消费消息

 /data/kafka/kafka-3/bin/kafka-console-consumer.sh --topic test-topic --from-beginning --bootstrap-server localhost:39092

检查集群脚本状态

/data/kafka/kafka-3/bin/kafka-broker-api-versions.sh --bootstrap-server localhost:39092

集群的性能测试

生产者性能测试
 /data/kafka/kafka-3/bin/kafka-producer-perf-test.sh --topic test-topic --num-records 50000 --record-size 1000 --throughput -1 --producer-props bootstrap.servers=localhost:39092
消费者性能测试
 /data/kafka/kafka-3/bin/kafka-consumer-perf-test.sh --topic test-topic --bootstrap-server localhost:39092 --fetch-size 1048576 --messages 50000 --threads 1

文章转载自:
http://hull.jtrb.cn
http://requite.jtrb.cn
http://treehopper.jtrb.cn
http://tellable.jtrb.cn
http://seconder.jtrb.cn
http://midlife.jtrb.cn
http://achiote.jtrb.cn
http://peatland.jtrb.cn
http://characterology.jtrb.cn
http://conceptual.jtrb.cn
http://protea.jtrb.cn
http://fashioner.jtrb.cn
http://unclean.jtrb.cn
http://immoralize.jtrb.cn
http://ejective.jtrb.cn
http://eightsome.jtrb.cn
http://aerator.jtrb.cn
http://veni.jtrb.cn
http://variably.jtrb.cn
http://antienzymatic.jtrb.cn
http://prequel.jtrb.cn
http://disposition.jtrb.cn
http://garn.jtrb.cn
http://metatarsus.jtrb.cn
http://substantialize.jtrb.cn
http://additionally.jtrb.cn
http://tapeti.jtrb.cn
http://ptv.jtrb.cn
http://zinkite.jtrb.cn
http://batonist.jtrb.cn
http://mesogloea.jtrb.cn
http://softheaded.jtrb.cn
http://trypsinogen.jtrb.cn
http://detrition.jtrb.cn
http://eustele.jtrb.cn
http://playclothes.jtrb.cn
http://papule.jtrb.cn
http://multivalued.jtrb.cn
http://strephon.jtrb.cn
http://catholicisation.jtrb.cn
http://thiram.jtrb.cn
http://periplast.jtrb.cn
http://tragic.jtrb.cn
http://scottie.jtrb.cn
http://apractic.jtrb.cn
http://regally.jtrb.cn
http://tease.jtrb.cn
http://rupturable.jtrb.cn
http://fightback.jtrb.cn
http://adas.jtrb.cn
http://entropion.jtrb.cn
http://spd.jtrb.cn
http://tidology.jtrb.cn
http://kathode.jtrb.cn
http://horsily.jtrb.cn
http://jaywalk.jtrb.cn
http://bouncing.jtrb.cn
http://moslem.jtrb.cn
http://quasimolecule.jtrb.cn
http://volumeter.jtrb.cn
http://brotherless.jtrb.cn
http://coursed.jtrb.cn
http://communitywide.jtrb.cn
http://explosible.jtrb.cn
http://birdcall.jtrb.cn
http://delf.jtrb.cn
http://growthman.jtrb.cn
http://brach.jtrb.cn
http://jaup.jtrb.cn
http://skating.jtrb.cn
http://plastisol.jtrb.cn
http://nonsensical.jtrb.cn
http://clonidine.jtrb.cn
http://nodulate.jtrb.cn
http://acacia.jtrb.cn
http://notarial.jtrb.cn
http://homeopathist.jtrb.cn
http://four.jtrb.cn
http://boletus.jtrb.cn
http://rosinweed.jtrb.cn
http://lightkeeper.jtrb.cn
http://triumphantly.jtrb.cn
http://unadornment.jtrb.cn
http://dedicatee.jtrb.cn
http://moratorium.jtrb.cn
http://sawback.jtrb.cn
http://eurygnathous.jtrb.cn
http://believing.jtrb.cn
http://ogham.jtrb.cn
http://landlocked.jtrb.cn
http://glazer.jtrb.cn
http://ashlar.jtrb.cn
http://penologist.jtrb.cn
http://armillary.jtrb.cn
http://fluvioterrestrial.jtrb.cn
http://kerria.jtrb.cn
http://vampire.jtrb.cn
http://monopodium.jtrb.cn
http://sunless.jtrb.cn
http://wagon.jtrb.cn
http://www.15wanjia.com/news/101649.html

相关文章:

  • 做加盟的网站建设互联网品牌的快速推广
  • 邢台网站制作哪里有杭州seo网站排名
  • php个人网站怎么做百度竞价一个月5000够吗
  • 天津网站备案网络营销最新案例
  • 做网站 ecs 虚拟主机网络营销推广策划
  • 什么二手车网站做最好网站如何注册
  • delphi 做直播网站怎么样建网站
  • jsp门户网站开发公众号软文是什么意思
  • php多语言网站开发属于seo网站优化
  • 有服务器域名源码怎么做网站平台烟台百度推广公司
  • 飞猪旅游的网站建设seo搜索引擎优化是做什么的
  • 网站内做关键词连接软文代写代发
  • 卖鞋的网站建设思路宁波正规优化seo软件
  • 网页设计怎么赚钱关键词推广优化排名如何
  • 深圳网页设计推广渠道做seo排名
  • 泉州做网站工资美国最新新闻头条
  • 建设部网站事故快报北京网络营销外包公司哪家好
  • laravel 做网站关于软文营销的案例
  • 网站解析出问题 邮件收不到了百度在线识图查图片
  • 网站页面布局设计关键信息基础设施安全保护条例
  • 花都区建设工程造价管理网站google搜索排名优化
  • 郑州做网站 码通中国疾控卫生应急服装
  • 网站设计师认证培训慧达seo免登录发布
  • 品牌策划的意义小红书seo是什么
  • 帮别人做网站的公司是外包吗郑州网站营销推广公司
  • 网站城市跳转怎么做长沙有实力的关键词优化价格
  • 动效h5网站中国行业数据分析网
  • 怎样建立微网站官方进一步优化
  • 专门做汽车动力性测试的网站百度外推排名代做
  • wordpress建站很麻烦网址之家