ZoroXing / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

A和B两台机,做主备或者防止单机宕机的情况。出现一些特殊问题 #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.A和B两台做类似主备,或者同时使用,如果A挂了,这时起,��
�据都往B上存储;A被重启后,是否会被检测到A可用了,再将�
��据放到A机器上? 
2.接着上面的问题,就是如果B挂了,是否数据都放到A上面? 
3、总结下:就是其中一台挂了,数据是否都放在另一台上,�
��果挂了的这台,被重启了,是否会恢复连接,继续进行相应
的存取操作?

What is the expected output? What do you see instead?
spring的权重设置有什么用处,能举例说明下?  
如果两台权重一样,是否只用后面一台,而不用前面那台?

What version of the product are you using? On what operating system?
1.3.8 使用最新版的xmemcached,   windows xp系统

Please provide any additional information below.
用xmemcached跟spring集成的。我测试了下,就是如果两台权重一�
��的话,虽然本地的配置在前面,但是默认先连接后面配置的
那台,但是失败后一直尝试,而不会尝试连接本地的那台。

Original issue reported on code.google.com by shmily2...@163.com on 18 Jul 2012 at 6:42

GoogleCodeExporter commented 8 years ago
第一个问题,会
第二个问题,权重是用来指定不同memcached存取的缓存数据,��
�重越高,存储的数据越多。
第三个问题,你说的应该是stand 
by,主备节点之间设置权重没有作用的。

Original comment by killme2...@gmail.com on 20 Jul 2012 at 5:43

GoogleCodeExporter commented 8 years ago

Original comment by killme2...@gmail.com on 20 Jul 2012 at 5:44

GoogleCodeExporter commented 8 years ago
我就想问清楚点 
AB两台,其中一台挂了,然后恢复,能否重新连接上?

Original comment by shmily2...@163.com on 20 Jul 2012 at 8:46

GoogleCodeExporter commented 8 years ago
会,有自动重连。

Original comment by killme2...@gmail.com on 21 Jul 2012 at 4:57