启动新从库
- [redis@albert src]$ ./redis-server redis.conf6382
- 33744:C 26 Aug 2019 12:03:17.731 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
- 33744:C 26 Aug 2019 12:03:17.731 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=33744, just started
- 33744:C 26 Aug 2019 12:03:17.731 # Configuration loaded
- _._
- _.-``__ ''-._
- _.-`` `. `_. ''-._ Redis 5.0.4 (00000000/0) 64 bit
- .-`` .-```. ```/ _.,_ ''-._
- ( ' , .-` | `, ) Running in standalone mode
- |`-._`-...-` __...-.``-._|'` _.-'| Port: 6382
- | `-._ `._ / _.-' | PID: 33744
- `-._ `-._ `-./ _.-' _.-'
- |`-._`-._ `-.__.-' _.-'_.-'|
- | `-._`-._ _.-'_.-' | http://redis.io
- `-._ `-._`-.__.-'_.-' _.-'
- |`-._`-._ `-.__.-' _.-'_.-'|
- | `-._`-._ _.-'_.-' |
- `-._ `-._`-.__.-'_.-' _.-'
- `-._ `-.__.-' _.-'
- `-._ _.-'
- `-.__.-'
-
- 33744:S 26 Aug 2019 12:03:17.734 # Server initialized
- 33744:S 26 Aug 2019 12:03:17.734 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
- 33744:S 26 Aug 2019 12:03:17.734 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
- 33744:S 26 Aug 2019 12:03:17.734 * DB loaded from disk: 0.000 seconds
- 33744:S 26 Aug 2019 12:03:17.734 * Before turning into a replica, using my master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.
- 33744:S 26 Aug 2019 12:03:17.734 * Ready to accept connections
- 33744:S 26 Aug 2019 12:03:17.735 * Connecting to MASTER 127.0.0.1:6379
- 33744:S 26 Aug 2019 12:03:17.735 * MASTER <-> REPLICA sync started
- 33744:S 26 Aug 2019 12:03:17.735 * Non blocking connect for SYNC fired the event.
- 33744:S 26 Aug 2019 12:03:17.735 * Master replied to PING, replication can continue...
- 33744:S 26 Aug 2019 12:03:17.736 * Trying a partial resynchronization (request b9e0f41a523e078a6a88ae274f204777775ab4dc:1).
- 33744:S 26 Aug 2019 12:03:17.736 * Successful partial resynchronization with master.
- 33744:S 26 Aug 2019 12:03:17.736 * MASTER <-> REPLICA sync: Master accepted a Partial Resynchronization.
2. 场景一:主库关机 (编辑:晋中站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|