- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有两个 MySQL 服务器,它们在同一组复制上运行。设置已通过以下步骤完成:
但我发现了另一个错误:每次我重新加载回退MySQL(通过重启服务)它会自动加入组但永远停留在RECOVERING,我等了3天但它仍然在RECOVERING。我检查了日志,在两台服务器上都没有看到任何错误,一切看起来都很好,除了回退以只读方式运行并保持在恢复状态。
我错过了什么步骤?
我的组配置是(我遵循了 https://www.digitalocean.com/community/tutorials/how-to-configure-mysql-group-replication-on-ubuntu-16-04 上 DigitalOcean 帮助页面的说明):
BINARY LOGGING # log_bin = /data/databases/mysql_bin199 expire_logs_days = 14
sync_binlog = 1 binlog_format =ROW
General replication settings gtid_mode = ON enforce_gtid_consistency = ON master_info_repository = TABLE relay_log_info_repository = TABLE binlog_checksum = NONE log_slave_updates = ON
log_bin = binlog
binlog_format = ROW transaction_write_set_extraction = XXHASH64 loose-group_replication_bootstrap_group = OFF
loose-group_replication_start_on_boot = ONloose-group_replication_ssl_mode = REQUIREDloose-group_replication_recovery_use_ssl = 1
Shared replication group configuration loose-group_replication_group_name =
"9dc4ae01-6664-437a-83f8-80546d58e025"loose-group_replication_ip_whitelist ="172.AAA.BBB.166,138.AAA.BBB.199" loose-group_replication_group_seeds= "172.AAA.BBB.166:33061,138.AAA.BBB.199:33061"
Single or Multi-primary mode? Uncomment these two lines
for multi-primary mode, where any host can accept writes loose-group_replication_single_primary_mode = OFF
loose-group_replication_enforce_update_everywhere_checks = ON
Host specific replication configuration server_id = 2 report_host = "138.AAA.BBB.199" loose-group_replication_local_address =
"138.AAA.BBB.199:33061"
下面是第一台服务器上的MySQL日志:
2018-06-08T06:10:12.167400Z 0 [Warning] Plugin group_replication
reported: 'Members removed from the group: 138.AAA.BBB.199:3306'
2018-06-08T06:10:12.167475Z 0 [Note] Plugin group_replication
reported: 'Group membership changed to 172.AAA.BBB.166:3306 on view
15271181169364149:11.' 2018-06-08T06:11:59.032666Z 0 [Note] Plugin
group_replication reported: 'Members joined the group:
138.AAA.BBB.199:3306' 2018-06-08T06:11:59.032722Z 0 [Note] Plugin group_replication reported: 'Group membership changed to
172.AAA.BBB.166:3306, 138.AAA.BBB.199:3306 on view 15271181169364149:12.'
以下是备用服务器上的 MySQL 日志:
2018-06-11T09:22:57.490896Z 0 [Warning] option 'max_allowed_packet':
unsigned value 3221225472 adjusted to 1073741824
2018-06-11T09:22:57.490942Z 0 [Warning] The use of InnoDB is mandatory
since MySQL 5.7. The former options like '--innodb=0/1/OFF/ON' or
'--skip-innodb' are ignored. 2018-06-11T09:22:57.491057Z 0 [Warning]
The syntax '--log_warnings/-W' is deprecated and will be removed in a
future release. Please use '--log_error_verbosity' instead.
2018-06-11T09:22:57.491098Z 0 [Warning] TIMESTAMP with implicit
DEFAULT value is deprecated. Please use
--explicit_defaults_for_timestamp server option (see documentation for more details). 2018-06-11T09:22:57.492972Z 0 [Note] /usr/sbin/mysqld
(mysqld 5.7.22-log) starting as process 31633 ...
2018-06-11T09:22:57.500063Z 0 [Warning] InnoDB: Using
innodb_locks_unsafe_for_binlog is DEPRECATED. This option may be
removed in future releases. Please use READ COMMITTED transaction
isolation level instead; Please refer to
http://dev.mysql.com/doc/refman/5.7/en/set-transaction.html
2018-06-11T09:22:57.500175Z 0 [Note] InnoDB: PUNCH HOLE support
available 2018-06-11T09:22:57.500191Z 0 [Note] InnoDB: Mutexes and
rw_locks use GCC atomic builtins 2018-06-11T09:22:57.500200Z 0 [Note]
InnoDB: Uses event mutexes 2018-06-11T09:22:57.500205Z 0 [Note]
InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-06-11T09:22:57.500209Z 0 [Note] InnoDB: Compressed tables use
zlib 1.2.3 2018-06-11T09:22:57.500213Z 0 [Note] InnoDB: Using Linux
native AIO 2018-06-11T09:22:57.500430Z 0 [Note] InnoDB: Number of
pools: 1 2018-06-11T09:22:57.500575Z 0 [Note] InnoDB: Using CPU crc32
instructions 2018-06-11T09:22:57.501015Z 0 [ERROR] InnoDB: Failed to
create check sector file, errno:13 Please confirm O_DIRECT is
supported and remove the file /data/check_sector_size if it exists.
2018-06-11T09:22:57.502305Z 0 [Note] InnoDB: Initializing buffer pool,
total size = 4G, instances = 8, chunk size = 128M
2018-06-11T09:22:57.799065Z 0 [Note] InnoDB: Completed initialization
of buffer pool 2018-06-11T09:22:57.857325Z 0 [Note] InnoDB: If the
mysqld execution user is authorized, page cleaner thread priority can
be changed. See the man page of setpriority().
2018-06-11T09:22:57.870317Z 0 [Note] InnoDB: Highest supported file
format is Barracuda. 2018-06-11T09:22:58.081570Z 0 [Note] InnoDB:
Creating shared tablespace for temporary tables
2018-06-11T09:22:58.081656Z 0 [Note] InnoDB: Setting file
'/data/databases/ibtmp1' size to 12 MB. Physically writing the file
full; Please wait ... 2018-06-11T09:22:58.116190Z 0 [Note] InnoDB:
File '/data/databases/ibtmp1' size is now 12 MB.
2018-06-11T09:22:58.117279Z 0 [Note] InnoDB: 96 redo rollback
segment(s) found. 96 redo rollback segment(s) are active.
2018-06-11T09:22:58.117293Z 0 [Note] InnoDB: 32 non-redo rollback
segment(s) are active. 2018-06-11T09:22:58.117670Z 0 [Note] InnoDB:
Waiting for purge to start 2018-06-11T09:22:58.168094Z 0 [Note]
InnoDB: 5.7.22 started; log sequence number 51745666191
2018-06-11T09:22:58.168309Z 0 [Note] InnoDB: Loading buffer pool(s)
from /data/databases/ib_buffer_pool 2018-06-11T09:22:58.168558Z 0
[Note] Plugin 'FEDERATED' is disabled. 2018-06-11T09:22:58.183268Z 0
[Warning] CA certificate /etc/mysql/mysql-ssl/ca-cert.pem is self
signed. 2018-06-11T09:22:58.184615Z 0 [Note] Server hostname
(bind-address): '138.AAA.BBB.199'; port: 3306
2018-06-11T09:22:58.184636Z 0 [Note] - '138.AAA.BBB.199' resolves to
'138.AAA.BBB.199'; 2018-06-11T09:22:58.184668Z 0 [Note] Server socket
created on IP: '138.AAA.BBB.199'. 2018-06-11T09:22:58.186203Z 0
[Warning] 'user' entry 'mysql.session@localhost' ignored in
--skip-name-resolve mode. 2018-06-11T09:22:58.186220Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve
mode. 2018-06-11T09:22:58.186238Z 0 [Warning] 'user' entry
'phpmadsys@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186260Z 0 [Warning] 'user' entry
'phpmyadmin@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186308Z 0 [Warning] 'db' entry 'performance_schema
mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186313Z 0 [Warning] 'db' entry 'sys
mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186318Z 0 [Warning] 'db' entry 'phpmyadmin
phpmadsys@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186322Z 0 [Warning] 'db' entry 'performance_schema
datadog@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186327Z 0 [Warning] 'db' entry 'phpmyadmin
phpmyadmin@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.186340Z 0 [Warning] 'proxies_priv' entry '@
root@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.188628Z 0 [Warning] 'tables_priv' entry 'user
mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.188649Z 0 [Warning] 'tables_priv' entry
'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-06-11T09:22:58.192624Z 0 [Warning] Neither --relay-log nor
--relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use
'--relay-log=dvm02-relay-bin' to avoid this problem.
2018-06-11T09:22:58.206545Z 0 [Note] Event Scheduler: Loaded 0 events
2018-06-11T09:22:58.206745Z 0 [Note] /usr/sbin/mysqld: ready for
connections. Version: '5.7.22-log' socket:
'/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server
(GPL) 2018-06-11T09:22:58.207175Z 2 [Note] Plugin group_replication
reported: 'Group communication SSL configuration:
group_replication_ssl_mode: "REQUIRED"; server_key_file:
"/etc/mysql/mysql-ssl/server-key.pem"; server_cert_file:
"/etc/mysql/mysql-ssl/server-cert.pem"; client_key_file:
"/etc/mysql/mysql-ssl/server-key.pem"; client_cert_file:
"/etc/mysql/mysql-ssl/server-cert.pem"; ca_file:
"/etc/mysql/mysql-ssl/ca-cert.pem"; ca_path: ""; cipher: "";
tls_version: "TLSv1,TLSv1.1"; crl_file: ""; crl_path: ""'
2018-06-11T09:22:58.207378Z 2 [Warning] Plugin group_replication
reported: '[GCS] Automatically adding IPv4 localhost address to the
whitelist. It is mandatory that it is added.'
2018-06-11T09:22:58.207820Z 2 [Note] Plugin group_replication
reported: 'Initialized group communication with configuration:
group_replication_group_name: "9dc4ae01-6664-437a-83f8-80546d58e025";
group_replication_local_address: "138.AAA.BBB.199:33061";
group_replication_group_seeds:
"172.AAA.BBB.166:33061,138.AAA.BBB.199:33061";
group_replication_bootstrap_group: false;
group_replication_poll_spin_loops: 0;
group_replication_compression_threshold: 1000000;
group_replication_ip_whitelist: "172.AAA.BBB.166,138.AAA.BBB.199"'
2018-06-11T09:22:58.207853Z 2 [Note] Plugin group_replication
reported: '[GCS] Configured number of attempts to join: 0'
2018-06-11T09:22:58.207859Z 2 [Note] Plugin group_replication
reported: '[GCS] Configured time between attempts to join: 5 seconds'
2018-06-11T09:22:58.207878Z 2 [Note] Plugin group_replication
reported: 'Member configuration: member_id: 2; member_uuid:
"822868f9-52a0-11e8-aa0e-1e45f9551f27"; single-primary mode: "false";
group_replication_auto_increment_increment: 7; '
2018-06-11T09:22:58.209024Z 3 [Note] 'CHANGE MASTER TO FOR CHANNEL
'group_replication_applier' executed'. Previous state
master_host='', master_port= 0, master_log_file='',
master_log_pos= 4, master_bind=''. New state master_host='',
master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''.
2018-06-11T09:22:58.216904Z 6 [Note] Slave SQL thread for channel
'group_replication_applier' initialized, starting replication in log
'FIRST' at position 0, relay log
'./dvm02-relay-bin-group_replication_applier.000071' position: 4
2018-06-11T09:22:58.216931Z 2 [Note] Plugin group_replication
reported: 'Group Replication applier module successfully initialized!'
2018-06-11T09:22:58.241357Z 0 [Note] Plugin group_replication
reported: 'XCom protocol version: 3' 2018-06-11T09:22:58.241397Z 0
[Note] Plugin group_replication reported: 'XCom initialized and ready
to accept incoming connections on port 33061'
2018-06-11T09:22:59.213826Z 0 [Note] InnoDB: Buffer pool(s) load
completed at 180611 11:22:59 2018-06-11T09:23:00.316791Z 0 [Note]
Plugin group_replication reported: 'Group membership changed to
172.AAA.BBB.166:3306, 138.AAA.BBB.199:3306 on view 15271181169364149:16.'
最佳答案
抱歉耽搁了。
从您的错误日志中,我看不到任何关于恢复的问题,但我也看不到任何连接尝试。我想知道您是否对组复制中继日志中的数据有一些问题...
如果问题仍然存在,我建议您打开一个错误。作为解决方法,您可以尝试在“START GROUP_REPLICATION”之前重置应用程序 channel
RESET SLAVE ALL FOR CHANNEL "group_replication_applier";
关于mysql组复制: stuck on RECOVERING forever,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50794695/
〇、Go 中的异常处理简介 Golang 没有结构化异常,使用 panic 抛出错误,recover 捕获错误。 panic、recover 参数类型为 interface{},因此可抛出任何类型
我已经在 3 个 mongo 服务器上设置了副本集并导入了 5 GB 数据。现在辅助服务器的状态显示“RECOVERING”。您能否让我知道“RECOVERING”的含义以及如何解决此问题。 状态如下
我所在的团队正在尝试使用证书将 Java J2SE 应用程序连接到安全的企业 Web 服务站点。团队成员之前都没有为此类连接创建证书和编码的经验。 我们准备并提交了 CSR,并从网络服务站点收到了 .
我想运行我的 android 应用程序时遇到问题,这是错误消息: Error generating final archive: java.security.UnrecoverableKeyExcep
我已经在 StackOverflow 上搜索了一段时间,但我只是想确定... 不久前我擦了笔记本电脑,并备份了我的所有文件。我备份了我的 android.jks 文件,它又恢复了原位。当我尝试生成一个
例子: var num int64 num = 1234 str := string(num) 我怎样才能恢复原来的号码? 最佳答案 conversion string(num)生成带有 rune n
我有两个 MySQL 服务器,它们在同一组复制上运行。设置已通过以下步骤完成: 第一台服务器是有大量数据的生产服务器。 我将它设置为只读并转储数据,然后在后备 MySQL 服务器上恢复它 恢复后,我执
我有一个适用于 JavaScript 自动加载器的概念验证,但它目前存在一个重大缺陷:它需要重新执行整个代码,而不是简单地从失败的行重试。 这是原型(prototype): var app
考虑使用 Play Framework 2.3.8 编写的以下 2 个 Controller : Java8 lambdas: public static Promise testLambda() {
我对使用 golang 进行编码还很陌生,并且正在为错误的 url 请求而在 panic/recover 过程中苦苦挣扎。下面是一个查询 URL 列表并输出响应的脚本。偶尔会输入错误的 url 或服务
我正在 Golang 中测试 panic/recover。这个简单的程序按预期工作: package main import "fmt" func printRecover() { r :=
我正在使用一个从 panic 中recover()的库,它使用的代码简化为以下内容: func main() { defer rec() panic("X") } func rec()
在某些情况下,调用 append() 会触发内存不足 panic ,而且 append() 本身似乎不会返回 nil。 我怎样才能避免这种 panic 情况并向我的用户显示“资源暂时不可用”? 最好的
我已经完成了这个项目,当我尝试生成一个签名的 apk 时,我收到了这个错误: Failed to read key *** from store ***: Cannot recover key (**
我写了两个函数来说明我的困惑: import scala.util.Try def TryRecover: Unit = { Try { throw new Exception() }
今天我在玩 Xcode 快照功能,我想知道如果所有代码都丢失了,我是否可以从快照重新创建一个完整的项目。 在我看来,在快照管理器中我只能看到当前项目的快照,而不是所有项目的快照。因此,如果我的项目文件
我在互联网上读到类似的问题,但没有一个答案可以帮助我。我有一个函数,对于每一行数据(数据大约有 2'000'000 行)执行一些操作,然后根据它所做的操作使用不同的参数调用相同的函数。问题是,过了一会
我正在尝试为 CS50 编写一个 C 语言程序,从 .raw 文件中恢复 JPG(一次读取 512 个字节并查看它是否以 JPG 内容开头),但它始终出现段错误。我如何知道问题的根源是什么?多谢你们!
这是一个接受文件名作为输入的程序,应该恢复所有 JPEG 在那个文件上。它显示 512 字节 一次,检查新 jpeg 的开始。 该程序在我运行时编译,尽管它给出了段错误。请帮我解决这个问题。 #inc
我需要知道对应于用户 ip 的国家,它用于与这个 jquery api 一起工作: $.get("http://ipinfo.io", function() {}, "jsonp").always(f
我是一名优秀的程序员,十分优秀!