0

我按照这里描述的示例https://www.opsdash.com/blog/postgres-getting-started-patroni.html并且一切都按预期工作。

在测试时,我尝试了sudo patroni pg-2.yml. 输出是:

2022-01-13 11:39:22,316 INFO: Failed to import patroni.dcs.consul
2022-01-13 11:39:22,316 INFO: Failed to import patroni.dcs.etcd
2022-01-13 11:39:22,317 INFO: Failed to import patroni.dcs.etcd3
2022-01-13 11:39:22,318 INFO: Failed to import patroni.dcs.exhibitor
2022-01-13 11:39:22,319 INFO: Failed to import patroni.dcs.raft
2022-01-13 11:39:22,319 INFO: Failed to import patroni.dcs.zookeeper
Traceback (most recent call last):
  File "/usr/local/bin/patroni", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/patroni/__init__.py", line 182, in main
    return patroni_main()
  File "/usr/local/lib/python3.8/dist-packages/patroni/__init__.py", line 140, in patroni_main
    abstract_main(Patroni, schema)
  File "/usr/local/lib/python3.8/dist-packages/patroni/daemon.py", line 98, in abstract_main
    controller = cls(config)
  File "/usr/local/lib/python3.8/dist-packages/patroni/__init__.py", line 30, in __init__
    self.dcs = get_dcs(self.config)
  File "/usr/local/lib/python3.8/dist-packages/patroni/dcs/__init__.py", line 110, in get_dcs
    raise PatroniFatalException("""Can not find suitable configuration of distributed configuration store
patroni.exceptions.PatroniFatalException: 'Can not find suitable configuration of distributed configuration store\nAvailable implementations: kubernetes'

对此有解释吗?

4

0 回答 0