【问题标题】:Playframework morphia module talk to multiple MongoDB shards or replicasPlayframework morphia 模块与多个 MongoDB 分片或副本通信
【发布时间】:2012-01-11 17:08:30
【问题描述】:

现在,我从 Play! 与一个 MongoDB 进行 morphia 对话的配置设置。如果我有多个 MongoDB 实例(可能是分片或副本),我如何从 Play 访问它们!

【问题讨论】:

    标签: mongodb playframework morphia


    【解决方案1】:

    如果您有副本集,则在配置中提供just 1 member 足以让 Java 驱动程序找出主副本。

    【讨论】:

      猜你喜欢
      • 2011-07-23
      • 2014-04-18
      • 2013-12-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多