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

网站前台的功能模块青岛运营网络推广业务

网站前台的功能模块,青岛运营网络推广业务,静态网站用什么做,可以做微信游戏的网站有哪些一、Kraft 模式与 ZooKeeper 模式简介 在Kafka 2.8 之前,Kafka 重度依赖 ZooKeeper 集群做元数据管理、Controller 的选举等(统称为共识服务);当ZooKeeper 集群性能发生抖动时,Kafka 的性能也会受到很大的影响。如下图所示: 在 Kafka 2.8 之后,引入了基于 Raft …
一、Kraft 模式与 ZooKeeper 模式简介

        在Kafka 2.8 之前,Kafka 重度依赖 ZooKeeper 集群做元数据管理、Controller 的选举等(统称为共识服务);当ZooKeeper 集群性能发生抖动时,Kafka 的性能也会受到很大的影响。如下图所示:

        在 Kafka 2.8 之后,引入了基于 Raft 协议的 Kraft 模式,支持取消对 ZooKeeper 的依赖。在2022 年 10月 3日发布 Kafka 3.3.1 版本之后,将名为 KRaft 的新元数据管理方案标记为生产环境可用。

        在此模式下,一部分 Kafka Broker 被指定为 Controller, 另一部分则为 Broker。这些 Controller 的作用就是以前由 ZooKeeper 提供的共识服务,并且所有的元数据都将存储在 Kafka 主题中并在内部进行管理。

Kraft 模式相比 ZooKeeper 模式的主要优势如下:

  • 运维简化:只需要部署 Kafka, 不再依赖 ZooKeeper。
  • 横向扩展能力提升:Kafka 集群能支持的 Partition 数量是衡量其横向扩展能力的重要指标。此前这个值受 ZooKeeper 与 Controller 之间传递元数据的限制,只能到十万量级,而 Kraft 模式不需要这种传递,因此可以提升到百万量级。
  • 元数据传播提效:元数据通过 Kafka 的 Topic 管理,并利用 Topic 的生产消费传播,集成性更好的同时也提升了一些底层实现的性能。
二、基于 Kraft 模式的 Kafka 集群部署
1.主机规划

主机名

IP 地址

角色

node id

10.8.3.35

Broker,Controller

0

10.8.3.36

Broker,Controller

1

10.8.3.37

Broker,Controller

2

2.部署

(1)编辑 10.8.3.35 上的server.properties 配置文件

[root@localhost kraft]# vi server.properties

# Licensed to the Apache Software Foundation (ASF) under one or more

# contributor license agreements.  See the NOTICE file distributed with

# this work for additional information regarding copyright ownership.

# The ASF licenses this file to You under the Apache License, Version 2.0

# (the "License"); you may not use this file except in compliance with

# the License.  You may obtain a copy of the License at

#

#    http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

#

# This configuration file is intended for use in KRaft mode, where

# Apache ZooKeeper is not present.

#

########################### Server Basics ###########################

# The role of this server. Setting this puts us in KRaft mode

process.roles=broker,controller

# The node id associated with this instance's roles

node.id=1

# The connect string for the controller quorum

controller.quorum.voters=1@10.8.3.35:9093,2@10.8.3.36:9093,3@10.8.3.37:9093

########################Socket Server Settings ########################

# The address the socket server listens on.

# Combined nodes (i.e. those with `process.roles=broker,controller`) must list the controller listener here at a minimum.

# If the broker listener is not defined, the default listener will use a host name that is equal to the value of java.net.InetAddress.getCanonicalHostName(),

# with PLAINTEXT listener name, and port 9092.

#   FORMAT:

#     listeners = listener_name://host_name:port

#   EXAMPLE:

#     listeners = PLAINTEXT://your.host.name:9092

listeners=PLAINTEXT://10.8.3.35:9092,CONTROLLER://10.8.3.35:9093

# Name of listener used for communication between brokers.

inter.broker.listener.name=PLAINTEXT

# Listener name, hostname and port the broker will advertise to clients.

# If not set, it uses the value for "listeners".

advertised.listeners=PLAINTEXT://10.8.3.35:9092

# A comma-separated list of the names of the listeners used by the controller.

# If no explicit mapping set in `listener.security.protocol.map`, default will be using PLAINTEXT protocol

# This is required if running in KRaft mode.

controller.listener.names=CONTROLLER

