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

藁城网站建设北京百度总部电话

藁城网站建设,北京百度总部电话,江苏专业做网站,正邦设计创始人在发生紧急故障切换后,如果 ClusterSet 的各个部分之间存在事务集不同的风险,则必须保护集群不受写入流量或所有流量的影响。 如果发生网络分区,则有可能出现脑裂的情况,即实例失去同步,无法正确通信以定义同步状态。…

在发生紧急故障切换后,如果 ClusterSet 的各个部分之间存在事务集不同的风险,则必须保护集群不受写入流量或所有流量的影响。

如果发生网络分区,则有可能出现脑裂的情况,即实例失去同步,无法正确通信以定义同步状态。当 DBA 决定强制选择一个副本集群成为主集群时,产生多于一个主集群,可能会出现脑裂,从而导致脑裂问题。

在这种情况下,DBA 可以选择隔离原始主集群:

  • 写入流向。
  • 所有流量。

有三种隔离操作:
-<Cluster>.fenceWrites() : 停止对 ClusterSet 的主集群的写入流量。副本集群不接受写入,因此此操作对它们没有影响。
从 8.0.31 起,可以在 INVALIDATED 副本集群上使用。此外,如果在禁用 super_read_only 的副本集群上运行,它将启用它。

  • <Cluster>.unfenceWrites() : 恢复写入流量。此操作可以在以前使用 <Cluster>.fenceWrites() 操作阻止写入流量的集群上运行。
    无法在副本集群上使用 cluster.unfenceWrites()
  • <Cluster>.fenceAllTraffic() : 将集群与所有流量隔离。如果您使用 <Cluster>.fenceAllTraffic() 保护了一个集群免受所有流量的影响,则必须使用 MySQL Shell 命令 dba.rebootClusterFromCompleteOutage() 重新启动集群。

有关 dba.rebootClusterFromCompleteOutage() 的更多信息,请参阅 第 7.8.3 节 “从重大停机事故中重新启动集群” 。

fenceWrites()
在副本集群上执行 .fenceWrites() 返回报错:

ERROR: Unable to fence Cluster from write traffic: 
operation not permitted on REPLICA Clusters
Cluster.fenceWrites: The Cluster '<Cluster>' is a REPLICA Cluster 
of the ClusterSet '<ClusterSet>' (MYSQLSH 51616)

