Good morning @Stefan_Edlund
Welcome to our community! It’s lovely to have you on board.
RAFT implementation is used to ensure fault tolerance in multi-node clusters. In a single-node setup, RAFT cannot elect leaders or followers as there are no peers. As a result, it is unable to proceed with leadership transfer, which is why you’re seeing those logs
These leadership failure messages is not critical issues, and Weaviate should continue functioning as expected in a single-node configuration. For stability & performance, especially in production environments, we typically recommend a 3-node setup as minimum.
You can set the following:
- name: RAFT_JOIN
value: weaviate-0
- name: RAFT_BOOTSTRAP_EXPECT
value: “1”
Actually, this step of setting env is not strictly necessary, as the error logs do not affect Weaviate’s operations.
Best regards,
Mohamed Shahin,
Weaviate Support Engineer