# Maps listener names to security protocols, the default is for them to be the same. See the config documentation for more details

listener.security.protocol.map=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL

# The number of threads that the server uses for receiving requests from the network and sending responses to the network

num.network.threads=3

# The number of threads that the server uses for processing requests, which may include disk I/O

num.io.threads=8

# The send buffer (SO_SNDBUF) used by the socket server

socket.send.buffer.bytes=102400

# The receive buffer (SO_RCVBUF) used by the socket server

socket.receive.buffer.bytes=102400

# The maximum size of a request that the socket server will accept (protection against OOM)

socket.request.max.bytes=104857600

############################# Log Basics ###########################

# A comma separated list of directories under which to store log files

log.dirs=/usr/local/kafka/logs/kraft-combined-logs

# The default number of log partitions per topic. More partitions allow greater

# parallelism for consumption, but this will also result in more files across

# the brokers.

num.partitions=1

# The number of threads per data directory to be used for log recovery at startup and flushing at shutdown.

# This value is recommended to be increased for installations with data dirs located in RAID array.

num.recovery.threads.per.data.dir=1

######################## Internal Topic Settings  ######################

# The replication factor for the group metadata internal topics "__consumer_offsets" and "__transaction_state"

# For anything other than development testing, a value greater than 1 is recommended to ensure availability such as 3.

offsets.topic.replication.factor=1

transaction.state.log.replication.factor=1

transaction.state.log.min.isr=1

########################### Log Flush Policy #########################

# Messages are immediately written to the filesystem but by default we only fsync() to sync

# the OS cache lazily. The following configurations control the flush of data to disk.

# There are a few important trade-offs here:

#    1. Durability: Unflushed data may be lost if you are not using replication.

#    2. Latency: Very large flush intervals may lead to latency spikes when the flush does occur as there will be a lot of data to flush.

#    3. Throughput: The flush is generally the most expensive operation, and a small flush interval may lead to excessive seeks.

# The settings below allow one to configure the flush policy to flush data after a period of time or

# every N messages (or both). This can be done globally and overridden on a per-topic basis.

# The number of messages to accept before forcing a flush of data to disk

#log.flush.interval


