【发布时间】:2014-10-19 12:18:29
【问题描述】:
典型的分片配置如下所示:
var shards = new Dictionary<string, IDocumentStore>
{
{"Asia", new DocumentStore {Url = "http://localhost:8080"}},
{"Middle East", new DocumentStore {Url = "http://localhost:8081"}},
{"America", new DocumentStore {Url = "http://localhost:8082"}},
};
所以我们必须事先知道我们的服务器是什么。但是,如果我想使用 Azure 扩展并在需要时自动创建一个新的虚拟机,该怎么办。有什么方法可以自动发现新机器?
【问题讨论】: