Исходный redis-trib поддерживает динамическое разделение групп, что в некоторых случаях может привести к ситуации, когда мастер и слейв находятся на одной физической машине. redis-trib-plus позволяет вручную создать группы для кластера Redis, используя следующую команду:
./redis-trib.rb create-manual G 127.0.0.1:7006 127.0.0.1:7001 G 127.0.0.1:7002 127.0.0.1:7003 G 127.0.0.1:7004 127.0.0.1:7005
Вышеуказанная команда будет распределять хосты и порты по каждому сегменту G. Первый узел после каждого G автоматически становится мастером, а последующие — соответственно, слейвами.
You can comment after Login
Inappropriate content may be displayed here and will not be shown on the page. You can check and modify it through the relevant editing function
If you confirm that the content does not involve inappropriate language/advertisement redirection/violence/vulgar pornography/infringement/piracy/false/insignificant or illegal content related to national laws and regulations, you can click submit to make an appeal, and we will handle it as soon as possible.
Comments ( 0 )