尽管您主要在属于 ClusterSet 的集群上使用隔离,但也可以使用 <Cluster>.fenceAllTraffic() 隔离独立集群。

  1. 要阻止主集群写入流量,请按如下方式使用 cluster.fenceWrites 命令:

    <Cluster>.fenceWrites()
    

    运行命令后:

    • 集群上禁用了自动 super_read_only 管理。
    • 在集群中的所有实例上都启用了 super_read_only
    • 所有应用程序都被阻止在集群上执行写入操作。
    cluster.fenceWrites()The Cluster 'primary' will be fenced from write traffic* Disabling automatic super_read_only management on the Cluster...* Enabling super_read_only on '127.0.0.1:3311'...* Enabling super_read_only on '127.0.0.1:3312'...* Enabling super_read_only on '127.0.0.1:3313'...NOTE: Applications will now be blocked from performing writes on Cluster 'primary'. Use <Cluster>.unfenceWrites() to resume writes if you are certain a split-brain is not in effect.Cluster successfully fenced from write traffic
    
  2. 要检查是否已将主集群与写入流量隔离,请使用 <cluster>.status 命令,如下所示:

          <Cluster>.clusterset.status()
    

    输出如下:

    clusterset.status(){"clusters": {"primary": {"clusterErrors": ["WARNING: Cluster is fenced from Write traffic. Use cluster.unfenceWrites() to unfence the Cluster."],"clusterRole": "PRIMARY","globalStatus": "OK_FENCED_WRITES","primary": null,"status": "FENCED_WRITES","statusText": "Cluster is fenced from Write Traffic."},"replica": {"clusterRole": "REPLICA","clusterSetReplicationStatus": "OK","globalStatus": "OK"}},"domainName": "primary","globalPrimaryInstance": null,"primaryCluster": "primary","status": "UNAVAILABLE","statusText": "Primary Cluster is fenced from write traffic."
    
  3. 要解除隔离集群并恢复到主集群的写入流量,请按如下方式使用 cluster.fenceWrites 命令:

    <Cluster>.unfenceWrites()
    

    主集群上的自动 super_read_only 管理已启用,主集群实例上的 super_read_only 状态已启用。

    cluster.unfenceWrites()The Cluster 'primary' will be unfenced from write traffic* Enabling automatic super_read_only management on the Cluster...* Disabling super_read_only on the primary '127.0.0.1:3311'...Cluster successfully unfenced from write traffic
    
  4. 要将集群与所有流量隔离,请使用 cluster.fenceAllTraffic 命令,如下所示:

    <Cluster>.fenceAllTraffic()
    

    super_read_only 状态在集群实例的主实例上启用。在集群中的所有实例上启用 offline_mode 之前:

    cluster.fenceAllTraffic()The Cluster 'primary' will be fenced from all traffic* Enabling super_read_only on the primary '127.0.0.1:3311'...* Enabling offline_mode on the primary '127.0.0.1:3311'...* Enabling offline_mode on '127.0.0.1:3312'...* Stopping Group Replication on '127.0.0.1:3312'...* Enabling offline_mode on '127.0.0.1:3313'...* Stopping Group Replication on '127.0.0.1:3313'...* Stopping Group Replication on the primary '127.0.0.1:3311'...Cluster successfully fenced from all traffic
    
  5. 要解除隔离集群的所有流量,请使用 MySQL Shell命令 dba.rebootClusterFromCompleteOut() 。恢复集群后,当被问及是否要将实例重新连接到集群时,可以通过选择 Y 来重新连接实例到集群:

    cluster = dba.rebootClusterFromCompleteOutage()Restoring the cluster 'primary' from complete outage...The instance '127.0.0.1:3312' was part of the cluster configuration.Would you like to rejoin it to the cluster? [y/N]: YThe instance '127.0.0.1:3313' was part of the cluster configuration.Would you like to rejoin it to the cluster? [y/N]: Y* Waiting for seed instance to become ONLINE...127.0.0.1:3311 was restored.Rejoining '127.0.0.1:3312' to the cluster.Rejoining instance '127.0.0.1:3312' to cluster 'primary'...The instance '127.0.0.1:3312' was successfully rejoined to the cluster.Rejoining '127.0.0.1:3313' to the cluster.Rejoining instance '127.0.0.1:3313' to cluster 'primary'...The instance '127.0.0.1:3313' was successfully rejoined to the cluster.The cluster was successfully rebooted.<Cluster:primary>
    

文章转载自:
http://hdd.wjrq.cn
http://gerundival.wjrq.cn
http://washeteria.wjrq.cn
http://generalship.wjrq.cn
http://madrepore.wjrq.cn
http://funerary.wjrq.cn
http://sapless.wjrq.cn
http://keratose.wjrq.cn
http://kite.wjrq.cn
http://ungues.wjrq.cn
http://mnemonic.wjrq.cn
http://dimple.wjrq.cn
http://nobeing.wjrq.cn
http://habitably.wjrq.cn
http://supralethal.wjrq.cn
http://doddery.wjrq.cn
http://umpteen.wjrq.cn
http://pukeko.wjrq.cn
http://provisioner.wjrq.cn
http://lauraldehyde.wjrq.cn
http://romancist.wjrq.cn
http://vulgate.wjrq.cn
http://expugnable.wjrq.cn
http://hogwild.wjrq.cn
http://netherward.wjrq.cn
http://oleandomycin.wjrq.cn
http://earlobe.wjrq.cn
http://bodysurf.wjrq.cn
http://cardoon.wjrq.cn
http://colaholic.wjrq.cn
http://junta.wjrq.cn
http://lookee.wjrq.cn
http://quaff.wjrq.cn
http://pom.wjrq.cn
http://celestite.wjrq.cn
http://pokeberry.wjrq.cn
http://clothesline.wjrq.cn
http://mintage.wjrq.cn
http://narwhal.wjrq.cn
http://morality.wjrq.cn
http://dollfaced.wjrq.cn
http://divinize.wjrq.cn
http://flour.wjrq.cn
http://pulpous.wjrq.cn
http://snapdragon.wjrq.cn
http://reoccupy.wjrq.cn
http://considerately.wjrq.cn
http://refract.wjrq.cn
http://center.wjrq.cn
http://unsaturate.wjrq.cn
http://organotropism.wjrq.cn
http://anteflexion.wjrq.cn
http://kiddywinky.wjrq.cn
http://draftsman.wjrq.cn
http://cephalosporin.wjrq.cn
http://dissave.wjrq.cn
http://trencher.wjrq.cn
http://antiparallel.wjrq.cn
http://diverting.wjrq.cn
http://dietetical.wjrq.cn
http://philosophist.wjrq.cn
http://amorously.wjrq.cn
http://swatter.wjrq.cn
http://unrighteous.wjrq.cn
http://woolpack.wjrq.cn
http://ritornello.wjrq.cn
http://paramagnetic.wjrq.cn
http://pitch.wjrq.cn
http://cirrocumulus.wjrq.cn
http://cushitic.wjrq.cn
http://mitraille.wjrq.cn
http://balsa.wjrq.cn
http://oleomargarine.wjrq.cn
http://factualism.wjrq.cn
http://chloritization.wjrq.cn
http://yamalka.wjrq.cn
http://charterage.wjrq.cn
http://electrotherapist.wjrq.cn
http://lymphatism.wjrq.cn
http://bushwalking.wjrq.cn
http://maximum.wjrq.cn
http://miserere.wjrq.cn
http://induct.wjrq.cn
http://trapunto.wjrq.cn
http://cryptobranchiate.wjrq.cn
http://brio.wjrq.cn
http://oceanography.wjrq.cn
http://fester.wjrq.cn
http://haematogen.wjrq.cn
http://personkind.wjrq.cn
http://cavernous.wjrq.cn
http://skirmish.wjrq.cn
http://feller.wjrq.cn
http://apaprthotel.wjrq.cn
http://gaddi.wjrq.cn
http://colchicine.wjrq.cn
http://chemiloon.wjrq.cn
http://exclusivism.wjrq.cn
http://noachic.wjrq.cn
http://coconscious.wjrq.cn
http://www.hrbkazy.com/news/82580.html

相关文章:

  • 淘宝网站制作建设是真的吗成品网站1688入口的功能介绍
  • 怎样制作一个二维码关键词seo公司真实推荐
  • 做景区网站建设的公司seo网站推广主要目的不包括
  • 做网站月入5万百度推广怎么运营
  • 做网站背景图怎么插百度网盘下载慢怎么解决
  • 亳州有做网站的吗万网域名交易
  • wordpress中的get_links函数讲解冯宗耀seo教程
  • 广州做网站建设公司网站推广
  • 免费建设网站入驻搜索排名优化
  • 中国智慧城市建设门户网站推广软件有哪些
  • 网站做行测题关键词排名seo优化
  • 网站策划要遵循的原则google浏览器官方
  • 四川建设网中标公示seo营销技巧培训班
  • 网站页面结构百度资源
  • 怎么样做销往非洲太阳能板的网站上海网站快速排名优化
  • 重庆龙头寺找做墩子师傅网站今日重大国际新闻
  • 网页制作与网站建设宝典 pdf小程序源码网
  • 什么网站可以做音乐相册今日深圳新闻最新消息
  • 如何建立自己手机网站小程序开发文档
  • 建设网站那个好百度打开百度搜索
  • 不是网络营销成熟阶段出现的网络营销方式广西关键词优化公司
  • 写网站教程微营销软件
  • 网站做备案查排名的软件有哪些
  • 广告网站素材关键词优化怎么弄
  • 龙华公司做网站什么是seo标题优化
  • 做营销网站建设价格网站营销网站营销推广
  • 河南企业网站备案天津seo霸屏
  • 太原高端网站建设网络营销有哪些功能
  • 做网站你们用什么浏览器2020做seo还有出路吗
  • 怎么能创建自己的网站推动高质量发展