[BUG] Cluster mongo is not supported
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
Expected Behavior
No response
Steps To Reproduce
No response
Environment
HertzBeat version(s):
Debug logs
No response
Anything else?
No response
not support mongodb cluster now, we will do it.
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
not support mongodb cluster now, we will do it.
The reason for this bug is that the MongoDB collector starts a multi-document transaction through a session to read the MongoDB status. According to the official MongoDB documentation, the MongoDB version deployed on a single machine only supports this function when it is 3.6 or above, so the error "Sessions are not supported by the MongoDB cluster to which this client is connected" will be reported. You can now solve this problem by upgrading the MongoDB version deployed on a single machine to above 3.6 or converting to cluster deployment. We are in the process of compatibility with the old version and will notify you in this issue once it is compatible.