Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

几个疑问请教 #30

Open
GoogleCodeExporter opened this issue Apr 13, 2015 · 1 comment
Open

几个疑问请教 #30

GoogleCodeExporter opened this issue Apr 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

在研究代码时有几个困惑,希望能解答:

1. 
client端读取client.conf配置文件后,会获得所有tracker服务器信��
�,但访问机制上,我怎么看着始终是访问的同一个tracker?

     server_index在整个代码里没看到有做任何控制,使得连接tracker server的时候没有调度策略。

     这个问题不知道是不是我理解有问题,请教!

server_index = pTrackerGroup->server_index;
 if (server_index >= pTrackerGroup->server_count)
 {
  server_index = 0;
 }


2.代码里看到一个group内的storage 
server数目上限是32个,而我目前代码中看到的一个storage存储��
�一个数据文件后,仅仅从剩余的storage 
server中又拿了一个slave进行了update,而并未对其余server进行更
新。而从FastDFS的整体介绍来看,一个group内的
所有storage server 
应该是存储了一样的数据,这个理解正确吗?如果是正确的��
� 那上述update操作为何仅仅更新一台server?
    目前,我理解你的group内的N+1台storage server 应该是N台做备份,不知道这个基本理解是不是错了?


Original issue reported on code.google.com by hubin....@gmail.com on 8 Jun 2012 at 9:04

@GoogleCodeExporter
Copy link
Author

1. 后面有pTrackerGroup->server_index++; 的啊!
2. storage server会在组内做同步的。
大家可以到www.csource.org查看技术资料,可以先着重看一下FastD
FS介绍PPT。

欢迎加入FastDFS技术交流群讨论,QQ群号:164684842

Original comment by happyfis...@gmail.com on 11 Jun 2012 at 3:33

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant