S*******h 发帖数: 7021 | 1 请问 在座大侠能不能 出点主意 回答一个 design 的问题, 或哪本书有 Recipes, 或
MITBBS 哪个站适合问这类问题.多谢
Goal: Create an application to deploy a task (e.g. install updates or
software) to multiple client machines within the network (LAN). Assume this
app is run on an admin server and it has 1000+ client machines, how to
maximize the result? That means the shorter the deployment time, the better.
My thoughts are:
Enable muti-thread to have multiple clients get processed at the same time.
Question: If this Admin server is a |
s*****n 发帖数: 742 | 2 set up a service on each client to receive commands from the central server.
let the server send out install request (or command that client should run
to trigger the installation) to all clients. let the installation run in
async manner.
so how long it will take to install one client, how long it would take to
install all.
btw, this is not a real distributed question. |
s******6 发帖数: 1484 | 3 请注意,老林不是一盏茶,老林是一杯蒸鸡蛋羹。。。。 |
S*******h 发帖数: 7021 | 4 I think I am not clear on my question earlier.
If you only have one server, these tasks run sequentially:
- Let the server send out install request. The code is something like - For
each client in clientlist, run command xxx.
- Let the server receive the installation status from each client. For each
client in clientlist, get service running status
If you get 1000+ machines, it still takes a while.
How to send these requests in async manner? |
g*******y 发帖数: 1930 | 5 multithread为啥不行?
另外,你提到的centralization of management,没有什么难度啊,如果你不要求
fault
tolerance的话。
如果你需要tolerate byzantine fault,倒是可以看看文章
For
each
【在 S*******h 的大作中提到】 : I think I am not clear on my question earlier. : If you only have one server, these tasks run sequentially: : - Let the server send out install request. The code is something like - For : each client in clientlist, run command xxx. : - Let the server receive the installation status from each client. For each : client in clientlist, get service running status : If you get 1000+ machines, it still takes a while. : How to send these requests in async manner?
|
s*****n 发帖数: 742 | 6 呵呵,分布式鸡蛋羹~
【在 s******6 的大作中提到】 : 请注意,老林不是一盏茶,老林是一杯蒸鸡蛋羹。。。。
|
s*****n 发帖数: 742 | 7 u need to de-couple the install request send and install status response.
during the installation time on client, there is no need to hold any
expensive resource on server side.
For
each
【在 S*******h 的大作中提到】 : I think I am not clear on my question earlier. : If you only have one server, these tasks run sequentially: : - Let the server send out install request. The code is something like - For : each client in clientlist, run command xxx. : - Let the server receive the installation status from each client. For each : client in clientlist, get service running status : If you get 1000+ machines, it still takes a while. : How to send these requests in async manner?
|