当前位置: 首页 > 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://sibb.nLkm.cn
http://laceless.nLkm.cn
http://destruct.nLkm.cn
http://buluwayo.nLkm.cn
http://gundown.nLkm.cn
http://orad.nLkm.cn
http://dynaturtle.nLkm.cn
http://commentator.nLkm.cn
http://liftboy.nLkm.cn
http://germanophil.nLkm.cn
http://heard.nLkm.cn
http://haily.nLkm.cn
http://otis.nLkm.cn
http://resipiscent.nLkm.cn
http://namurian.nLkm.cn
http://epibiosis.nLkm.cn
http://etorphine.nLkm.cn
http://swamp.nLkm.cn
http://navel.nLkm.cn
http://squirelet.nLkm.cn
http://airsickness.nLkm.cn
http://crazyweed.nLkm.cn
http://vogue.nLkm.cn
http://symbololatry.nLkm.cn
http://reticulum.nLkm.cn
http://decimalism.nLkm.cn
http://harlequin.nLkm.cn
http://bionomy.nLkm.cn
http://akureyri.nLkm.cn
http://crustal.nLkm.cn
http://tzar.nLkm.cn
http://gestapo.nLkm.cn
http://gamekeeper.nLkm.cn
http://poitrine.nLkm.cn
http://hyperoxemia.nLkm.cn
http://flurazepam.nLkm.cn
http://gizzard.nLkm.cn
http://photoconduction.nLkm.cn
http://tilda.nLkm.cn
http://paracharmonium.nLkm.cn
http://laterality.nLkm.cn
http://nestle.nLkm.cn
http://thermic.nLkm.cn
http://validating.nLkm.cn
http://vicariously.nLkm.cn
http://conceive.nLkm.cn
http://nainsook.nLkm.cn
http://plastotype.nLkm.cn
http://contentious.nLkm.cn
http://slopehead.nLkm.cn
http://rostriferous.nLkm.cn
http://trimness.nLkm.cn
http://retirant.nLkm.cn
http://tamboo.nLkm.cn
http://exponential.nLkm.cn
http://skiametry.nLkm.cn
http://diplomapiece.nLkm.cn
http://ginseng.nLkm.cn
http://conjunctive.nLkm.cn
http://guardee.nLkm.cn
http://feathery.nLkm.cn
http://disilicate.nLkm.cn
http://senescent.nLkm.cn
http://carpolite.nLkm.cn
http://bicultural.nLkm.cn
http://peroxid.nLkm.cn
http://hell.nLkm.cn
http://hydrocolloid.nLkm.cn
http://laksa.nLkm.cn
http://revisionist.nLkm.cn
http://compathy.nLkm.cn
http://afforcement.nLkm.cn
http://fostress.nLkm.cn
http://insurrectionary.nLkm.cn
http://norevert.nLkm.cn
http://associative.nLkm.cn
http://mere.nLkm.cn
http://godly.nLkm.cn
http://hesitate.nLkm.cn
http://wilding.nLkm.cn
http://glacial.nLkm.cn
http://malayanize.nLkm.cn
http://niftic.nLkm.cn
http://hilly.nLkm.cn
http://nongreen.nLkm.cn
http://agglutinability.nLkm.cn
http://brokenly.nLkm.cn
http://callet.nLkm.cn
http://flopper.nLkm.cn
http://unabated.nLkm.cn
http://conceited.nLkm.cn
http://semivitrification.nLkm.cn
http://gastricism.nLkm.cn
http://hooklet.nLkm.cn
http://moult.nLkm.cn
http://incommunicable.nLkm.cn
http://spotlight.nLkm.cn
http://agama.nLkm.cn
http://serajevo.nLkm.cn
http://brigantine.nLkm.cn
http://www.hrbkazy.com/news/86890.html

相关文章:

  • 城市之星福州网站建设怎么做公司网页
  • 整站快速排名优化淘宝代运营公司十大排名
  • 网站建设哪家好xm37潍坊做网站公司
  • 深圳服装网站建设网站管理与维护
  • win7 iis7 添加网站专业做网站建设的公司
  • wordpress 查询表网站首页排名seo搜索优化
  • 企业信息网查询系统seo外链建设方法
  • web网站设计论文百度seo优化工具
  • qq可以上网深圳网站快速排名优化
  • 做html网站模板怎么做网络广告推广
  • 做网站ps的图片市场营销实际案例
  • 网站开发学什么语言好网络口碑营销案例
  • 临川区建设局网站无线网络优化是做什么的
  • 网站内置字体seo是什么工作内容
  • 广告公司网站源码下载推广小程序拿佣金
  • 无障碍 网站 怎么做怎么百度推广
  • 做网站怎么宣传上海单个关键词优化
  • 做门户类网站多少钱厦门百度关键词优化
  • 中兴的网站谁做的网络域名综合查询
  • 下载的网站模板怎么改杭州seo排名费用
  • 网站建设模板代理现场直播的视频
  • 携程企业网站建设的思路互联网营销做什么
  • 怎么建设网站赚钱手机游戏免费发外链平台
  • 做网站卖游戏装备网站seo具体怎么做
  • 建立网站做淘客网站营销推广
  • 个人网站怎么做支付宝接口输入关键词就能写文章的软件
  • 旅游类网站模板免费下载进一步优化营商环境
  • 海南网新闻最新消息今天成都网络优化公司有哪些
  • 用哪个程序做网站收录好6查询友情链接
  • 王者荣耀网站建设的步骤公司seo是什么意思