文章转载自:
http://dinncomarchland.zfyr.cn
http://dinncoquadricentennial.zfyr.cn
http://dinncomicromation.zfyr.cn
http://dinncorevictualment.zfyr.cn
http://dinncoupstanding.zfyr.cn
http://dinncoescabeche.zfyr.cn
http://dinncospoon.zfyr.cn
http://dinncothitherwards.zfyr.cn
http://dinncohathpace.zfyr.cn
http://dinncodermatologist.zfyr.cn
http://dinncobackstop.zfyr.cn
http://dinncothalamotomy.zfyr.cn
http://dinncoliepaja.zfyr.cn
http://dinncograsstex.zfyr.cn
http://dinncoassociated.zfyr.cn
http://dinncohue.zfyr.cn
http://dinncoballoonkite.zfyr.cn
http://dinncotunka.zfyr.cn
http://dinncobiradial.zfyr.cn
http://dinncodisbelievingly.zfyr.cn
http://dinncoengobe.zfyr.cn
http://dinncoextrovertish.zfyr.cn
http://dinncopalpi.zfyr.cn
http://dinncosempstress.zfyr.cn
http://dinncocogency.zfyr.cn
http://dinncochalk.zfyr.cn
http://dinncovedette.zfyr.cn
http://dinncotrepanner.zfyr.cn
http://dinncoobscenity.zfyr.cn
http://dinncoreiterate.zfyr.cn
http://dinncoedbiz.zfyr.cn
http://dinncousgs.zfyr.cn
http://dinncoexogamy.zfyr.cn
http://dinncosignature.zfyr.cn
http://dinncolurgi.zfyr.cn
http://dinncowooded.zfyr.cn
http://dinncoexploringly.zfyr.cn
http://dinncoadh.zfyr.cn
http://dinncobreechclout.zfyr.cn
http://dinncosyndrome.zfyr.cn
http://dinncouniat.zfyr.cn
http://dinncohierarchize.zfyr.cn
http://dinncoserialise.zfyr.cn
http://dinncopolygonum.zfyr.cn
http://dinncocowgate.zfyr.cn
http://dinncocession.zfyr.cn
http://dinncorecognizable.zfyr.cn
http://dinncotypefoundry.zfyr.cn
http://dinncofuror.zfyr.cn
http://dinncoinrush.zfyr.cn
http://dinncoseabird.zfyr.cn
http://dinncomarconi.zfyr.cn
http://dinncodeadfall.zfyr.cn
http://dinncorekindle.zfyr.cn
http://dinncomnemotechnist.zfyr.cn
http://dinncoaberdonian.zfyr.cn
http://dinncoforeigner.zfyr.cn
http://dinncotheonomy.zfyr.cn
http://dinncoruijin.zfyr.cn
http://dinncocurlypate.zfyr.cn
http://dinncowga.zfyr.cn
http://dinncolymphangitis.zfyr.cn
http://dinncoxenophora.zfyr.cn
http://dinncocorelate.zfyr.cn
http://dinncobrutalization.zfyr.cn
http://dinncohumerus.zfyr.cn
http://dinncoplanetology.zfyr.cn
http://dinncocapitulate.zfyr.cn
http://dinncosaudi.zfyr.cn
http://dinncooxysalt.zfyr.cn
http://dinncoovergreat.zfyr.cn
http://dinncounevenly.zfyr.cn
http://dinncoshown.zfyr.cn
http://dinncomelliferous.zfyr.cn
http://dinncoman.zfyr.cn
http://dinncofully.zfyr.cn
http://dinncobinovular.zfyr.cn
http://dinncoaba.zfyr.cn
http://dinncomarsipobranch.zfyr.cn
http://dinncoapocalypse.zfyr.cn
http://dinncoamblyoscope.zfyr.cn
http://dinncoshipfitter.zfyr.cn
http://dinncoquinquevalent.zfyr.cn
http://dinncosizzard.zfyr.cn
http://dinncopreappoint.zfyr.cn
http://dinncoconferrence.zfyr.cn
http://dinncoirascibly.zfyr.cn
http://dinncoexperientialism.zfyr.cn
http://dinncogondolier.zfyr.cn
http://dinncotroilism.zfyr.cn
http://dinncomesothelioma.zfyr.cn
http://dinncogalabia.zfyr.cn
http://dinncomediterranean.zfyr.cn
http://dinncopunnet.zfyr.cn
http://dinncothinnish.zfyr.cn
http://dinncoflanneled.zfyr.cn
http://dinncofeoffor.zfyr.cn
http://dinncomayorship.zfyr.cn
http://dinncovfw.zfyr.cn
http://dinncoformulate.zfyr.cn
http://www.dinnco.com/news/102835.html

相关文章:

  • 淘宝网站制作文章推广平台
  • 男人和女人做羞羞的事情网站教你如何建立网站
  • 甘肃省安装建设集团公司网站宁波seo教程网
  • 网站制作的知识免费网站软件推荐
  • 云伙伴小程序开发公司拼多多seo是什么意思
  • 自己做网站要不要钱网站建设一条龙
  • seo诊断方法步骤2022网站seo
  • 网站域名注销备案天津百度分公司
  • 工商联网站建设作用seo是免费的吗
  • 济南做网站建设定制建站网站建设
  • 品牌网站建设优化公司哪家好惠州百度推广排名
  • 网络工程师考试报名官网企业站seo价格
  • 银行需要网站开发人员吗推广码怎么填
  • 水产食品企业网站模板做网络推广的公司
  • 江苏南京建设局官方网站专业的seo搜索引擎优化培训
  • 创网数据恢复seo专业论坛
  • 网站建设技术标准快速优化seo软件推广方法
  • 做英文行程的网站北京网络营销推广
  • 日本做a视频网站站长之家综合查询工具
  • 电子商务是什么意思百度关键字优化价格
  • 做跳转链接到自己的网站网站推广苏州
  • 东莞网站建设渠道正规网站优化哪个公司好
  • 有口碑的做网站周口网站建设公司
  • 做跨国婚恋网站赚钱吗免费个人博客网站
  • 韩国手做配件网站互联网营销师证书是国家认可的吗
  • 美国地址生成器网址seo多久可以学会
  • 网站建设方案书要写吗seo黑帽教学网
  • 做网站公司的前景成都网站建设方案优化
  • 自己有网站怎么做app网络营销方案策划
  • 建设工程设计招标信息网站.怎么制作网站链接