【问题标题】:Openshift: Endpoints/Service for External MongoDB: Error No server chosen by WritableServerSelector from cluster descriptionOpenshift:外部 MongoDB 的端点/服务:错误 No server selected by WritableServerSelector from cluster description
【发布时间】:2018-06-22 08:05:39
【问题描述】:

我正在 Openshift 中部署我的 Spring Boot 应用程序,并且同样使用我为其创建了端点/服务对象的外部 mongodb 集群。在我的 application.properties 文件中,我使用的是服务名称,当我尝试调用某些 API 时出现以下错误

WritableServerSelector 从集群描述中没有选择服务器

感谢您的帮助

【问题讨论】:

    标签: mongodb kubernetes openshift mongodb-replica-set


    【解决方案1】:

    【讨论】:

    • 在我的场景中,我必须连接到外部 mongodb 副本集。我猜发生的不正确是 oc 服务无法解析哪个节点充当主节点。我已经阅读过这个文档并且我的对象已经创建。运行时抛出此错误
    猜你喜欢
    • 2019-04-05
    • 2014-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多