颐莲护肤品怎么样(护肤品牌排行榜前十名有哪些)
10502023-11-25
大家好,今天小编来为大家解答以下的问题,关于哈弗h6gtid发动机怎么样,为什么不建议用gtid这个很多人还不知道,现在让我们一起来看看吧!
本文目录
MySQLGroupReplication(下简称MGR)准确来说是官方推出的高知可用解决方案,基于原生复制技术,并以插件的方式提供。
1、使用前,关掉防火墙,包括selinux,firewalld,或者MySQL企业版的firewall(如果用了企业版的话)2、两台机器:(4台MySQL实例)192.168.2.219centos-ytt57-13311/3312192.168.2.229centos-ytt57-23311/33123、安装MySQL(两台都装),MySQLShell(任意一台),mysqlrouter(任意一台,官方建议和应用程序装在一个服务器上)yuminstallmysql-community-servermysql-shellmysql-router-community
4、搭建InnoDB-Cluster(两台都装)
1.配置文件如下:shell>vi/etc/my.cnfmaster-info-repository=tablerelay-log-info-repository=tablegtid_mode=ONenforce_gtid_consistency=ONbinlog_checksum=NONElog_slave_updates=ONbinlog_format=ROWtransaction_write_set_extraction=XXHASH642.系统HOSTS配置(两台都配)
shell>vi/etc/hosts
127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4
::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6
192.168.2.219centos-ytt57-2
192.168.2.229centos-ytt57-3
用MySQLcoalesce函数确认下report-host是否设置正确(root@localhost):[(none)]>SELECTcoalesce(@@report_host,@@hostname)asr;+----------------+|r|+----------------+|centos-ytt57-1|+----------------+1rowinset(0.00sec)
3.创建管理员用户搭建GROUPREPLICATION(四个节点都要)
createuserrootidentifiedby'Root@123';grantallon*.*torootwithgrantoption;flushprivileges;
4.MySQLsh连接其中一台节点:
[root@centos-ytt57-1mysql]#mysqlshroot@localhost:3321
5.检查配置正确性:(如果这里不显示OK,把对应的参数加到配置文件重启MySQL再次检查)dba.checkInstanceConfiguration("root@centos-ytt57-2:3311");dba.checkInstanceConfiguration("root@centos-ytt57-2:3312");dba.checkInstanceConfiguration("root@centos-ytt57-3:3311");dba.checkInstanceConfiguration("root@centos-ytt57-3:3312");mysqlsh执行检测
[root@centos-ytt57-1mysql]#mysqlsh--log-level=8root@localhost:3311
MySQLlocalhost:3311sslJS>dba.checkInstanceConfiguration("root@centos-ytt57-2:3311")
{
"status":"ok"
}
6.创建集群,节点1上创建。(结果显示Clustersuccessfullycreated表示成功)
MySQLlocalhost:3311sslJS>varcluster=dba.createCluster('ytt_mgr');
Clustersuccessfullycreated.UseCluster.addInstance()toaddMySQLinstances.
Atleast3instancesareneededfortheclustertobeabletowithstandupto
oneserverfailure.
7.添加节点2,3,4(全部显示OK,表示添加成功)MySQLlocalhost:3311sslJS>cluster.addInstance('root@centos-ytt57-2:3312');MySQLlocalhost:3311sslJS>cluster.addInstance('root@centos-ytt57-3:3311');MySQLlocalhost:3311sslJS>cluster.addInstance('root@centos-ytt57-3:3312');
8.查看拓扑图:(describe简单信息,status详细描述)
MySQLlocalhost:3311sslJS>cluster.describe()
{
"clusterName":"ytt_mgr",
"defaultReplicaSet":{
"name":"default",
"topology":[
{
"address":"centos-ytt57-2:3311",
"label":"centos-ytt57-2:3311",
"role":"HA",
"version":"8.0.17"
},
{
"address":"centos-ytt57-2:3312",
"label":"centos-ytt57-2:3312",
"role":"HA",
"version":"8.0.17"
},
{
"address":"centos-ytt57-3:3311",
"label":"centos-ytt57-3:3311",
"role":"HA",
"version":"8.0.17"
},
{
"address":"centos-ytt57-3:3312",
"label":"centos-ytt57-3:3312",
"role":"HA",
"version":"8.0.17"
}
],
"topologyMode":"Single-Primary"
}
}
MySQLlocalhost:3311sslJS>cluster.status()
"clusterName":"ytt_mgr",
"defaultReplicaSet":{
"name":"default",
"primary":"centos-ytt57-2:3311",
"ssl":"REQUIRED",
"status":"OK",
"statusText":"ClusterisONLINEandcantolerateuptoONEfailure.",
"topology":{
"centos-ytt57-2:3311":{
"address":"centos-ytt57-2:3311",
"mode":"R/W",
"readReplicas":{},
"role":"HA",
"status":"ONLINE",
"version":"8.0.17"
},
"centos-ytt57-2:3312":{
"address":"centos-ytt57-2:3312",
"mode":"R/O",
"readReplicas":{},
"role":"HA",
"status":"ONLINE",
"version":"8.0.17"
},
"centos-ytt57-3:3311":{
"address":"centos-ytt57-3:3311",
"mode":"R/O",
"readReplicas":{},
"role":"HA",
"status":"ONLINE",
"version":"8.0.17"
},
"centos-ytt57-3:3312":{
"address":"centos-ytt57-3:3312",
"mode":"R/O",
"readReplicas":{},
"role":"HA",
"status":"ONLINE",
"version":"8.0.17"
}
},
"topologyMode":"Single-Primary"
},
"groupInformationSourceMember":"centos-ytt57-2:3311"
9.简单测试下数据是否同步
(root@localhost):[(none)]>createdatabaseytt;
QueryOK,1rowaffected(0.03sec)
(root@localhost):[(none)]>useytt;
Databasechanged
(root@localhost):[ytt]>createtablep1(idintprimarykey,log_timedatetime);
QueryOK,0rowsaffected(0.08sec)
(root@localhost):[ytt]>insertintop1values(1,now());
QueryOK,1rowaffected(0.04sec)
(root@localhost):[ytt]>showmasterstatus;
+---------------+----------+--------------+------------------+-------------------------------------------+
|File|Position|Binlog_Do_DB|Binlog_Ignore_DB|Executed_Gtid_Set|
+---------------+----------+--------------+------------------+-------------------------------------------+
|mysql0.000001|25496|||6c7bb9db-b759-11e9-a9c0-0800276cf0fc:1-41|
+---------------+----------+--------------+------------------+-------------------------------------------+
1rowinset(0.00sec)
查看其他三个节点
(root@localhost):[ytt]>showtables;
+---------------+
|Tables_in_ytt|
+---------------+
|p1|
+---------------+
1rowinset(0.00sec)
(root@localhost):[ytt]>select*fromp1;
+----+---------------------+
|id|log_time|
+----+---------------------+
|1|2019-08-0516:44:20|
+----+---------------------+
1rowinset(0.00sec)
停掉主节点:[root@centos-ytt57-2mysql0]#systemctlstopmysqld@0
现在查看,主节点已经变为本机3312节点"centos-ytt57-2:3312":{"address":"centos-ytt57-2:3312","mode":"R/W","readReplicas":{},"role":"HA","status":"ONLINE"}
10.报错处理
错误日志里显示2019-08-05T09:01:35.125591Z0[ERROR]Plugingroup_replicationreported:'Thegroupnameoptionismandatory'2019-08-05T09:01:35.125622Z0[ERROR]Plugingroup_replicationreported:'UnabletostartGroupReplicationonboot'
同时用cluster.rescan()扫描,发现Theinstance'centos-ytt57-2:3311'isnolongerpartoftheReplicaSet.
重新加入此节点到集群:cluster.rejoinInstance('centos-ytt57-2:3311')
再次执行cluster.status()查看集群状态:"status":"OK",11.移除和加入cluster.removeInstance("centos-ytt57-3:3312");Theinstance'centos-ytt57-3:3312'wassuccessfullyremovedfromthecluster.cluster.addInstance("centos-ytt57-3:3312");Theinstance'centos-ytt57-3:3312'wassuccessfullyaddedtothecluster.
12.用mysqlrouter生成连接MGR相关信息。涉及到两个用户:--user=mysqlrouter是使用mysqlrouter的系统用户自动创建的MySQL用户是用来与MGR通信的用户。如果想查看这个用户的用户名以及密码,就加上--force-password-validation,不过一般也没有必要查看。
哈弗h6gtid发动机是1.5GDIT直喷发动机(GW4B15),增加了直喷技术,最大功率从此前的150马力(110kW)提高到169马力(124kW),峰值扭矩从210牛·米升级到285牛·米,传动系统匹配的是7速双离合变速箱。
这款发动机是国内首家应用CVVL可变气门升程、缸盖集成排气歧管等技术的国产发动机,在NVH方面,其应用了静音链条,减小链条齿轮啮合时的冲击,消减运转时的不平衡也降低噪音。另外,此款发动机还集成了中置喷油器、高瞬态响应性电控增压器、二级变排量机油泵、进排气双VVT、双回路冷却系统等先进技术,目前,该款发动机已经获得39项专利。
其在1400转就可以输出高达285牛·米的最大扭矩,而上一代则需要2000转才能实现。这样的改进带来的效果就是车辆在低转速区间明显更有劲了,且涡轮迟滞现象也会得到更大的缓解。
gxworks3的产品ID即该软件的序列号,它均由数字构成,且如同身份证号码一样具有唯一性,只有拥有该序列号才可以使用该软件。
gxworks3是三菱电机新一代的PLC编程软件,用于对以MELSECiQ-R系列、MELSECiQ-L系列、MELSECiQ-F系列等可编程控制器进行设置、编程、调试以及维护的工程工具。
gxworks3可以通过装载模块配置图功能(Navigator功能)进行视觉直观的设置;通过起动以模块配置图为起点的各模块参数设置画面进行直观的操作。
gxworks3可以通过模块标签/模块FB的自动生成来缩短编程所需的准备时间;通过拖拽程序部件使编程简单化。
手机不支持eid你可以向手机厂商反馈,后续通过系统软件有可能支持
哈弗h6gtid发动机怎么样和为什么不建议用gtid的问题分享结束啦,以上的文章解决了您的问题吗?欢迎您下次再来哦!